Backout changeset ba6be9a8195b (bug 1494145) because it wasn't the right fix

This commit is contained in:
Ehsan Akhgari 2018-09-27 14:37:06 -04:00
parent d0aecd3187
commit c3d0993283

View File

@ -12,16 +12,11 @@ XPCOMUtils.defineLazyServiceGetter(Services, "cookiemgr",
"nsICookieManager");
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.lifetimePolicy");
}
registerCleanupFunction(restore_prefs);
Services.prefs.setBoolPref("browser.contentblocking.enabled", true);
Services.prefs.setBoolPref("browser.contentblocking.ui.enabled", true);
async function fake_profile_change() {
await new Promise(resolve => {
Services.obs.addObserver(function waitForDBClose() {