Bug 1735746 - Block external protocol navigation from sandboxed contexts. r=nika,ckerschb,Gijs,smaug
Differential Revision: https://phabricator.services.mozilla.com/D141131
This commit is contained in:
@@ -12993,9 +12993,12 @@ nsresult nsDocShell::OnLinkClickSync(nsIContent* aContent,
|
||||
nsresult rv =
|
||||
extProtService->IsExposedProtocol(scheme.get(), &isExposed);
|
||||
if (NS_SUCCEEDED(rv) && !isExposed) {
|
||||
return extProtService->LoadURI(aLoadState->URI(), triggeringPrincipal,
|
||||
nullptr, mBrowsingContext,
|
||||
/* aTriggeredExternally */ false);
|
||||
return extProtService->LoadURI(
|
||||
aLoadState->URI(), triggeringPrincipal, nullptr, mBrowsingContext,
|
||||
/* aTriggeredExternally */
|
||||
false,
|
||||
/* aHasValidUserGestureActivation */
|
||||
aContent->OwnerDoc()->HasValidTransientUserGestureActivation());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user