Commit Graph

8 Commits

Author SHA1 Message Date
Bob Silverberg
67dd56c12b Bug 1364972 - Allow WebExtensions to disable animated images, r=mixedpuppy
This adds a browserSetting.imageAnimationBehavior API which accepts one of three
values: "normal", "none", "once". Behind the scenes it sets the image.animation_mode
preference to the same value.

MozReview-Commit-ID: GLT6oJgpF3
2017-09-06 16:46:38 -04:00
Wes Kocher
135e3326d8 Backed out changeset 674775dda8ad (bug 1364972) for eslint failures a=backout
MozReview-Commit-ID: 5tmy6XSi0sL
2017-09-07 12:31:11 -07:00
Bob Silverberg
fac011c134 Bug 1364972 - Allow WebExtensions to disable animated images, r=mixedpuppy
This adds a browserSetting.imageAnimationBehavior API which accepts one of three
values: "normal", "none", "once". Behind the scenes it sets the image.animation_mode
preference to the same value.

MozReview-Commit-ID: GLT6oJgpF3
2017-09-06 16:46:38 -04:00
Bob Silverberg
abb21b1d3c Bug 1397081 - Update browserSettings to report the current home page and new tab page in all cases, r=mixedpuppy
This updates the browserSettings API to report the current value of the home page and the new tab page regardless of whether they are currently overridden by an extension.

MozReview-Commit-ID: 3usY3F4oIxl
2017-09-05 16:11:04 -04:00
Bob Silverberg
ccd9787851 Bug 1322308 - Allow WebExtensions to read the overriden homepage and newTab values, r=mixedpuppy
This introduces browser.browserSettings.homepageOverride and browser.browserSettings.newTabPageOverride
which will return the values of the overridden home page and the overridden new tab page.

These browserSettings are read-only.

MozReview-Commit-ID: A9vJP2QIaoA
2017-07-17 14:16:02 -04:00
Bob Silverberg
7ca1f24ce4 Bug 1339550 - Implement browser.settings.allowPopupsForUserEvents, r=aswan
This will modify the "dom.popup_allowed_events" preference to control whether events from
user actions are allowed to open pop-up windows or not. If set to `false` then pop-ups from
user actions will not be allowed and will result in a doorhanger being displayed informing
the user that a pop-up was blocked. If set to `true` then all of the default events
will be allowed to open pop-up windows.

MozReview-Commit-ID: 8UFziq23zug
2017-07-31 16:46:36 -04:00
Bob Silverberg
4b8df9ba3a Bug 1374237 - Part 2: Declare all top-level functions in toolkit API files files via const., r=mixedpuppy
Also changed some function names to attempt to guarantee uniqueness across API files.

MozReview-Commit-ID: GnwWwTADF3a
2017-06-21 14:29:37 -04:00
Bob Silverberg
6b9767d0c2 Bug 1364936 - Allow WebExtensions to disable the browser cache, r=aswan
MozReview-Commit-ID: KhupGnBT5mZ
2017-05-24 13:17:42 -04:00