Skip to content

Commit

Permalink
Merge pull request #408 from LibertyGlobal/amol-virnodkar-infosys/ONE…
Browse files Browse the repository at this point in the history
…M-35907-2.42-fix-23Q4

ONEM-35907 : [WPE2.38] - Tetris app shows black screen while opening
  • Loading branch information
amol-virnodkar-infosys authored Aug 5, 2024
2 parents d023674 + a55811b commit e4878d6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,9 @@ void WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction(const Navigat
// the provisional load's DocumentLoader needs to receive navigation policy decisions. We need a better model for this state.
documentLoader = static_cast<WebDocumentLoader*>(coreFrame->loader().provisionalDocumentLoader());
}
if (!documentLoader)
// PolicyDecisionMode::Synchronous means that it is a FragmentNavigation and in that case we should use documentLoader,
// because there can be ongoing (in policy or provisional state) navigation.
if (!documentLoader || policyDecisionMode == PolicyDecisionMode::Synchronous)
documentLoader = static_cast<WebDocumentLoader*>(coreFrame->loader().documentLoader());

navigationActionData.clientRedirectSourceForHistory = documentLoader->clientRedirectSourceForHistory();
Expand Down

0 comments on commit e4878d6

Please sign in to comment.