mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 1653541 - always allow webextensions to navigate to external protocol URIs, r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D84179
This commit is contained in:
parent
b58a9a8eca
commit
6b51f8bd70
@ -977,6 +977,9 @@ nsExternalHelperAppService::LoadURI(nsIURI* aURI,
|
||||
// from otherwise disjoint browsingcontext trees.
|
||||
if (aBrowsingContext && aTriggeringPrincipal &&
|
||||
!StaticPrefs::security_allow_disjointed_external_uri_loads() &&
|
||||
// Add-on principals are always allowed:
|
||||
!BasePrincipal::Cast(aTriggeringPrincipal)->AddonPolicy() &&
|
||||
// As is chrome code:
|
||||
!aTriggeringPrincipal->IsSystemPrincipal()) {
|
||||
RefPtr<BrowsingContext> bc = aBrowsingContext;
|
||||
WindowGlobalParent* wgp = bc->Canonical()->GetCurrentWindowGlobal();
|
||||
|
Loading…
Reference in New Issue
Block a user