Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure AddAllowedFirstPartyForCookies message is processed before Sch…
…eduleResourceLoad https://bugs.webkit.org/show_bug.cgi?id=247582 rdar://102056030 Reviewed by Chris Dumez. The API test ProcessSwap.NavigateCrossSiteBeforePageLoadEnd was so sensitive to the reordering of messages that it started failing, so I made it respond asynchronously to give the network process time to respond to these new roundtrip messages. Otherwise, no change in behavior. It's taking something that's async and adding an async step. * Source/WebKit/NetworkProcess/NetworkProcess.cpp: (WebKit::NetworkProcess::initializeNetworkProcess): (WebKit::NetworkProcess::addAllowedFirstPartyForCookies): * Source/WebKit/NetworkProcess/NetworkProcess.h: * Source/WebKit/NetworkProcess/NetworkProcess.messages.in: * Source/WebKit/NetworkProcess/NetworkSession.cpp: (WebKit::NetworkSession::ensureSWServer): * Source/WebKit/NetworkProcess/SharedWorker/WebSharedWorkerServer.cpp: (WebKit::WebSharedWorkerServer::createContextConnection): * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::loadAlternateHTML): (WebKit::WebPageProxy::receivedNavigationPolicyDecision): (WebKit::WebPageProxy::triggerBrowsingContextGroupSwitchForNavigation): * Source/WebKit/UIProcess/WebProcessPool.cpp: (WebKit::WebProcessPool::processForNavigation): Canonical link: https://commits.webkit.org/256488@main
- Loading branch information
1 parent
ee45376
commit 3d4ebd0
Showing
9 changed files
with
75 additions
and
26 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
...form/gtk/http/tests/navigation/keyboard-events-during-provisional-navigation-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
CONSOLE MESSAGE: Provisional navigation started. | ||
CONSOLE MESSAGE: No trusted events should be logged and the input element should have the value "". | ||
CONSOLE MESSAGE: Dispatching untrusted keypress event. | ||
CONSOLE MESSAGE: keypressevent dispatched (isTrusted: false). | ||
CONSOLE MESSAGE: Pressing tab. | ||
CONSOLE MESSAGE: Active element after pressing tab: [object HTMLInputElement]. | ||
CONSOLE MESSAGE: Pressing "a". | ||
CONSOLE MESSAGE: Setting marked text to "b". | ||
CONSOLE MESSAGE: Inserting text "c". | ||
CONSOLE MESSAGE: Pasting text "d". | ||
CONSOLE MESSAGE: Input element value after text input events: "". | ||
CONSOLE MESSAGE: Pressing "z" with access key modifiers should navigate to resources/keyboard-events-after-navigation.html. | ||
CONSOLE MESSAGE: keydownevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: keyupevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: Finished navigating to resources/keyboard-events-after-navigation.html. | ||
CONSOLE MESSAGE: Trusted events should be logged and the input element should have the value "acd". | ||
CONSOLE MESSAGE: Dispatching untrusted keypress event. | ||
CONSOLE MESSAGE: keypressevent dispatched (isTrusted: false). | ||
CONSOLE MESSAGE: Pressing tab. | ||
CONSOLE MESSAGE: keydownevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: keyupevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: Active element after pressing tab: [object HTMLInputElement]. | ||
CONSOLE MESSAGE: Pressing "a". | ||
CONSOLE MESSAGE: keydownevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: keypressevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: textInputevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: beforeinputevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: inputevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: keyupevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: Setting marked text to "b". | ||
CONSOLE MESSAGE: compositionstartevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: compositionupdateevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: beforeinputevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: inputevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: Inserting text "c". | ||
CONSOLE MESSAGE: beforeinputevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: inputevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: textInputevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: beforeinputevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: inputevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: compositionendevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: Pasting text "d". | ||
CONSOLE MESSAGE: pasteevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: textInputevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: beforeinputevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: inputevent dispatched (isTrusted: true). | ||
CONSOLE MESSAGE: Input element value after text input events: "acd". | ||
|
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
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