зеркало из https://github.com/mozilla/gecko-dev.git
Merge autoland to mozilla-central. a=merge
This commit is contained in:
Коммит
625c3d0c8a
|
@ -50,7 +50,7 @@ rev = "c51b63595a27a6ef45161012323e0261475c10c9"
|
|||
[source."https://github.com/mozilla-spidermonkey/jsparagus"]
|
||||
git = "https://github.com/mozilla-spidermonkey/jsparagus"
|
||||
replace-with = "vendored-sources"
|
||||
rev = "f856904f19032afb4d3920f6827b2349ba5dd647"
|
||||
rev = "c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae"
|
||||
|
||||
[source."https://github.com/kinetiknz/mio-named-pipes"]
|
||||
git = "https://github.com/kinetiknz/mio-named-pipes"
|
||||
|
|
|
@ -2618,7 +2618,7 @@ version = "0.3.100"
|
|||
[[package]]
|
||||
name = "jsparagus"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/mozilla-spidermonkey/jsparagus?rev=f856904f19032afb4d3920f6827b2349ba5dd647#f856904f19032afb4d3920f6827b2349ba5dd647"
|
||||
source = "git+https://github.com/mozilla-spidermonkey/jsparagus?rev=c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae#c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae"
|
||||
dependencies = [
|
||||
"jsparagus-ast",
|
||||
"jsparagus-emitter",
|
||||
|
@ -2632,7 +2632,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "jsparagus-ast"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/mozilla-spidermonkey/jsparagus?rev=f856904f19032afb4d3920f6827b2349ba5dd647#f856904f19032afb4d3920f6827b2349ba5dd647"
|
||||
source = "git+https://github.com/mozilla-spidermonkey/jsparagus?rev=c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae#c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae"
|
||||
dependencies = [
|
||||
"bumpalo",
|
||||
"indexmap",
|
||||
|
@ -2641,7 +2641,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "jsparagus-emitter"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/mozilla-spidermonkey/jsparagus?rev=f856904f19032afb4d3920f6827b2349ba5dd647#f856904f19032afb4d3920f6827b2349ba5dd647"
|
||||
source = "git+https://github.com/mozilla-spidermonkey/jsparagus?rev=c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae#c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae"
|
||||
dependencies = [
|
||||
"bumpalo",
|
||||
"byteorder",
|
||||
|
@ -2654,7 +2654,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "jsparagus-generated-parser"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/mozilla-spidermonkey/jsparagus?rev=f856904f19032afb4d3920f6827b2349ba5dd647#f856904f19032afb4d3920f6827b2349ba5dd647"
|
||||
source = "git+https://github.com/mozilla-spidermonkey/jsparagus?rev=c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae#c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae"
|
||||
dependencies = [
|
||||
"bumpalo",
|
||||
"jsparagus-ast",
|
||||
|
@ -2664,12 +2664,12 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "jsparagus-json-log"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/mozilla-spidermonkey/jsparagus?rev=f856904f19032afb4d3920f6827b2349ba5dd647#f856904f19032afb4d3920f6827b2349ba5dd647"
|
||||
source = "git+https://github.com/mozilla-spidermonkey/jsparagus?rev=c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae#c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae"
|
||||
|
||||
[[package]]
|
||||
name = "jsparagus-parser"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/mozilla-spidermonkey/jsparagus?rev=f856904f19032afb4d3920f6827b2349ba5dd647#f856904f19032afb4d3920f6827b2349ba5dd647"
|
||||
source = "git+https://github.com/mozilla-spidermonkey/jsparagus?rev=c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae#c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae"
|
||||
dependencies = [
|
||||
"arrayvec 0.5.2",
|
||||
"bumpalo",
|
||||
|
@ -2681,7 +2681,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "jsparagus-scope"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/mozilla-spidermonkey/jsparagus?rev=f856904f19032afb4d3920f6827b2349ba5dd647#f856904f19032afb4d3920f6827b2349ba5dd647"
|
||||
source = "git+https://github.com/mozilla-spidermonkey/jsparagus?rev=c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae#c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae"
|
||||
dependencies = [
|
||||
"indexmap",
|
||||
"jsparagus-ast",
|
||||
|
@ -2691,7 +2691,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "jsparagus-stencil"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/mozilla-spidermonkey/jsparagus?rev=f856904f19032afb4d3920f6827b2349ba5dd647#f856904f19032afb4d3920f6827b2349ba5dd647"
|
||||
source = "git+https://github.com/mozilla-spidermonkey/jsparagus?rev=c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae#c6fd1381ec83bfec63a5e14e7a19e41cf5b893ae"
|
||||
dependencies = [
|
||||
"jsparagus-ast",
|
||||
]
|
||||
|
|
|
@ -51,7 +51,9 @@ already_AddRefed<nsIURI> HTMLImageMapAccessible::AnchorURIAt(
|
|||
if (!area) return nullptr;
|
||||
|
||||
nsIContent* linkContent = area->GetContent();
|
||||
return linkContent ? linkContent->GetHrefURI() : nullptr;
|
||||
return linkContent && linkContent->IsElement()
|
||||
? linkContent->AsElement()->GetHrefURI()
|
||||
: nullptr;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -121,7 +121,7 @@ bool HTMLLinkAccessible::IsLink() const {
|
|||
|
||||
already_AddRefed<nsIURI> HTMLLinkAccessible::AnchorURIAt(
|
||||
uint32_t aAnchorIndex) const {
|
||||
return aAnchorIndex == 0 ? mContent->GetHrefURI() : nullptr;
|
||||
return aAnchorIndex == 0 ? mContent->AsElement()->GetHrefURI() : nullptr;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -2162,23 +2162,31 @@ pref("app.normandy.onsync_skew_sec", 600);
|
|||
pref("app.shield.optoutstudies.enabled", false);
|
||||
#endif
|
||||
|
||||
// Multi-lingual preferences
|
||||
// Multi-lingual preferences:
|
||||
// *.enabled - Are langpacks available for the build of Firefox?
|
||||
// *.downloadEnabled - Langpacks are allowed to be downloaded from AMO. AMO only serves
|
||||
// langpacks for release and beta. Unsupported releases (like Nightly) can be
|
||||
// manually tested with the following preference:
|
||||
// extensions.getAddons.langpacks.url: https://mock-amo-language-tools.glitch.me/?app=firefox&type=language&appversion=%VERSION%
|
||||
// *.liveReload - Switching a langpack will change the language without a restart.
|
||||
// *.liveReloadBidirectional - Allows switching when moving between LTR and RTL
|
||||
// languages without a full restart.
|
||||
// *.aboutWelcome.languageMismatchEnabled - Enables an onboarding menu in about:welcome
|
||||
// to allow a user to change their language when there is a language mismatch between
|
||||
// the app and browser.
|
||||
#if defined(RELEASE_OR_BETA) && !defined(MOZ_DEV_EDITION)
|
||||
pref("intl.multilingual.enabled", true);
|
||||
pref("intl.multilingual.downloadEnabled", true);
|
||||
pref("intl.multilingual.liveReload", true);
|
||||
pref("intl.multilingual.liveReloadBidirectional", false);
|
||||
pref("intl.multilingual.aboutWelcome.languageMismatchEnabled", true);
|
||||
#else
|
||||
pref("intl.multilingual.enabled", false);
|
||||
// AMO only serves language packs for release and beta versions.
|
||||
pref("intl.multilingual.downloadEnabled", false);
|
||||
pref("intl.multilingual.liveReload", false);
|
||||
pref("intl.multilingual.liveReloadBidirectional", false);
|
||||
pref("intl.multilingual.aboutWelcome.languageMismatchEnabled", false);
|
||||
#endif
|
||||
// With the preference enabled below, switching the browser language will do a live
|
||||
// reload rather than requiring a restart. Enable bidirectional below as well to allow
|
||||
// live reloading when switching between LTR and RTL languages.
|
||||
pref("intl.multilingual.liveReload", false);
|
||||
pref("intl.multilingual.liveReloadBidirectional", false);
|
||||
// Suggest to change the language on about:welcome when there is a mismatch with the OS.
|
||||
pref("intl.multilingual.aboutWelcome.languageMismatchEnabled", false);
|
||||
|
||||
|
||||
// Simulate conditions that will happen when the browser
|
||||
// is running with Fission enabled. This is meant to assist
|
||||
|
|
|
@ -94,6 +94,10 @@ body {
|
|||
}
|
||||
}
|
||||
|
||||
#titlebar {
|
||||
-moz-window-dragging: drag;
|
||||
}
|
||||
|
||||
#toolbar-menubar[autohide="true"] {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
|
|
@ -567,7 +567,8 @@
|
|||
class="subviewbutton"
|
||||
data-l10n-id="bookmarks-tools-sidebar-visibility"
|
||||
data-l10n-args='{ "isVisible": false }'
|
||||
oncommand="SidebarUI.toggle('viewBookmarksSidebar');"/>
|
||||
oncommand="SidebarUI.toggle('viewBookmarksSidebar');"
|
||||
key="viewBookmarksSidebarKb"/>
|
||||
<!-- NB: temporary solution for bug 985024, this should go away soon. -->
|
||||
<menuitem id="BMB_bookmarksShowAllTop"
|
||||
class="subviewbutton"
|
||||
|
|
|
@ -18,7 +18,7 @@ const bookmarksInfo = [
|
|||
},
|
||||
];
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await addNotificationPermission(PAGE);
|
||||
});
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ async function checkCaptivePortalTabReference(evt, currState) {
|
|||
gBrowser.removeTab(errorTab);
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["captivedetect.canonicalURL", CANONICAL_URL],
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
// 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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["dom.forms.select.customstyling", true]],
|
||||
});
|
||||
|
|
|
@ -6,7 +6,7 @@ SELECT +=
|
|||
' <option selected="true">{"end": "true"}</option>' +
|
||||
"</select></body></html>";
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["dom.forms.selectSearch", true]],
|
||||
});
|
||||
|
|
|
@ -76,7 +76,7 @@ async function testWindowElementFocus(isPopup) {
|
|||
BrowserTestUtils.removeTab(tab);
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
let win = await BrowserTestUtils.openNewBrowserWindow();
|
||||
// Open a new tab to keep the window open.
|
||||
await BrowserTestUtils.openNewForegroundTab(
|
||||
|
|
|
@ -16,7 +16,7 @@ function waitForNewWindow() {
|
|||
});
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["browser.toolbars.keyboard_navigation", true],
|
||||
|
|
|
@ -73,7 +73,7 @@ function testPermListHasEntries(expectEntries) {
|
|||
ok(!listEntryCount, "List of permissions is empty");
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
registerCleanupFunction(() => {
|
||||
Services.perms.removeAll();
|
||||
Services.prefs.clearUserPref(AUTOPLAY_PREF);
|
||||
|
|
|
@ -112,7 +112,7 @@ async function checkGeolocation(browser, frameId, expect) {
|
|||
}
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await new Promise(r => {
|
||||
SpecialPowers.pushPrefEnv(
|
||||
{
|
||||
|
|
|
@ -84,7 +84,7 @@ async function check(contentTask, options = {}) {
|
|||
}
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["media.navigator.permission.fake", true],
|
||||
|
|
|
@ -15,7 +15,7 @@ function clearAllPermissionsByPrefix(aPrefix) {
|
|||
}
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
// 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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await UrlClassifierTestUtils.addTestTrackers();
|
||||
|
||||
registerCleanupFunction(() => {
|
||||
|
|
|
@ -8,7 +8,7 @@ const TRACKING_PAGE =
|
|||
const CM_PROTECTION_PREF = "privacy.trackingprotection.cryptomining.enabled";
|
||||
let cmHistogram;
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
[
|
||||
|
|
|
@ -8,7 +8,7 @@ const TRACKING_PAGE =
|
|||
const FP_PROTECTION_PREF = "privacy.trackingprotection.fingerprinting.enabled";
|
||||
let fpHistogram;
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
[
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await UrlClassifierTestUtils.addTestTrackers();
|
||||
|
||||
registerCleanupFunction(() => {
|
||||
|
|
|
@ -74,7 +74,7 @@ const TEST_CASES = [
|
|||
},
|
||||
];
|
||||
|
||||
add_task(async function setup() {
|
||||
add_task(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["privacy.trackingprotection.enabled", true],
|
||||
|
|
|
@ -29,7 +29,7 @@ function getShieldCounts() {
|
|||
return getShieldHistogram().snapshot().values;
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await UrlClassifierTestUtils.addTestTrackers();
|
||||
Services.prefs.setBoolPref(DTSCBN_PREF, true);
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ const TRACKING_PAGE =
|
|||
|
||||
const TP_PREF = "privacy.trackingprotection.enabled";
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await UrlClassifierTestUtils.addTestTrackers();
|
||||
|
||||
registerCleanupFunction(() => {
|
||||
|
|
|
@ -12,7 +12,7 @@ function failIfSidebarFocusedFires() {
|
|||
ok(false, "This event shouldn't have fired");
|
||||
}
|
||||
|
||||
add_task(function setup() {
|
||||
add_setup(function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({ set: [[PREF_ACTIVE, true]] });
|
||||
});
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ const fxaDevices = [
|
|||
{ id: 4, name: "Homer" }, // Incompatible target.
|
||||
];
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
// 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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
// Allow using our MockFilePicker in the content process.
|
||||
|
|
|
@ -125,7 +125,7 @@ async function checkDialog(
|
|||
});
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["prompts.contentPromptSubDialog", true],
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
const PAGE =
|
||||
"data:text/html,<html><body>A%20regular,%20everyday,%20normal%20page.";
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await setupLocalCrashReportServer();
|
||||
});
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ const COMMENTS = "Here's my test comment!";
|
|||
// Avoid timeouts, as in bug 1325530
|
||||
requestLongerTimeout(2);
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await setupLocalCrashReportServer();
|
||||
});
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
const PAGE =
|
||||
"data:text/html,<html><body>A%20regular,%20everyday,%20normal%20page.";
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
prepareNoDump();
|
||||
});
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ var commonDialogsBundle = Services.strings.createBundle(
|
|||
);
|
||||
|
||||
// Setup.
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [[CONTENT_PROMPT_PREF, true]],
|
||||
});
|
||||
|
|
|
@ -15,7 +15,7 @@ function synthesizeKeyAndWaitForTabToGetKeyboardFocus(tab, keyCode, options) {
|
|||
return focused;
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
// 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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["privacy.userContext.enabled", true],
|
||||
|
|
|
@ -49,7 +49,7 @@ function handleEventLocal(aEvent) {
|
|||
}
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["privacy.userContext.enabled", true],
|
||||
|
|
|
@ -26,7 +26,7 @@ function testAttrib(tabIndex, attrib, expected) {
|
|||
);
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
["browser.tabs.remote.separatePrivilegedMozillaWebContentProcess", true],
|
||||
|
|
|
@ -11,7 +11,7 @@ SearchTestUtils.init(this);
|
|||
|
||||
const kButton = document.getElementById("reload-button");
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_task(async function() {
|
||||
let tab1 = await addTab();
|
||||
let tab2 = await addTab();
|
||||
let tab3 = await addTab();
|
||||
|
|
|
@ -38,7 +38,7 @@ let win;
|
|||
let nonBeforeUnloadTab;
|
||||
let beforeUnloadTab;
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
// Force-enable tab animations
|
||||
gReduceMotionOverride = false;
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ async function testProbe(aProbe) {
|
|||
);
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
// We don't have pre-pinned certificates for the local mochitest server
|
||||
|
|
|
@ -648,7 +648,7 @@ async function interactiveUpdateTest(autoUpdate, checkFn) {
|
|||
// Individual tests can store a cleanup function in the testCleanup global
|
||||
// to ensure it gets called before the final check is performed.
|
||||
let testCleanup;
|
||||
add_task(async function() {
|
||||
add_setup(async function head_setup() {
|
||||
let addons = await AddonManager.getAllAddons();
|
||||
let existingAddons = new Set(addons.map(a => a.id));
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ const MUTE_TOPICS = [
|
|||
"getUserMedia:unmuteAudio",
|
||||
];
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
let prefs = [
|
||||
[PREF_PERMISSION_FAKE, true],
|
||||
[PREF_AUDIO_LOOPBACK, ""],
|
||||
|
|
|
@ -129,7 +129,7 @@ async function testNotificationSilencing(aBrowser) {
|
|||
);
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
// 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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
let prefs = [
|
||||
[PREF_PERMISSION_FAKE, true],
|
||||
[PREF_AUDIO_LOOPBACK, ""],
|
||||
|
|
|
@ -188,7 +188,7 @@ async function ensureWarning(tab) {
|
|||
);
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["privacy.webrtc.sharedTabWarning", true]],
|
||||
});
|
||||
|
|
|
@ -30,7 +30,7 @@ let VULNERABLE_TEST_LOGIN2 = new nsLoginInfo(
|
|||
"password"
|
||||
);
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
TEST_LOGIN1 = await addLogin(TEST_LOGIN1);
|
||||
TEST_LOGIN2 = await addLogin(TEST_LOGIN2);
|
||||
await BrowserTestUtils.openNewForegroundTab({
|
||||
|
|
|
@ -12,7 +12,7 @@ function mockState(state) {
|
|||
});
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await BrowserTestUtils.openNewForegroundTab({
|
||||
gBrowser,
|
||||
url: "about:logins",
|
||||
|
|
|
@ -16,7 +16,7 @@ EXPECTED_BREACH = {
|
|||
|
||||
const SORT_PREF_NAME = "signon.management.page.sort";
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await BrowserTestUtils.openNewForegroundTab({
|
||||
gBrowser,
|
||||
url: "about:logins",
|
||||
|
|
|
@ -17,7 +17,7 @@ let { TelemetryTestUtils } = ChromeUtils.import(
|
|||
|
||||
let { MockFilePicker } = SpecialPowers;
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
let storageChangedPromised = TestUtils.topicObserved(
|
||||
"passwordmgr-storage-changed",
|
||||
(_, data) => data == "addLogin"
|
||||
|
|
|
@ -5,7 +5,7 @@ let { TelemetryTestUtils } = ChromeUtils.import(
|
|||
"resource://testing-common/TelemetryTestUtils.jsm"
|
||||
);
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
registerCleanupFunction(() => {
|
||||
Services.logins.removeAllUserFacingLogins();
|
||||
});
|
||||
|
|
|
@ -5,7 +5,7 @@ let { TelemetryTestUtils } = ChromeUtils.import(
|
|||
"resource://testing-common/TelemetryTestUtils.jsm"
|
||||
);
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
TEST_LOGIN1 = await addLogin(TEST_LOGIN1);
|
||||
await BrowserTestUtils.openNewForegroundTab({
|
||||
gBrowser,
|
||||
|
|
|
@ -17,7 +17,7 @@ function waitForLoginCountToReach(browser, loginCount) {
|
|||
);
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await addLogin(TEST_LOGIN1);
|
||||
registerCleanupFunction(() => {
|
||||
Services.logins.removeAllUserFacingLogins();
|
||||
|
|
|
@ -76,7 +76,7 @@ async function waitForRemoveAllLogins() {
|
|||
});
|
||||
}
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [[OS_REAUTH_PREF, false]],
|
||||
});
|
||||
|
|
|
@ -14,7 +14,7 @@ EXPECTED_BREACH = {
|
|||
schema: "1541615609018",
|
||||
};
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
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_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
TEST_LOGIN1 = await addLogin(TEST_LOGIN1);
|
||||
await BrowserTestUtils.openNewForegroundTab({
|
||||
gBrowser,
|
||||
|
|
|
@ -16,7 +16,7 @@ EXPECTED_BREACH = {
|
|||
|
||||
let tabInSecondWindow;
|
||||
|
||||
add_task(async function setup() {
|
||||
add_setup(async function() {
|
||||
TEST_LOGIN1 = await addLogin(TEST_LOGIN1);
|
||||
TEST_LOGIN2 = await addLogin(TEST_LOGIN2);
|
||||
TEST_LOGIN3 = await addLogin(TEST_LOGIN3);
|
||||
|
|
|
@ -81,7 +81,7 @@ async function addLogin(login) {
|
|||
|
||||
let EXPECTED_BREACH = null;
|
||||
let EXPECTED_ERROR_MESSAGE = null;
|
||||
add_task(async function setup_head() {
|
||||
add_setup(async function setup_head() {
|
||||
const db = await RemoteSettings(LoginBreaches.REMOTE_SETTINGS_COLLECTION).db;
|
||||
if (EXPECTED_BREACH) {
|
||||
await db.create(EXPECTED_BREACH, {
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче