From 2d92c36fae950abb743a7d2e83279f0e1ff9de49 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 26 Sep 2024 00:21:08 +0000 Subject: [PATCH] Bug 1920547 [wpt PR 48311] - [Interop] Deflake pointerevent_click_during_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 Reviewed-by: Kevin Ellis Cr-Commit-Position: refs/heads/main{#1358971} -- wpt-commits: 64995b38727cb66354e204a0bc3ecf68ce91c815 wpt-pr: 48311 UltraBlame original commit: ce843e696afd126b9079eaf19aaca139455d952d --- .../pointerevent_click_during_capture.html | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/testing/web-platform/tests/pointerevents/pointerevent_click_during_capture.html b/testing/web-platform/tests/pointerevents/pointerevent_click_during_capture.html index 3e8d8c61962cc..68a4914247d8a 100644 --- a/testing/web-platform/tests/pointerevents/pointerevent_click_during_capture.html +++ b/testing/web-platform/tests/pointerevents/pointerevent_click_during_capture.html @@ -494,6 +494,34 @@ } ) ; +/ +/ +Suppress +context +- +menus +at +right +- +clicks +. +parent +. +addEventListener +( +" +contextmenu +" +e += +> +e +. +preventDefault +( +) +) +; function dragBetweenChildrenAndClickOnDone ( @@ -535,7 +563,7 @@ . ButtonType . -MIDDLE +RIGHT ; actions_promise .