mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Backed out 2 changesets (bug 1753696) for causing multiple dt and bc failures CLOSED TREE
Backed out changeset 67fd9edfbcea (bug 1753696) Backed out changeset a9d957ea887b (bug 1753696)
This commit is contained in:
parent
660c8e6280
commit
acdd6851cd
@ -18,7 +18,7 @@ const bookmarksInfo = [
|
||||
},
|
||||
];
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
// Ensure we can wait for about:newtab to load.
|
||||
set: [["browser.newtab.preload", false]],
|
||||
|
@ -20,7 +20,7 @@ const PAGE =
|
||||
// to show up before we decide that it's not coming.
|
||||
const NOTIFICATION_TIMEOUT_SECS = 2000;
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await addNotificationPermission(PAGE);
|
||||
});
|
||||
|
||||
|
@ -40,7 +40,7 @@ async function checkCaptivePortalTabReference(evt, currState) {
|
||||
gBrowser.removeTab(errorTab);
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["captivedetect.canonicalURL", CANONICAL_URL],
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["captivedetect.canonicalURL", CANONICAL_URL],
|
||||
|
@ -12,7 +12,7 @@ const testPath = getRootDirectory(gTestPath).replace(
|
||||
const CANONICAL_URI = Services.io.newURI(testPath);
|
||||
const PERMISSION_NAME = "https-only-load-insecure";
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
// That changes the canoncicalURL from "http://{server}/captive-detect/success.txt"
|
||||
// to http://example.com
|
||||
|
@ -35,7 +35,7 @@ function unlockHandler(request, response) {
|
||||
response.setHeader("Location", CANONICAL_SUCCESS_URL);
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
// Set up a mock server for handling captive portal redirect.
|
||||
server = new HttpServer();
|
||||
server.registerPathHandler("/success", redirectHandler);
|
||||
|
@ -135,7 +135,7 @@ async function openInNewTabAndReturnContent(selector) {
|
||||
return blobDataFromContent;
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["privacy.partition.bloburl_per_agent_cluster", false]],
|
||||
});
|
||||
|
@ -35,7 +35,7 @@ async function openAndCheckContextMenu(contextMenu, target) {
|
||||
}
|
||||
|
||||
// Ensure that we can run touch events properly for windows [10]
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
let isWindows = AppConstants.isPlatformAndVersionAtLeast("win", "10.0");
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["apz.test.fails_with_native_injection", isWindows]],
|
||||
|
@ -28,7 +28,7 @@ function createLinks(linkInfos) {
|
||||
});
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
const URL = ROOT + "discovery.html";
|
||||
let iconPromise = waitIcon("http://mochi.test:8888/favicon.ico");
|
||||
let tab = await BrowserTestUtils.openNewForegroundTab(gBrowser, URL);
|
||||
|
@ -321,7 +321,7 @@ async function doSelectTests(contentType, content) {
|
||||
BrowserTestUtils.removeTab(tab);
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["dom.forms.select.customstyling", true]],
|
||||
});
|
||||
|
@ -459,7 +459,7 @@ async function testSelectColors(selectID, itemCount, options) {
|
||||
// System colors may be different in content pages and chrome pages.
|
||||
let kDefaultSelectStyles = {};
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["dom.forms.select.customstyling", true]],
|
||||
});
|
||||
|
@ -6,7 +6,7 @@ SELECT +=
|
||||
' <option selected="true">{"end": "true"}</option>' +
|
||||
"</select></body></html>";
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["dom.forms.selectSearch", true]],
|
||||
});
|
||||
|
@ -76,7 +76,7 @@ async function testWindowElementFocus(isPopup) {
|
||||
BrowserTestUtils.removeTab(tab);
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["dom.disable_open_during_load", false], // Allow window.focus calls without user interaction
|
||||
|
@ -28,7 +28,7 @@ async function testWindowOpen(iframeID) {
|
||||
BrowserTestUtils.removeTab(tab);
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["dom.disable_open_during_load", false], // Allow window.open calls without user interaction
|
||||
|
@ -113,7 +113,7 @@ var checkInfobarButton = async function(aNotification) {
|
||||
await promiseNextTick();
|
||||
};
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
const isFirstRun = Preferences.get(PREF_FIRST_RUN, true);
|
||||
const bypassNotification = Preferences.get(PREF_BYPASS_NOTIFICATION, true);
|
||||
const currentPolicyVersion = Preferences.get(PREF_CURRENT_POLICY_VERSION, 1);
|
||||
|
@ -27,7 +27,7 @@ function openAboutPrefPromise(win) {
|
||||
];
|
||||
return Promise.all(promises);
|
||||
}
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
let win = await BrowserTestUtils.openNewBrowserWindow();
|
||||
// Open a new tab to keep the window open.
|
||||
await BrowserTestUtils.openNewForegroundTab(
|
||||
|
@ -16,7 +16,7 @@ function waitForNewWindow() {
|
||||
});
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
let tmpDir = PathUtils.join(
|
||||
PathUtils.tempDir,
|
||||
"testsavedir" + Math.floor(Math.random() * 2 ** 32)
|
||||
|
@ -94,7 +94,7 @@ function withNewBlankTab(taskFn) {
|
||||
|
||||
const BOOKMARKS_COUNT = 100;
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["browser.toolbars.keyboard_navigation", true],
|
||||
|
@ -73,7 +73,7 @@ function testPermListHasEntries(expectEntries) {
|
||||
ok(!listEntryCount, "List of permissions is empty");
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
registerCleanupFunction(() => {
|
||||
Services.perms.removeAll();
|
||||
Services.prefs.clearUserPref(AUTOPLAY_PREF);
|
||||
|
@ -112,7 +112,7 @@ async function checkGeolocation(browser, frameId, expect) {
|
||||
}
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await new Promise(r => {
|
||||
SpecialPowers.pushPrefEnv(
|
||||
{
|
||||
|
@ -84,7 +84,7 @@ async function check(contentTask, options = {}) {
|
||||
}
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["media.navigator.permission.fake", true],
|
||||
|
@ -15,7 +15,7 @@ function clearAllPermissionsByPrefix(aPrefix) {
|
||||
}
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
// Enable the popup blocker.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["dom.disable_open_during_load", true]],
|
||||
|
@ -18,7 +18,7 @@ const { CustomizableUITestUtils } = ChromeUtils.import(
|
||||
"resource://testing-common/CustomizableUITestUtils.jsm"
|
||||
);
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
// Set the auto hide timing to 100ms for blocking the test less.
|
||||
|
@ -12,7 +12,7 @@ const CONTAINER_PAGE =
|
||||
|
||||
const TPC_PREF = "network.cookie.cookieBehavior";
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await UrlClassifierTestUtils.addTestTrackers();
|
||||
|
||||
registerCleanupFunction(() => {
|
||||
|
@ -8,7 +8,7 @@ const TRACKING_PAGE =
|
||||
const CM_PROTECTION_PREF = "privacy.trackingprotection.cryptomining.enabled";
|
||||
let cmHistogram;
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
[
|
||||
|
@ -8,7 +8,7 @@ const TRACKING_PAGE =
|
||||
const FP_PROTECTION_PREF = "privacy.trackingprotection.fingerprinting.enabled";
|
||||
let fpHistogram;
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
[
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
// Hide protections cards so as not to trigger more async messaging
|
||||
|
@ -40,7 +40,7 @@ async function waitAndAssertPreferencesShown(_spotlight) {
|
||||
BrowserTestUtils.removeTab(gBrowser.selectedTab);
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await UrlClassifierTestUtils.addTestTrackers();
|
||||
let oldCanRecord = Services.telemetry.canRecordExtended;
|
||||
Services.telemetry.canRecordExtended = true;
|
||||
|
@ -23,7 +23,7 @@ let { Preferences } = ChromeUtils.import(
|
||||
"resource://gre/modules/Preferences.jsm"
|
||||
);
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await UrlClassifierTestUtils.addTestTrackers();
|
||||
|
||||
registerCleanupFunction(() => {
|
||||
|
@ -74,7 +74,7 @@ const TEST_CASES = [
|
||||
},
|
||||
];
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
// By default, proxies don't apply to 127.0.0.1. We need them to for this test, though:
|
||||
|
@ -9,7 +9,7 @@ const TRACKING_PAGE =
|
||||
const ST_PROTECTION_PREF = "privacy.trackingprotection.socialtracking.enabled";
|
||||
const ST_BLOCK_COOKIES_PREF = "privacy.socialtracking.block_cookies.enabled";
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
[ST_BLOCK_COOKIES_PREF, true],
|
||||
|
@ -14,7 +14,7 @@
|
||||
const TRACKING_PAGE =
|
||||
"http://example.net/browser/browser/base/content/test/protectionsUI/trackingPage.html";
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["privacy.trackingprotection.enabled", true],
|
||||
|
@ -29,7 +29,7 @@ function getShieldCounts() {
|
||||
return getShieldHistogram().snapshot().values;
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await UrlClassifierTestUtils.addTestTrackers();
|
||||
Services.prefs.setBoolPref(DTSCBN_PREF, true);
|
||||
|
||||
|
@ -13,7 +13,7 @@ const TRACKING_PAGE =
|
||||
|
||||
const TP_PREF = "privacy.trackingprotection.enabled";
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await UrlClassifierTestUtils.addTestTrackers();
|
||||
|
||||
registerCleanupFunction(() => {
|
||||
|
@ -12,7 +12,7 @@ function failIfSidebarFocusedFires() {
|
||||
ok(false, "This event shouldn't have fired");
|
||||
}
|
||||
|
||||
add_setup(function() {
|
||||
add_task(function setup() {
|
||||
CustomizableUI.addWidgetToArea("sidebar-button", "nav-bar");
|
||||
registerCleanupFunction(() =>
|
||||
CustomizableUI.removeWidgetFromArea("sidebar-button")
|
||||
|
@ -34,7 +34,7 @@ const HTTPS_TEST_ROOT_2 = getRootDirectory(gTestPath).replace(
|
||||
"https://test2.example.com"
|
||||
);
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({ set: [[PREF_ACTIVE, true]] });
|
||||
});
|
||||
|
||||
|
@ -27,7 +27,7 @@ const fxaDevices = [
|
||||
{ id: 4, name: "Homer" }, // Incompatible target.
|
||||
];
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await promiseSyncReady();
|
||||
await Services.search.init();
|
||||
// gSync.init() is called in a requestIdleCallback. Force its initialization.
|
||||
|
@ -50,7 +50,7 @@ function updateTabContextMenu(tab = gBrowser.selectedTab) {
|
||||
menu.hidePopup();
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await promiseSyncReady();
|
||||
await Services.search.init();
|
||||
// gSync.init() is called in a requestIdleCallback. Force its initialization.
|
||||
|
@ -9,7 +9,7 @@ const { CustomizableUITestUtils } = ChromeUtils.import(
|
||||
|
||||
let gCUITestUtils = new CustomizableUITestUtils(window);
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
// gSync.init() is called in a requestIdleCallback. Force its initialization.
|
||||
gSync.init();
|
||||
// This preference gets set the very first time that the FxA menu gets opened,
|
||||
|
@ -36,7 +36,7 @@ function getTestDirectory() {
|
||||
return tmpDir.path;
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
// Allow using our MockFilePicker in the content process.
|
||||
|
@ -125,7 +125,7 @@ async function checkDialog(
|
||||
});
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["prompts.contentPromptSubDialog", true],
|
||||
|
@ -3,7 +3,7 @@
|
||||
const PAGE =
|
||||
"data:text/html,<html><body>A%20regular,%20everyday,%20normal%20page.";
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await setupLocalCrashReportServer();
|
||||
});
|
||||
|
||||
|
@ -7,7 +7,7 @@ const COMMENTS = "Here's my test comment!";
|
||||
// Avoid timeouts, as in bug 1325530
|
||||
requestLongerTimeout(2);
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await setupLocalCrashReportServer();
|
||||
});
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
const PAGE =
|
||||
"data:text/html,<html><body>A%20regular,%20everyday,%20normal%20page.";
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
prepareNoDump();
|
||||
});
|
||||
|
||||
|
@ -41,7 +41,7 @@ var commonDialogsBundle = Services.strings.createBundle(
|
||||
);
|
||||
|
||||
// Setup.
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [[CONTENT_PROMPT_PREF, true]],
|
||||
});
|
||||
|
@ -15,7 +15,7 @@ function synthesizeKeyAndWaitForTabToGetKeyboardFocus(tab, keyCode, options) {
|
||||
return focused;
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
// The DevEdition has the DevTools button in the toolbar by default. Remove it
|
||||
// to prevent branch-specific rules what button should be focused.
|
||||
CustomizableUI.removeWidgetFromArea("developer-button");
|
||||
|
@ -33,7 +33,7 @@ var gPrevRemoteTypeRegularTab;
|
||||
var gPrevRemoteTypeContainerTab;
|
||||
var gPrevRemoteTypePrivateTab;
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["privacy.userContext.enabled", true],
|
||||
|
@ -17,7 +17,7 @@ const ABOUT_NEWTAB = "about:newtab";
|
||||
const ABOUT_WELCOME = "about:welcome";
|
||||
const TEST_HTTP = "http://example.org/";
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["browser.newtab.preload", false],
|
||||
|
@ -21,7 +21,7 @@ var TEST_CASES = [
|
||||
const NUM_PAGES_OPEN_FOR_EACH_TEST_CASE = 5;
|
||||
var remoteTypes;
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["privacy.userContext.enabled", true],
|
||||
|
@ -49,7 +49,7 @@ function handleEventLocal(aEvent) {
|
||||
}
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["privacy.userContext.enabled", true],
|
||||
|
@ -26,7 +26,7 @@ function testAttrib(tabIndex, attrib, expected) {
|
||||
);
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
is(gBrowser.tabs.length, 1, "one tab is open initially");
|
||||
|
||||
addTab("http://mochi.test:8888/#0");
|
||||
|
@ -17,7 +17,7 @@ const TEST_HIGH2 = "https://test1.example.org/";
|
||||
const TEST_LOW1 = "http://example.org/";
|
||||
const TEST_LOW2 = "https://example.com/";
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["browser.tabs.remote.separatePrivilegedMozillaWebContentProcess", true],
|
||||
|
@ -11,7 +11,7 @@ SearchTestUtils.init(this);
|
||||
|
||||
const kButton = document.getElementById("reload-button");
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["browser.fixup.dns_first_for_single_words", true]],
|
||||
});
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
const { sinon } = ChromeUtils.import("resource://testing-common/Sinon.jsm");
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
let tab1 = await addTab();
|
||||
let tab2 = await addTab();
|
||||
let tab3 = await addTab();
|
||||
|
@ -38,7 +38,7 @@ let win;
|
||||
let nonBeforeUnloadTab;
|
||||
let beforeUnloadTab;
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["dom.require_user_interaction_for_beforeunload", false]],
|
||||
});
|
||||
|
@ -58,7 +58,7 @@ function waitForSnapshotCount(histogram, expectedCount) {
|
||||
}, `Collected value should become ${expectedCount}.`);
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
// Force-enable tab animations
|
||||
gReduceMotionOverride = false;
|
||||
|
||||
|
@ -82,7 +82,7 @@ async function testProbe(aProbe) {
|
||||
);
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["dom.ipc.processCount", 1],
|
||||
|
@ -112,7 +112,7 @@ async function openAndCheckCustomizationUIMenu(target) {
|
||||
}
|
||||
|
||||
// Ensure that we can run touch events properly for windows [10]
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
let isWindows = AppConstants.isPlatformAndVersionAtLeast("win", "10.0");
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["apz.test.fails_with_native_injection", isWindows]],
|
||||
|
@ -35,7 +35,7 @@ function getBadgeStatus() {
|
||||
}
|
||||
|
||||
// Set some prefs that apply to all the tests in this file
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
// We don't have pre-pinned certificates for the local mochitest server
|
||||
|
@ -20,7 +20,7 @@ function getBadgeStatus() {
|
||||
}
|
||||
|
||||
// Set some prefs that apply to all the tests in this file
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
// We don't have pre-pinned certificates for the local mochitest server
|
||||
|
@ -3,7 +3,7 @@
|
||||
const INSTALL_PAGE = `${BASE}/file_install_extensions.html`;
|
||||
const INSTALL_XPI = `${BASE}/browser_webext_permissions.xpi`;
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["extensions.webapi.testing", true],
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Set some prefs that apply to all the tests in this file
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
// We don't have pre-pinned certificates for the local mochitest server
|
||||
|
@ -15,7 +15,7 @@ const MUTE_TOPICS = [
|
||||
"getUserMedia:unmuteAudio",
|
||||
];
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
let prefs = [
|
||||
[PREF_PERMISSION_FAKE, true],
|
||||
[PREF_AUDIO_LOOPBACK, ""],
|
||||
|
@ -129,7 +129,7 @@ async function testNotificationSilencing(aBrowser) {
|
||||
);
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
// Set prefs so that permissions prompts are shown and loopback devices
|
||||
// are not used. To test the chrome we want prompts to be shown, and
|
||||
// these tests are flakey when using loopback devices (though it would
|
||||
|
@ -9,7 +9,7 @@ const TEST_ROOT = getRootDirectory(gTestPath).replace(
|
||||
);
|
||||
const TEST_PAGE = TEST_ROOT + "get_user_media.html";
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
let prefs = [
|
||||
[PREF_PERMISSION_FAKE, true],
|
||||
[PREF_AUDIO_LOOPBACK, ""],
|
||||
|
@ -9,7 +9,7 @@ const TEST_ROOT = getRootDirectory(gTestPath).replace(
|
||||
);
|
||||
const TEST_PAGE = TEST_ROOT + "get_user_media.html";
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
let prefs = [
|
||||
[PREF_PERMISSION_FAKE, true],
|
||||
[PREF_AUDIO_LOOPBACK, ""],
|
||||
|
@ -188,7 +188,7 @@ async function ensureWarning(tab) {
|
||||
);
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["privacy.webrtc.sharedTabWarning", true]],
|
||||
});
|
||||
|
@ -30,7 +30,7 @@ let VULNERABLE_TEST_LOGIN2 = new nsLoginInfo(
|
||||
"password"
|
||||
);
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
TEST_LOGIN1 = await addLogin(TEST_LOGIN1);
|
||||
VULNERABLE_TEST_LOGIN2 = await addLogin(VULNERABLE_TEST_LOGIN2);
|
||||
TEST_LOGIN3 = await addLogin(TEST_LOGIN3);
|
||||
|
@ -24,7 +24,7 @@ let VULNERABLE_TEST_LOGIN2 = new nsLoginInfo(
|
||||
"password"
|
||||
);
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
TEST_LOGIN1 = await addLogin(TEST_LOGIN1);
|
||||
VULNERABLE_TEST_LOGIN2 = await addLogin(VULNERABLE_TEST_LOGIN2);
|
||||
TEST_LOGIN3 = await addLogin(TEST_LOGIN3);
|
||||
|
@ -14,7 +14,7 @@ EXPECTED_BREACH = {
|
||||
schema: "1541615609018",
|
||||
};
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await BrowserTestUtils.openNewForegroundTab({
|
||||
gBrowser,
|
||||
url: "about:logins",
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await BrowserTestUtils.openNewForegroundTab({
|
||||
gBrowser,
|
||||
url: "about:logins",
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
TEST_LOGIN1 = await addLogin(TEST_LOGIN1);
|
||||
await BrowserTestUtils.openNewForegroundTab({
|
||||
gBrowser,
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
let aboutLoginsTab = await BrowserTestUtils.openNewForegroundTab({
|
||||
gBrowser,
|
||||
url: "about:logins",
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
TEST_LOGIN1 = await addLogin(TEST_LOGIN1);
|
||||
TEST_LOGIN2 = await addLogin(TEST_LOGIN2);
|
||||
await BrowserTestUtils.openNewForegroundTab({
|
||||
|
@ -12,7 +12,7 @@ function mockState(state) {
|
||||
});
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
let aboutLoginsTab = await BrowserTestUtils.openNewForegroundTab({
|
||||
gBrowser,
|
||||
url: "about:logins",
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await BrowserTestUtils.openNewForegroundTab({
|
||||
gBrowser,
|
||||
url: "about:logins",
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await BrowserTestUtils.openNewForegroundTab({
|
||||
gBrowser,
|
||||
url: "about:logins",
|
||||
|
@ -16,7 +16,7 @@ EXPECTED_BREACH = {
|
||||
|
||||
const SORT_PREF_NAME = "signon.management.page.sort";
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
TEST_LOGIN3.QueryInterface(Ci.nsILoginMetaInfo).timePasswordChanged = 1;
|
||||
TEST_LOGIN1 = await addLogin(TEST_LOGIN1);
|
||||
info(`TEST_LOGIN1 added with guid=${TEST_LOGIN1.guid}`);
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await BrowserTestUtils.openNewForegroundTab({
|
||||
gBrowser,
|
||||
url: "about:logins",
|
||||
|
@ -17,7 +17,7 @@ let { TelemetryTestUtils } = ChromeUtils.import(
|
||||
|
||||
let { MockFilePicker } = SpecialPowers;
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await TestUtils.waitForCondition(() => {
|
||||
Services.telemetry.clearEvents();
|
||||
let events = Services.telemetry.snapshotEvents(
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
let storageChangedPromised = TestUtils.topicObserved(
|
||||
"passwordmgr-storage-changed",
|
||||
(_, data) => data == "addLogin"
|
||||
|
@ -5,7 +5,7 @@ let { TelemetryTestUtils } = ChromeUtils.import(
|
||||
"resource://testing-common/TelemetryTestUtils.jsm"
|
||||
);
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await TestUtils.waitForCondition(() => {
|
||||
Services.telemetry.clearEvents();
|
||||
let events = Services.telemetry.snapshotEvents(
|
||||
|
@ -257,7 +257,7 @@ class CsvImportHelper {
|
||||
|
||||
const random = Math.round(Math.random() * 100000001);
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
registerCleanupFunction(() => {
|
||||
Services.logins.removeAllUserFacingLogins();
|
||||
});
|
||||
|
@ -5,7 +5,7 @@ let { TelemetryTestUtils } = ChromeUtils.import(
|
||||
"resource://testing-common/TelemetryTestUtils.jsm"
|
||||
);
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await TestUtils.waitForCondition(() => {
|
||||
Services.telemetry.clearEvents();
|
||||
let events = Services.telemetry.snapshotEvents(
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await BrowserTestUtils.openNewForegroundTab({
|
||||
gBrowser,
|
||||
url: "about:logins",
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
TEST_LOGIN1 = await addLogin(TEST_LOGIN1);
|
||||
await BrowserTestUtils.openNewForegroundTab({
|
||||
gBrowser,
|
||||
|
@ -17,7 +17,7 @@ function waitForLoginCountToReach(browser, loginCount) {
|
||||
);
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await addLogin(TEST_LOGIN1);
|
||||
registerCleanupFunction(() => {
|
||||
Services.logins.removeAllUserFacingLogins();
|
||||
|
@ -76,7 +76,7 @@ async function waitForRemoveAllLogins() {
|
||||
});
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [[OS_REAUTH_PREF, false]],
|
||||
});
|
||||
|
@ -14,7 +14,7 @@ EXPECTED_BREACH = {
|
||||
schema: "1541615609018",
|
||||
};
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
TEST_LOGIN1 = await addLogin(TEST_LOGIN1);
|
||||
await BrowserTestUtils.openNewForegroundTab({
|
||||
gBrowser,
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
TEST_LOGIN1 = await addLogin(TEST_LOGIN1);
|
||||
await BrowserTestUtils.openNewForegroundTab({
|
||||
gBrowser,
|
||||
|
@ -16,7 +16,7 @@ EXPECTED_BREACH = {
|
||||
|
||||
let tabInSecondWindow;
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
TEST_LOGIN1 = await addLogin(TEST_LOGIN1);
|
||||
TEST_LOGIN2 = await addLogin(TEST_LOGIN2);
|
||||
TEST_LOGIN3 = await addLogin(TEST_LOGIN3);
|
||||
|
@ -13,7 +13,7 @@ const INDEX_DECODE_ERROR = 1;
|
||||
const INDEX_WRITE_ERROR = 2;
|
||||
const INDEX_QUARANTINE_ERROR = 3;
|
||||
|
||||
add_setup(function() {
|
||||
add_task(function setup() {
|
||||
// AttributionCode._clearCache is only possible in a testing environment
|
||||
let env = Cc["@mozilla.org/process/environment;1"].getService(
|
||||
Ci.nsIEnvironment
|
||||
|
@ -6,7 +6,7 @@ const BASE_URI =
|
||||
"http://mochi.test:8888/browser/browser/components/" +
|
||||
"contextualidentity/test/browser/empty_file.html";
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["privacy.userContext.enabled", true]],
|
||||
});
|
||||
|
@ -68,7 +68,7 @@ async function runTestForReceiver(receiver) {
|
||||
gBrowser.removeTab(sender2.tab);
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
// make sure userContext is enabled.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["privacy.userContext.enabled", true]],
|
||||
|
@ -10,7 +10,7 @@ function openTabInUserContext(userContextId) {
|
||||
gBrowser.selectedTab = tab;
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
// make sure userContext is enabled.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["privacy.userContext.enabled", true]],
|
||||
|
@ -90,7 +90,7 @@ function generateKeyInfo(aData) {
|
||||
return keyInfo;
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
// Make sure userContext is enabled.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
|
@ -78,7 +78,7 @@ function loadFaviconHandler(metadata, response) {
|
||||
response.bodyOutputStream.write(gFaviconData, gFaviconData.length);
|
||||
}
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
// Make sure userContext is enabled.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["privacy.userContext.enabled", true]],
|
||||
|
@ -199,7 +199,7 @@ async function checkEMEKey(browser, emeSessionId) {
|
||||
// Test functions.
|
||||
//
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
// Make sure userContext is enabled.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
|
@ -37,7 +37,7 @@ function getCookiesForOA(host, userContextId) {
|
||||
// Test functions.
|
||||
//
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
// Make sure userContext is enabled.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["privacy.userContext.enabled", true]],
|
||||
|
@ -107,7 +107,7 @@ async function checkIndexedDB(browser) {
|
||||
// Test functions.
|
||||
//
|
||||
|
||||
add_setup(async function() {
|
||||
add_task(async function setup() {
|
||||
// Make sure userContext is enabled.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["privacy.userContext.enabled", true]],
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user