File tree Expand file tree Collapse file tree
Source/WebKit/WebProcess/WebCoreSupport Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1006,7 +1006,9 @@ void WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction(const Navigat
10061006 // the provisional load's DocumentLoader needs to receive navigation policy decisions. We need a better model for this state.
10071007 documentLoader = static_cast <WebDocumentLoader*>(coreFrame->loader ().provisionalDocumentLoader ());
10081008 }
1009- if (!documentLoader)
1009+ // PolicyDecisionMode::Synchronous means that it is a FragmentNavigation and in that case we should use documentLoader,
1010+ // because there can be ongoing (in policy or provisional state) navigation.
1011+ if (!documentLoader || policyDecisionMode == PolicyDecisionMode::Synchronous)
10101012 documentLoader = static_cast <WebDocumentLoader*>(coreFrame->loader ().documentLoader ());
10111013
10121014 navigationActionData.clientRedirectSourceForHistory = documentLoader->clientRedirectSourceForHistory ();
You can’t perform that action at this time.
0 commit comments