Bug 1842971 removed dom.block_download_in_sandboxed_iframes r=emilio

There we go

Differential Revision: https://phabricator.services.mozilla.com/D184241
This commit is contained in:
renevietnam29@gmail.com 2023-07-24 12:13:49 +00:00
parent 9bbc02bf02
commit bd2633f734
3 changed files with 1 additions and 12 deletions

View File

@ -1615,10 +1615,6 @@ long nsContentSecurityUtils::ClassifyDownload(
return nsITransfer::DOWNLOAD_ACCEPTABLE;
}
if (!StaticPrefs::dom_block_download_in_sandboxed_iframes()) {
return nsITransfer::DOWNLOAD_ACCEPTABLE;
}
uint32_t triggeringFlags = loadInfo->GetTriggeringSandboxFlags();
uint32_t currentflags = loadInfo->GetSandboxFlags();
@ -1630,6 +1626,5 @@ long nsContentSecurityUtils::ClassifyDownload(
}
return nsITransfer::DOWNLOAD_FORBIDDEN;
}
return nsITransfer::DOWNLOAD_ACCEPTABLE;
}

View File

@ -2257,12 +2257,6 @@
value: true
mirror: always
# Block all downloads in iframes with the sandboxed attribute
- name: dom.block_download_in_sandboxed_iframes
type: bool
value: true
mirror: always
# Block multiple window.open() per single event.
- name: dom.block_multiple_popups
type: bool

View File

@ -1 +1 @@
prefs: [dom.targetBlankNoOpener.enabled:false, dom.block_download_in_sandboxed_iframes:true ]
prefs: [dom.targetBlankNoOpener.enabled:false]