Repository navigation
Enable Navigation API - #50613
Merged
webkit-commit-queue merged 1 commit intoSep 13, 2025
Merged
Enable Navigation API#50613
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 63abee5) Details |
RupinMittal
force-pushed
the
eng/ReenableNavigationAPI
branch
from
September 12, 2025 23:31
63abee5 to
6acece7
Compare
Collaborator
|
EWS run on previous version of this PR (hash 6acece7) Details |
RupinMittal
force-pushed
the
eng/ReenableNavigationAPI
branch
from
September 12, 2025 23:43
6acece7 to
09353fe
Compare
Collaborator
|
EWS run on current version of this PR (hash 09353fe) Details |
charliewolfe
approved these changes
Sep 13, 2025
Contributor
Author
|
Looks like the jsc-arm7 bots are in a bad state. All other bots are green, so I'm landing. |
https://bugs.webkit.org/show_bug.cgi?id=298730 rdar://160389651 Reviewed by Charlie Wolfe. Enable the Navigation API on Cocoa, GTK, WPE now that the PLT regression is fixed (299858@main). Enabling this API results in the ProcessSwap.SwapOnFormSubmission API test failing. It fails because on [webView reload], the web process changes rather than staying the same. The issue is that on [webView reload], we call FrameLoader::reload which ends up calling Navigation::initializeForNewWindow. Since there is a previous window with previous navigation entries we should process, we go down the shouldProcessPreviousNavigationEntries path. Then, since the navigation type is not Traverse or Push, we end up in the last else case, which dereferences the navigationType. Turns out, no navigationType has been set. So the process crashes, which causes a new process to be spun up and reload is called in that process. Hence the process ID in the API test is not equal to the old one. To fix this, we make FrameLoader::reload set the NavigationNavigationType as it should have been doing before. This issue did not arise earlier since API tests are not run with non-stable feature flags enabled. Now that we're enabling it, this case will continue to be tested by ProcessSwap.SwapOnFormSubmission. * Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml: * Source/WebCore/loader/DocumentLoader.h: (WebCore::DocumentLoader::setTriggeringNavigationAPIType): * Source/WebCore/loader/FrameLoader.cpp: (WebCore::FrameLoader::reload): * Source/WebCore/page/Navigation.cpp: (WebCore::Navigation::initializeForNewWindow): Canonical link: https://commits.webkit.org/299927@main
webkit-commit-queue
force-pushed
the
eng/ReenableNavigationAPI
branch
from
September 13, 2025 04:11
09353fe to
a3e994b
Compare
Collaborator
|
Committed 299927@main (a3e994b): https://commits.webkit.org/299927@main Reviewed commits have been landed. Closing PR #50613 and removing active labels. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
a3e994b
09353fe
🛠 jsc-armv7🧪 jsc-armv7-tests