зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b58a9a8eca
Коммит
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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче