зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
23aa61d975
Коммит
0320133b2f
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче