From 64b3e50fd0125ab61fa9441528a1ef4130819149 Mon Sep 17 00:00:00 2001 From: Ricky Chien Date: Fri, 9 Jun 2017 20:56:11 +0800 Subject: [PATCH] Bug 1370781 - Run offlineQuotaNotification test on new preferences r=jaws MozReview-Commit-ID: G3y0xDj1egB --- .../content/test/general/browser_offlineQuotaNotification.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/browser/base/content/test/general/browser_offlineQuotaNotification.js b/browser/base/content/test/general/browser_offlineQuotaNotification.js index 41512e7f8754..bad389089cba 100644 --- a/browser/base/content/test/general/browser_offlineQuotaNotification.js +++ b/browser/base/content/test/general/browser_offlineQuotaNotification.js @@ -15,6 +15,7 @@ registerCleanupFunction(function() { Services.perms.removeFromPrincipal(principal, "offline-app"); Services.prefs.clearUserPref("offline-apps.quota.warn"); Services.prefs.clearUserPref("offline-apps.allow_by_default"); + Services.prefs.clearUserPref("browser.preferences.useOldOrganization"); let {OfflineAppCacheHelper} = Components.utils.import("resource:///modules/offlineAppCache.jsm", {}); OfflineAppCacheHelper.clear(); }); @@ -33,6 +34,7 @@ function checkInContentPreferences(win) { function test() { waitForExplicitFinish(); + Services.prefs.setBoolPref("browser.preferences.useOldOrganization", false); Services.prefs.setBoolPref("offline-apps.allow_by_default", false); // Open a new tab.