mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-13 18:37:37 +02:00
There are many WPT subtests which validate how we behave against frames that have been removed. They do this by adding an iframe element with a button whose click action removes the iframe element. When the click is dispatched, the spec would have us generate a mouse event relative to that iframe, rather than the top-level frame, thus the click would miss the target button. Serendipitously, a spec issue and PR were just opened to generate mouse events relative to the top-level frame. This patch implements that PR; it has some editorial issues to be resolved, but is a clear improvement for these tests. (cherry picked from commit 0042bbb68d906a557ddc614392075a961531c917)