Bug 1201243 - Reformat with prettier.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D72039
This commit is contained in:
Tim Nguyen 2020-04-22 23:35:25 +00:00
Родитель efcd5a4bff
Коммит 89c92a15e9
10 изменённых файлов: 25 добавлений и 11 удалений

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

@ -1320,7 +1320,9 @@ var gMainPane = {
* Shows a dialog in which the preferred language for web content may be set. * Shows a dialog in which the preferred language for web content may be set.
*/ */
showLanguages() { showLanguages() {
gSubDialog.open("chrome://browser/content/preferences/dialogs/languages.xhtml"); gSubDialog.open(
"chrome://browser/content/preferences/dialogs/languages.xhtml"
);
}, },
recordBrowserLanguagesTelemetry(method, value = null) { recordBrowserLanguagesTelemetry(method, value = null) {
@ -1399,7 +1401,9 @@ var gMainPane = {
* translation preferences can be set. * translation preferences can be set.
*/ */
showTranslationExceptions() { showTranslationExceptions() {
gSubDialog.open("chrome://browser/content/preferences/dialogs/translation.xhtml"); gSubDialog.open(
"chrome://browser/content/preferences/dialogs/translation.xhtml"
);
}, },
openTranslationProviderAttribution() { openTranslationProviderAttribution() {

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

@ -1698,7 +1698,9 @@ var gPrivacyPane = {
}, },
clearSiteData() { clearSiteData() {
gSubDialog.open("chrome://browser/content/preferences/dialogs/clearSiteData.xhtml"); gSubDialog.open(
"chrome://browser/content/preferences/dialogs/clearSiteData.xhtml"
);
}, },
// GEOLOCATION // GEOLOCATION

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

@ -17,7 +17,8 @@ function test() {
Services.prefs.clearUserPref("browser.preferences.instantApply"); Services.prefs.clearUserPref("browser.preferences.instantApply");
}); });
let connectionURL = "chrome://browser/content/preferences/dialogs/connection.xhtml"; let connectionURL =
"chrome://browser/content/preferences/dialogs/connection.xhtml";
/* /*
The connection dialog alone won't save onaccept since it uses type="child", The connection dialog alone won't save onaccept since it uses type="child",

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

@ -15,7 +15,8 @@ add_task(async function testAutoconfigReloadButton() {
}); });
await openPreferencesViaOpenPreferencesAPI("general", { leaveOpen: true }); await openPreferencesViaOpenPreferencesAPI("general", { leaveOpen: true });
const connectionURL = "chrome://browser/content/preferences/dialogs/connection.xhtml"; const connectionURL =
"chrome://browser/content/preferences/dialogs/connection.xhtml";
const promiseDialogLoaded = promiseLoadSubDialog(connectionURL); const promiseDialogLoaded = promiseLoadSubDialog(connectionURL);
gBrowser.contentDocument.getElementById("connectionSettings").click(); gBrowser.contentDocument.getElementById("connectionSettings").click();
const dialog = await promiseDialogLoaded; const dialog = await promiseDialogLoaded;

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

@ -10,7 +10,8 @@ add_task(async function testAutoconfigReloadButton() {
Services.prefs.lockPref("signon.autologin.proxy"); Services.prefs.lockPref("signon.autologin.proxy");
await openPreferencesViaOpenPreferencesAPI("general", { leaveOpen: true }); await openPreferencesViaOpenPreferencesAPI("general", { leaveOpen: true });
const connectionURL = "chrome://browser/content/preferences/dialogs/connection.xhtml"; const connectionURL =
"chrome://browser/content/preferences/dialogs/connection.xhtml";
const promiseDialogLoaded = promiseLoadSubDialog(connectionURL); const promiseDialogLoaded = promiseLoadSubDialog(connectionURL);
gBrowser.contentDocument.getElementById("connectionSettings").click(); gBrowser.contentDocument.getElementById("connectionSettings").click();
const dialog = await promiseDialogLoaded; const dialog = await promiseDialogLoaded;

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

@ -6,7 +6,8 @@ var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
function test() { function test() {
waitForExplicitFinish(); waitForExplicitFinish();
const connectionURL = "chrome://browser/content/preferences/dialogs/connection.xhtml"; const connectionURL =
"chrome://browser/content/preferences/dialogs/connection.xhtml";
let closeable = false; let closeable = false;
let finalTest = false; let finalTest = false;

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

@ -1,6 +1,7 @@
var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm"); var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const SUBDIALOG_URL = "chrome://browser/content/preferences/dialogs/connection.xhtml"; const SUBDIALOG_URL =
"chrome://browser/content/preferences/dialogs/connection.xhtml";
const TRR_MODE_PREF = "network.trr.mode"; const TRR_MODE_PREF = "network.trr.mode";
const TRR_URI_PREF = "network.trr.uri"; const TRR_URI_PREF = "network.trr.uri";
const TRR_RESOLVERS_PREF = "network.trr.resolvers"; const TRR_RESOLVERS_PREF = "network.trr.resolvers";

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

@ -1,4 +1,5 @@
const CONTAINERS_URL = "chrome://browser/content/preferences/dialogs/containers.xhtml"; const CONTAINERS_URL =
"chrome://browser/content/preferences/dialogs/containers.xhtml";
add_task(async function setup() { add_task(async function setup() {
await openPreferencesViaOpenPreferencesAPI("containers", { leaveOpen: true }); await openPreferencesViaOpenPreferencesAPI("containers", { leaveOpen: true });

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

@ -968,7 +968,8 @@ add_task(async function testExtensionControlledProxyConfig() {
const CONTROLLED_SECTION_ID = "proxyExtensionContent"; const CONTROLLED_SECTION_ID = "proxyExtensionContent";
const CONTROLLED_BUTTON_ID = "disableProxyExtension"; const CONTROLLED_BUTTON_ID = "disableProxyExtension";
const CONNECTION_SETTINGS_DESC_ID = "connectionSettingsDescription"; const CONNECTION_SETTINGS_DESC_ID = "connectionSettingsDescription";
const PANEL_URL = "chrome://browser/content/preferences/dialogs/connection.xhtml"; const PANEL_URL =
"chrome://browser/content/preferences/dialogs/connection.xhtml";
await SpecialPowers.pushPrefEnv({ set: [[PROXY_PREF, PROXY_DEFAULT]] }); await SpecialPowers.pushPrefEnv({ set: [[PROXY_PREF, PROXY_DEFAULT]] });

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

@ -28,7 +28,8 @@ function test() {
} }
}); });
let connectionURL = "chrome://browser/content/preferences/dialogs/connection.xhtml"; let connectionURL =
"chrome://browser/content/preferences/dialogs/connection.xhtml";
// Set a shared proxy and an SSL backup // Set a shared proxy and an SSL backup
Services.prefs.setIntPref("network.proxy.type", 1); Services.prefs.setIntPref("network.proxy.type", 1);