forked from mirrors/gecko-dev
Bug 1830265 - Enable Prettier and ESLint on toolkit/components/backgroundtasks/defaults. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D176634
This commit is contained in:
parent
5cef098f81
commit
2f8c17920f
4 changed files with 16 additions and 12 deletions
|
|
@ -240,9 +240,6 @@ tools/tryselect/selectors/chooser/templates/chooser.html
|
||||||
# Ignore preprocessed *(P)refs.js files in update-packaging.
|
# Ignore preprocessed *(P)refs.js files in update-packaging.
|
||||||
tools/update-packaging/**/*refs.js
|
tools/update-packaging/**/*refs.js
|
||||||
|
|
||||||
# Ignore backgroundtasks preferences files.
|
|
||||||
toolkit/components/backgroundtasks/defaults
|
|
||||||
|
|
||||||
# Ignore pre-generated webpack and typescript transpiled files for translations
|
# Ignore pre-generated webpack and typescript transpiled files for translations
|
||||||
browser/extensions/translations/extension/
|
browser/extensions/translations/extension/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -64,9 +64,6 @@ devtools/shared/plural-form.js
|
||||||
parser/htmlparser/tests/mochitest/broken_xml.xhtml
|
parser/htmlparser/tests/mochitest/broken_xml.xhtml
|
||||||
parser/htmlparser/tests/mochitest/test_bug563322.xhtml
|
parser/htmlparser/tests/mochitest/test_bug563322.xhtml
|
||||||
|
|
||||||
# Ignore backgroundtasks preferences files.
|
|
||||||
toolkit/components/backgroundtasks/defaults
|
|
||||||
|
|
||||||
# A mainly-imported file, that we don't want to format, but want to keep an eye
|
# A mainly-imported file, that we don't want to format, but want to keep an eye
|
||||||
# on with the other imported files.
|
# on with the other imported files.
|
||||||
toolkit/components/formautofill/shared/CreditCardRuleset.sys.mjs
|
toolkit/components/formautofill/shared/CreditCardRuleset.sys.mjs
|
||||||
|
|
@ -304,9 +301,6 @@ tools/tryselect/selectors/chooser/templates/chooser.html
|
||||||
# Ignore preprocessed *(P)refs.js files in update-packaging.
|
# Ignore preprocessed *(P)refs.js files in update-packaging.
|
||||||
tools/update-packaging/**/*refs.js
|
tools/update-packaging/**/*refs.js
|
||||||
|
|
||||||
# Ignore backgroundtasks preferences files.
|
|
||||||
toolkit/components/backgroundtasks/defaults
|
|
||||||
|
|
||||||
# Ignore pre-generated webpack and typescript transpiled files for translations
|
# Ignore pre-generated webpack and typescript transpiled files for translations
|
||||||
browser/extensions/translations/extension/
|
browser/extensions/translations/extension/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@
|
||||||
// `backgroundtasks_browser.js` to override browser/-specific preferences in
|
// `backgroundtasks_browser.js` to override browser/-specific preferences in
|
||||||
// `firefox.js`.
|
// `firefox.js`.
|
||||||
|
|
||||||
|
/* global pref */
|
||||||
|
|
||||||
pref("browser.dom.window.dump.enabled", true);
|
pref("browser.dom.window.dump.enabled", true);
|
||||||
pref("devtools.console.stdout.chrome", true);
|
pref("devtools.console.stdout.chrome", true);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@
|
||||||
// `firefox.js`. Use `backgroundtasks.js` to override general Gecko preferences
|
// `firefox.js`. Use `backgroundtasks.js` to override general Gecko preferences
|
||||||
// in `greprefs.js`.
|
// in `greprefs.js`.
|
||||||
|
|
||||||
|
/* global pref */
|
||||||
|
|
||||||
// XUL notifications make no sense in background tasks. This is only applies to
|
// XUL notifications make no sense in background tasks. This is only applies to
|
||||||
// Windows for now.
|
// Windows for now.
|
||||||
pref("alerts.useSystemBackend", true);
|
pref("alerts.useSystemBackend", true);
|
||||||
|
|
@ -14,21 +16,30 @@ pref("alerts.useSystemBackend.windows.notificationserver.enabled", true);
|
||||||
// Configure Messaging Experiments for background tasks, with
|
// Configure Messaging Experiments for background tasks, with
|
||||||
// background task-specific feature ID. The regular Firefox Desktop
|
// background task-specific feature ID. The regular Firefox Desktop
|
||||||
// Remote Settings collection will be used.
|
// Remote Settings collection will be used.
|
||||||
pref("browser.newtabpage.activity-stream.asrouter.providers.messaging-experiments", "{\"id\":\"messaging-experiments\",\"enabled\":true,\"type\":\"remote-experiments\",\"featureIds\":[\"backgroundTaskMessage\"],\"updateCycleInMs\":3600000}");
|
pref(
|
||||||
|
"browser.newtabpage.activity-stream.asrouter.providers.messaging-experiments",
|
||||||
|
'{"id":"messaging-experiments","enabled":true,"type":"remote-experiments","featureIds":["backgroundTaskMessage"],"updateCycleInMs":3600000}'
|
||||||
|
);
|
||||||
|
|
||||||
// Disable all other Messaging System providers save for
|
// Disable all other Messaging System providers save for
|
||||||
// `browser.newtabpage.activity-stream.asrouter.providers.message-groups`, which
|
// `browser.newtabpage.activity-stream.asrouter.providers.message-groups`, which
|
||||||
// is required for the system to function.
|
// is required for the system to function.
|
||||||
pref("browser.newtabpage.activity-stream.asrouter.providers.cfr", "null");
|
pref("browser.newtabpage.activity-stream.asrouter.providers.cfr", "null");
|
||||||
pref("browser.newtabpage.activity-stream.asrouter.providers.snippets", "null");
|
pref("browser.newtabpage.activity-stream.asrouter.providers.snippets", "null");
|
||||||
pref("browser.newtabpage.activity-stream.asrouter.providers.whats-new-panel", "null");
|
pref(
|
||||||
|
"browser.newtabpage.activity-stream.asrouter.providers.whats-new-panel",
|
||||||
|
"null"
|
||||||
|
);
|
||||||
|
|
||||||
// The `browser.newtabpage.activity-stream.asrouter.providers.cfr` provider is
|
// The `browser.newtabpage.activity-stream.asrouter.providers.cfr` provider is
|
||||||
// disabled, but belt and braces: disable extension recommendations and feature
|
// disabled, but belt and braces: disable extension recommendations and feature
|
||||||
// recommendations. Neither of these make sense in background tasks, and they
|
// recommendations. Neither of these make sense in background tasks, and they
|
||||||
// could trigger telemetry.
|
// could trigger telemetry.
|
||||||
pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false);
|
pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false);
|
||||||
pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false);
|
pref(
|
||||||
|
"browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features",
|
||||||
|
false
|
||||||
|
);
|
||||||
|
|
||||||
// Don't refresh experiments while a background task is running.
|
// Don't refresh experiments while a background task is running.
|
||||||
pref("app.normandy.run_interval_seconds", 0);
|
pref("app.normandy.run_interval_seconds", 0);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue