From 89c92a15e985169211b62586846f85868418a6be Mon Sep 17 00:00:00 2001 From: Tim Nguyen Date: Wed, 22 Apr 2020 23:35:25 +0000 Subject: [PATCH] Bug 1201243 - Reformat with prettier. # ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D72039 --- browser/components/preferences/main.js | 8 ++++++-- browser/components/preferences/privacy.js | 4 +++- .../components/preferences/tests/browser_connection.js | 3 ++- .../preferences/tests/browser_connection_bug1445991.js | 3 ++- .../preferences/tests/browser_connection_bug1505330.js | 3 ++- .../preferences/tests/browser_connection_bug388287.js | 3 ++- .../preferences/tests/browser_connection_dnsoverhttps.js | 3 ++- .../preferences/tests/browser_containers_name_input.js | 3 ++- .../preferences/tests/browser_extension_controlled.js | 3 ++- .../components/preferences/tests/browser_proxy_backup.js | 3 ++- 10 files changed, 25 insertions(+), 11 deletions(-) diff --git a/browser/components/preferences/main.js b/browser/components/preferences/main.js index c04eb574fda4..0d10ac20b928 100644 --- a/browser/components/preferences/main.js +++ b/browser/components/preferences/main.js @@ -1320,7 +1320,9 @@ var gMainPane = { * Shows a dialog in which the preferred language for web content may be set. */ showLanguages() { - gSubDialog.open("chrome://browser/content/preferences/dialogs/languages.xhtml"); + gSubDialog.open( + "chrome://browser/content/preferences/dialogs/languages.xhtml" + ); }, recordBrowserLanguagesTelemetry(method, value = null) { @@ -1399,7 +1401,9 @@ var gMainPane = { * translation preferences can be set. */ showTranslationExceptions() { - gSubDialog.open("chrome://browser/content/preferences/dialogs/translation.xhtml"); + gSubDialog.open( + "chrome://browser/content/preferences/dialogs/translation.xhtml" + ); }, openTranslationProviderAttribution() { diff --git a/browser/components/preferences/privacy.js b/browser/components/preferences/privacy.js index 1b1591cb4030..2418c6a6e065 100644 --- a/browser/components/preferences/privacy.js +++ b/browser/components/preferences/privacy.js @@ -1698,7 +1698,9 @@ var gPrivacyPane = { }, clearSiteData() { - gSubDialog.open("chrome://browser/content/preferences/dialogs/clearSiteData.xhtml"); + gSubDialog.open( + "chrome://browser/content/preferences/dialogs/clearSiteData.xhtml" + ); }, // GEOLOCATION diff --git a/browser/components/preferences/tests/browser_connection.js b/browser/components/preferences/tests/browser_connection.js index 69e5f25b969a..23e7ee040913 100644 --- a/browser/components/preferences/tests/browser_connection.js +++ b/browser/components/preferences/tests/browser_connection.js @@ -17,7 +17,8 @@ function test() { 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", diff --git a/browser/components/preferences/tests/browser_connection_bug1445991.js b/browser/components/preferences/tests/browser_connection_bug1445991.js index f1876166b5a0..ecb5068a261a 100644 --- a/browser/components/preferences/tests/browser_connection_bug1445991.js +++ b/browser/components/preferences/tests/browser_connection_bug1445991.js @@ -15,7 +15,8 @@ add_task(async function testAutoconfigReloadButton() { }); 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); gBrowser.contentDocument.getElementById("connectionSettings").click(); const dialog = await promiseDialogLoaded; diff --git a/browser/components/preferences/tests/browser_connection_bug1505330.js b/browser/components/preferences/tests/browser_connection_bug1505330.js index 5ed7300abe52..94dfd4706e5b 100644 --- a/browser/components/preferences/tests/browser_connection_bug1505330.js +++ b/browser/components/preferences/tests/browser_connection_bug1505330.js @@ -10,7 +10,8 @@ add_task(async function testAutoconfigReloadButton() { Services.prefs.lockPref("signon.autologin.proxy"); 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); gBrowser.contentDocument.getElementById("connectionSettings").click(); const dialog = await promiseDialogLoaded; diff --git a/browser/components/preferences/tests/browser_connection_bug388287.js b/browser/components/preferences/tests/browser_connection_bug388287.js index ca75d147a863..76d5090b6305 100644 --- a/browser/components/preferences/tests/browser_connection_bug388287.js +++ b/browser/components/preferences/tests/browser_connection_bug388287.js @@ -6,7 +6,8 @@ var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm"); function test() { waitForExplicitFinish(); - const connectionURL = "chrome://browser/content/preferences/dialogs/connection.xhtml"; + const connectionURL = + "chrome://browser/content/preferences/dialogs/connection.xhtml"; let closeable = false; let finalTest = false; diff --git a/browser/components/preferences/tests/browser_connection_dnsoverhttps.js b/browser/components/preferences/tests/browser_connection_dnsoverhttps.js index 38ae464257a6..650db0923e0c 100644 --- a/browser/components/preferences/tests/browser_connection_dnsoverhttps.js +++ b/browser/components/preferences/tests/browser_connection_dnsoverhttps.js @@ -1,6 +1,7 @@ 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_URI_PREF = "network.trr.uri"; const TRR_RESOLVERS_PREF = "network.trr.resolvers"; diff --git a/browser/components/preferences/tests/browser_containers_name_input.js b/browser/components/preferences/tests/browser_containers_name_input.js index c7cebc02e44c..43b273b05d79 100644 --- a/browser/components/preferences/tests/browser_containers_name_input.js +++ b/browser/components/preferences/tests/browser_containers_name_input.js @@ -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() { await openPreferencesViaOpenPreferencesAPI("containers", { leaveOpen: true }); diff --git a/browser/components/preferences/tests/browser_extension_controlled.js b/browser/components/preferences/tests/browser_extension_controlled.js index 435084eebf90..34d3f3cc26ac 100644 --- a/browser/components/preferences/tests/browser_extension_controlled.js +++ b/browser/components/preferences/tests/browser_extension_controlled.js @@ -968,7 +968,8 @@ add_task(async function testExtensionControlledProxyConfig() { const CONTROLLED_SECTION_ID = "proxyExtensionContent"; const CONTROLLED_BUTTON_ID = "disableProxyExtension"; 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]] }); diff --git a/browser/components/preferences/tests/browser_proxy_backup.js b/browser/components/preferences/tests/browser_proxy_backup.js index 0782d2948582..16756dd67d31 100644 --- a/browser/components/preferences/tests/browser_proxy_backup.js +++ b/browser/components/preferences/tests/browser_proxy_backup.js @@ -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 Services.prefs.setIntPref("network.proxy.type", 1);