Bug 1609078 - Removed browser.tabs.remote.useCORP r=valentin

Differential Revision: https://phabricator.services.mozilla.com/D66861

--HG--
extra : moz-landing-system : lando
This commit is contained in:
sonakshi 2020-03-15 11:03:57 +00:00
parent bb72ba681a
commit 7b0de70e19
4 changed files with 1 additions and 15 deletions

View File

@ -1012,15 +1012,6 @@
#endif
mirror: always
# When this pref is enabled, the browser will check no-cors responses that
# have the Cross-Origin-Resource-Policy header and will fail the request if
# the origin of the resource's loading document doesn't match the origin
# (or base domain) of the loaded resource.
- name: browser.tabs.remote.useCORP
type: bool
value: true
mirror: always
# The percentage of the screen that needs to be scrolled before toolbar
# manipulation is allowed.
- name: browser.ui.scroll-toolbar-threshold

View File

@ -7666,10 +7666,6 @@ nsresult nsHttpChannel::ProcessCrossOriginEmbedderPolicyHeader() {
// https://mikewest.github.io/corpp/#corp-check
nsresult nsHttpChannel::ProcessCrossOriginResourcePolicyHeader() {
if (!StaticPrefs::browser_tabs_remote_useCORP()) {
return NS_OK;
}
// Fetch 4.5.9
uint32_t corsMode;
MOZ_ALWAYS_SUCCEEDS(GetCorsMode(&corsMode));

View File

@ -1 +0,0 @@
prefs: [browser.tabs.remote.useCORP:true]

View File

@ -1,2 +1,2 @@
prefs: [browser.tabs.remote.useCrossOriginEmbedderPolicy:true, browser.tabs.remote.useCORP:true]
prefs: [browser.tabs.remote.useCrossOriginEmbedderPolicy:true]
lsan-allowed: [Alloc, Malloc, Then, mozilla::BasePrincipal::CreateContentPrincipal, mozilla::SchedulerGroup::CreateEventTargetFor, mozilla::dom::ServiceWorkerJobQueue::RunJob, mozilla::dom::ServiceWorkerManager::Unregister, mozilla::dom::ServiceWorkerRegistrationMainThread::Unregister, mozilla::dom::UnregisterCallback::UnregisterCallback, mozilla::net::nsStandardURL::TemplatedMutator, operator]