-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ITP treats client injected JavaScript as user interaction
https://bugs.webkit.org/show_bug.cgi?id=260807 rdar://113989281 Reviewed by Brent Fulgham and John Wilander. JavaScript evaluated by the client app is treated as if it was from a user gesture, so ITP currently logs this as a user interaction. This leads to cases where a page can be granted storage privileges without a meaningful user interaction. The enum ProcessInteractionStyle already exists to indicate that logging user interaction for a key press should be delayed until the key press is actually handled. Add another value to this enum to indicate that a user gesture should never be logged as user interaction by ITP. * Source/WebCore/bindings/js/ScriptController.cpp: (WebCore::ScriptController::executeScriptInWorld): * Source/WebCore/dom/UserGestureIndicator.h: * Tools/TestWebKitAPI/Tests/WebKitCocoa/ResourceLoadStatistics.mm: (TEST): Canonical link: https://commits.webkit.org/267381@main
- Loading branch information
1 parent
54b5e2b
commit e2a9577
Showing
3 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters