-
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.
Cherry-pick 259548.840@safari-7615-branch (259842c). <bug>
Cherry-pick 265168@main (8e5ddea). rdar://110919134 evaluateJavaScript: and callAsyncJavaScript: should not leave behind transient activation https://bugs.webkit.org/show_bug.cgi?id=258037 rdar://107102031 Reviewed by Ben Nham. JavaScript evaluated by the client app is executed as if from a user gesture, which is fine for now. But before this change, such JS left behind transient user activation for (currently) 5 seconds, which is not fine. Let's remove that sticky side effect. * Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.cpp: (WTF::computeSDKAlignedBehaviors): * Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h: * Source/WebCore/bindings/js/ScriptController.cpp: (WebCore::ScriptController::executeScriptInWorld): (WebCore::ScriptController::executeAsynchronousUserAgentScriptInWorld): * Source/WebCore/dom/UserGestureIndicator.cpp: (WebCore::UserGestureToken::forEachImpactedDocument): * Source/WebCore/dom/UserGestureIndicator.h: * Tools/TestWebKitAPI/Tests/WebKitCocoa/AsyncFunction.mm: (TestWebKitAPI::TEST): Canonical link: https://commits.webkit.org/265168@main Canonical link: https://commits.webkit.org/259548.840@safari-7615-branch
- Loading branch information
1 parent
20aeaf0
commit 4876897
Showing
5 changed files
with
61 additions
and
1 deletion.
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
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