Skip to content

Commit ee25625

Browse files
magomezpgorszkowski-igalia
authored andcommitted
Do not try to swap navigation as we're not using PSON
1 parent 627a2f5 commit ee25625

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,9 @@ void NetworkResourceLoader::processClearSiteDataHeader(const WebCore::ResourceRe
826826

827827
static BrowsingContextGroupSwitchDecision toBrowsingContextGroupSwitchDecision(const std::optional<CrossOriginOpenerPolicyEnforcementResult>& currentCoopEnforcementResult)
828828
{
829+
// PSON is disabled, so return a value that doesn't cause the navigation to be swapped to a new WebProcess.
830+
return BrowsingContextGroupSwitchDecision::StayInGroup;
831+
829832
if (!currentCoopEnforcementResult || !currentCoopEnforcementResult->needsBrowsingContextGroupSwitch)
830833
return BrowsingContextGroupSwitchDecision::StayInGroup;
831834
if (currentCoopEnforcementResult->crossOriginOpenerPolicy.value == CrossOriginOpenerPolicyValue::SameOriginPlusCOEP)

0 commit comments

Comments
 (0)