Files
serenity/Userland/Libraries/LibWeb/WebDriver
Timothy Flynn 69ba7102a2 LibWeb: Dispatch WebDriver mouse events relative to the top-level frame
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)
2024-11-25 08:50:54 -05:00
..