Commit Graph

4 Commits

Author SHA1 Message Date
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
Timothy Flynn
943697d35c LibWeb+WebDriver+WebContent: Implement the Element Click endpoint
(cherry picked from commit 5aa50bff8b2b82c34cfaa09de32f3162d36b2a24)
2024-11-24 21:30:22 -05:00
Timothy Flynn
c5502d324c LibWeb: Implement WebDriver pointer action execution
This implements execution of the pointer up, pointer down, and pointer
move actions.

This isn't 100% complete. Pointer move actions are supposed to break
the move into iterations over the specified duration, which we currently
do not do.

(cherry picked from commit 8000837f7821fe9854156c7ae1349d37c77e89b2)
2024-11-24 19:40:10 -05:00
Timothy Flynn
612ea34f87 LibWeb: Implement WebDriver action extraction
There's a lot of parsing involved in action extraction. So this patch
implements only that - actually executing actions will be a future
patch.

(cherry picked from commit 6cf7d07a989bb6d7ddc897a444053deef7192c9c)
2024-11-24 19:40:10 -05:00