mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
Backed out changeset 674775dda8ad (bug 1364972) for eslint failures a=backout
MozReview-Commit-ID: 5tmy6XSi0sL
This commit is contained in:
parent
af87b038ca
commit
fb047aaff3
@ -72,16 +72,6 @@ ExtensionPreferencesManager.addSetting("cacheEnabled", {
|
||||
},
|
||||
});
|
||||
|
||||
ExtensionPreferencesManager.addSetting("imageAnimationBehavior", {
|
||||
prefNames: [
|
||||
"image.animation_mode",
|
||||
],
|
||||
|
||||
setCallback(value) {
|
||||
return {[this.prefNames[0]]: value};
|
||||
},
|
||||
});
|
||||
|
||||
this.browserSettings = class extends ExtensionAPI {
|
||||
getAPI(context) {
|
||||
let {extension} = context;
|
||||
@ -104,11 +94,6 @@ this.browserSettings = class extends ExtensionAPI {
|
||||
return Services.prefs.getComplexValue(
|
||||
HOMEPAGE_URL_PREF, Ci.nsIPrefLocalizedString).data;
|
||||
}, undefined, true),
|
||||
imageAnimationBehavior: getSettingsAPI(extension,
|
||||
"imageAnimationBehavior",
|
||||
() => {
|
||||
return Preferences.get("image.animation_mode");
|
||||
}),
|
||||
newTabPageOverride: getSettingsAPI(extension,
|
||||
NEW_TAB_OVERRIDE_SETTING,
|
||||
() => {
|
||||
|
@ -21,14 +21,6 @@
|
||||
"namespace": "browserSettings",
|
||||
"description": "Use the <code>browser.browserSettings</code> API to control global settings of the browser.",
|
||||
"permissions": ["browserSettings"],
|
||||
"types": [
|
||||
{
|
||||
"id": "ImageAnimationBehavior",
|
||||
"type": "string",
|
||||
"enum": ["normal", "none", "once"],
|
||||
"description": "How images should be animated in the browser."
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"allowPopupsForUserEvents": {
|
||||
"$ref": "types.Setting",
|
||||
@ -42,10 +34,6 @@
|
||||
"$ref": "types.Setting",
|
||||
"description": "Returns the value of the overridden home page. Read-only."
|
||||
},
|
||||
"imageAnimationBehavior": {
|
||||
"$ref": "types.Setting",
|
||||
"description": "Controls the behaviour of image animation in the browser. This setting's value is of type ImageAnimationBehavior, defaulting to <code>normal</code>."
|
||||
},
|
||||
"newTabPageOverride": {
|
||||
"$ref": "types.Setting",
|
||||
"description": "Returns the value of the overridden new tab page. Read-only."
|
||||
|
@ -23,7 +23,6 @@ add_task(async function test_browser_settings() {
|
||||
"browser.cache.disk.enable": true,
|
||||
"browser.cache.memory.enable": true,
|
||||
"dom.popup_allowed_events": Preferences.get("dom.popup_allowed_events"),
|
||||
"image.animation_mode": "none",
|
||||
};
|
||||
|
||||
async function background() {
|
||||
@ -89,12 +88,6 @@ add_task(async function test_browser_settings() {
|
||||
"allowPopupsForUserEvents", true,
|
||||
{"dom.popup_allowed_events": PREFS["dom.popup_allowed_events"]});
|
||||
|
||||
for (let value of ["normal", "none", "once"]) {
|
||||
await testSetting(
|
||||
"imageAnimationBehavior", value,
|
||||
{"image.animation_mode": value});
|
||||
}
|
||||
|
||||
await extension.unload();
|
||||
|
||||
await promiseShutdownManager();
|
||||
|
Loading…
Reference in New Issue
Block a user