mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
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
@ -240,9 +240,6 @@ tools/tryselect/selectors/chooser/templates/chooser.html
|
||||
# Ignore preprocessed *(P)refs.js files in update-packaging.
|
||||
tools/update-packaging/**/*refs.js
|
||||
|
||||
# Ignore backgroundtasks preferences files.
|
||||
toolkit/components/backgroundtasks/defaults
|
||||
|
||||
# Ignore pre-generated webpack and typescript transpiled files for translations
|
||||
browser/extensions/translations/extension/
|
||||
|
||||
|
@ -64,9 +64,6 @@ devtools/shared/plural-form.js
|
||||
parser/htmlparser/tests/mochitest/broken_xml.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
|
||||
# on with the other imported files.
|
||||
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.
|
||||
tools/update-packaging/**/*refs.js
|
||||
|
||||
# Ignore backgroundtasks preferences files.
|
||||
toolkit/components/backgroundtasks/defaults
|
||||
|
||||
# Ignore pre-generated webpack and typescript transpiled files for translations
|
||||
browser/extensions/translations/extension/
|
||||
|
||||
|
@ -6,6 +6,8 @@
|
||||
// `backgroundtasks_browser.js` to override browser/-specific preferences in
|
||||
// `firefox.js`.
|
||||
|
||||
/* global pref */
|
||||
|
||||
pref("browser.dom.window.dump.enabled", true);
|
||||
pref("devtools.console.stdout.chrome", true);
|
||||
|
||||
|
@ -6,6 +6,8 @@
|
||||
// `firefox.js`. Use `backgroundtasks.js` to override general Gecko preferences
|
||||
// in `greprefs.js`.
|
||||
|
||||
/* global pref */
|
||||
|
||||
// XUL notifications make no sense in background tasks. This is only applies to
|
||||
// Windows for now.
|
||||
pref("alerts.useSystemBackend", true);
|
||||
@ -14,21 +16,30 @@ pref("alerts.useSystemBackend.windows.notificationserver.enabled", true);
|
||||
// Configure Messaging Experiments for background tasks, with
|
||||
// background task-specific feature ID. The regular Firefox Desktop
|
||||
// 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
|
||||
// `browser.newtabpage.activity-stream.asrouter.providers.message-groups`, which
|
||||
// is required for the system to function.
|
||||
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.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
|
||||
// disabled, but belt and braces: disable extension recommendations and feature
|
||||
// recommendations. Neither of these make sense in background tasks, and they
|
||||
// could trigger telemetry.
|
||||
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.
|
||||
pref("app.normandy.run_interval_seconds", 0);
|
||||
|
Loading…
Reference in New Issue
Block a user