Skip to content

Commit

Permalink
Bug 1920547 [wpt PR 48311] - [Interop] Deflake pointerevent_click_dur…
Browse files Browse the repository at this point in the history
…ing_capture.html, a=testonly

Automatic update from web-platform-tests
[Interop] Deflake pointerevent_click_during_capture.html

The test has been flaking for the auxclick action where the
middle-click drag is probably causing autoscroll in some platforms.

This CL changes the action to use the right mouse button instead, after
suppressing any context menu invocation.

Bug: 40851596
Change-Id: I4e36b3aceb75d5edcbd0c9599ada9f7af9ef7b78
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5873347
Commit-Queue: Mustaq Ahmed <mustaqchromium.org>
Reviewed-by: Kevin Ellis <keverschromium.org>
Cr-Commit-Position: refs/heads/main{#1358971}

--

wpt-commits: 64995b38727cb66354e204a0bc3ecf68ce91c815
wpt-pr: 48311

UltraBlame original commit: ce843e696afd126b9079eaf19aaca139455d952d
  • Loading branch information
marco-c committed Sep 26, 2024
1 parent 04055e7 commit 2d92c36
Showing 1 changed file with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,34 @@
}
)
;
/
/
Suppress
context
-
menus
at
right
-
clicks
.
parent
.
addEventListener
(
"
contextmenu
"
e
=
>
e
.
preventDefault
(
)
)
;
function
dragBetweenChildrenAndClickOnDone
(
Expand Down Expand Up @@ -535,7 +563,7 @@
.
ButtonType
.
MIDDLE
RIGHT
;
actions_promise
.
Expand Down

0 comments on commit 2d92c36

Please sign in to comment.