WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
259028
[user-activation] Fix html/user-activation/activation-trigger-pointerevent.html WPT
https://bugs.webkit.org/show_bug.cgi?id=259028
Summary
[user-activation] Fix html/user-activation/activation-trigger-pointerevent.ht...
Tim Nguyen (:ntim)
Reported
2023-07-09 01:36:57 PDT
https://searchfox.org/wubkat/rev/2517a540e6f5a2037c6843102f3a9cb753f2f9f0/Source/WebCore/dom/UserGestureIndicator.cpp#133-138
The function call (`window->notifyActivated(currentToken()->startTime());`) should happen only for specific events: An activation triggering input event is any event whose isTrusted attribute is true and whose type is one of: "keydown", provided the key is neither the Esc key nor a shortcut key reserved by the user agent. "mousedown". "pointerdown", provided the event's pointerType is "mouse". "pointerup", provided the event's pointerType is not "mouse". "touchend". Here's where we currently trigger it (see EventHandler.cpp notably):
https://searchfox.org/wubkat/search?q=symbol:_ZN7WebCore20UserGestureIndicatorC1ESt8optionalINS_26ProcessingUserGestureStateEEPNS_8DocumentENS_15UserGestureTypeENS0_23ProcessInteractionStyleES1_IN3WTF4UUIDEE&redirect=false
We don't seem to currently trigger it from pointer events.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-07-09 01:37:06 PDT
<
rdar://problem/111970701
>
Tim Nguyen (:ntim)
Comment 2
2023-07-09 01:37:29 PDT
The spec for this is at:
https://html.spec.whatwg.org/multipage/interaction.html#user-activation-processing-model
Tim Nguyen (:ntim)
Comment 3
2023-07-09 01:38:37 PDT
WPT:
https://wpt.fyi/results/html/user-activation/activation-trigger-pointerevent.html%3Fmouse?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned&view=interop&q=label%3Ainterop-2023-events
Abrar Rahman Protyasha
Comment 4
2023-09-22 00:09:16 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/18067
EWS
Comment 5
2023-09-22 10:36:06 PDT
Committed
268320@main
(df336e8effd7): <
https://commits.webkit.org/268320@main
> Reviewed commits have been landed. Closing PR #18067 and removing active labels.
Tim Nguyen (:ntim)
Comment 6
2023-11-30 14:53:30 PST
This was reverted
Abrar Rahman Protyasha
Comment 7
2023-11-30 14:54:23 PST
Thanks for flipping the bits, Tim. I'll address re-landing soon!
Abrar Rahman Protyasha
Comment 8
2023-12-12 02:49:09 PST
Pull request:
https://github.com/WebKit/WebKit/pull/21668
Abrar Rahman Protyasha
Comment 9
2023-12-12 02:55:38 PST
The original fix to address this bug was reverted because it introduced the regression in
bug 263887
. The PR posted just now attempts to do things "the right way" by imbibing certain web automation script to execute with user activation and not have a blanket "make all web automation script blessed with user activation" policy.
EWS
Comment 10
2024-09-09 11:26:45 PDT
Committed
283353@main
(5d09b59ae940): <
https://commits.webkit.org/283353@main
> Reviewed commits have been landed. Closing PR #21668 and removing active labels.
EWS
Comment 11
2024-09-12 21:48:24 PDT
Committed
283286.32@safari-7620-branch
(5c4d89309ff0): <
https://commits.webkit.org/283286.32@safari-7620-branch
> Reviewed commits have been landed. Closing PR #1735 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug