Bug 1307151 - Clear prefs in a cleanup function in browser_webconsole_bug_737873_mixedcontent.js;r=me

MozReview-Commit-ID: 7X5NVOcvop8
This commit is contained in:
Brian Grinstead 2016-10-03 10:16:51 -07:00
Родитель 23aa61d975
Коммит 0320133b2f
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -13,6 +13,11 @@ const TEST_HTTPS_URI = "https://example.com/browser/devtools/client/" +
const LEARN_MORE_URI = "https://developer.mozilla.org/docs/Web/Security/" +
"Mixed_content";
registerCleanupFunction(function*() {
Services.prefs.clearUserPref("security.mixed_content.block_display_content");
Services.prefs.clearUserPref("security.mixed_content.block_active_content");
});
add_task(function* () {
Services.prefs.setBoolPref("security.mixed_content.block_display_content",
false);
@ -24,9 +29,6 @@ add_task(function* () {
let hud = yield openConsole();
yield testMixedContent(hud);
Services.prefs.clearUserPref("security.mixed_content.block_display_content");
Services.prefs.clearUserPref("security.mixed_content.block_active_content");
});
var testMixedContent = Task.async(function* (hud) {