Skip to content

Commit

Permalink
Bug 1863364 [wpt PR 42976] - Don't fire dblclick on disabled form con…
Browse files Browse the repository at this point in the history
…trol elements, a=testonly

Automatic update from web-platform-tests
Don't fire dblclick on disabled form control elements

As discussed here, we should apply the event blocking behavior for
disabled form controls to dblclick in addition to click, mouseup, and
mousedown:
whatwg/html#2368 (comment)

Change-Id: Ibc52585ce0704d8ba8467efc3462bd378d23fbae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5007308
Commit-Queue: Joey Arhar <jarharchromium.org>
Reviewed-by: Mason Freed <masonfchromium.org>
Cr-Commit-Position: refs/heads/main{#1225838}

--

wpt-commits: dd5d55c3debd577a09921b32f3816797664c5e86
wpt-pr: 42976

UltraBlame original commit: 3bf4c6228d9c37fc63955610b37cb0bf6d5dff3d
  • Loading branch information
marco-c committed Nov 30, 2023
1 parent 3eb6da5 commit 60dd083
Showing 1 changed file with 69 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@
'
click
'
'
dblclick
'
]
.
forEach
Expand Down Expand Up @@ -385,18 +388,79 @@
true
)
;
await
test_driver
.
click
(
const
elementToClick
=
clickChildElement
?
targetchild
:
target
;
if
(
eventName
=
=
=
'
dblclick
'
)
{
await
(
new
test_driver
.
Actions
(
)
.
pointerMove
(
1
1
{
origin
:
elementToClick
}
)
.
pointerDown
(
)
.
pointerUp
(
)
.
pointerDown
(
)
.
pointerUp
(
)
)
.
send
(
)
;
}
else
{
await
test_driver
.
click
(
elementToClick
)
;
}
const
parentShouldReceiveEvents
=
Expand Down

0 comments on commit 60dd083

Please sign in to comment.