mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Backout changeset ba6be9a8195b (bug 1494145) because it wasn't the right fix
This commit is contained in:
parent
d0aecd3187
commit
c3d0993283
@ -12,16 +12,11 @@ XPCOMUtils.defineLazyServiceGetter(Services, "cookiemgr",
|
|||||||
"nsICookieManager");
|
"nsICookieManager");
|
||||||
|
|
||||||
function restore_prefs() {
|
function restore_prefs() {
|
||||||
Services.prefs.clearUserPref("browser.contentblocking.enabled");
|
|
||||||
Services.prefs.clearUserPref("browser.contentblocking.ui.enabled");
|
|
||||||
Services.prefs.clearUserPref("network.cookie.cookieBehavior");
|
Services.prefs.clearUserPref("network.cookie.cookieBehavior");
|
||||||
Services.prefs.clearUserPref("network.cookie.lifetimePolicy");
|
Services.prefs.clearUserPref("network.cookie.lifetimePolicy");
|
||||||
}
|
}
|
||||||
registerCleanupFunction(restore_prefs);
|
registerCleanupFunction(restore_prefs);
|
||||||
|
|
||||||
Services.prefs.setBoolPref("browser.contentblocking.enabled", true);
|
|
||||||
Services.prefs.setBoolPref("browser.contentblocking.ui.enabled", true);
|
|
||||||
|
|
||||||
async function fake_profile_change() {
|
async function fake_profile_change() {
|
||||||
await new Promise(resolve => {
|
await new Promise(resolve => {
|
||||||
Services.obs.addObserver(function waitForDBClose() {
|
Services.obs.addObserver(function waitForDBClose() {
|
||||||
|
Loading…
Reference in New Issue
Block a user