Enables an extension to modify certain global browser settings. Each property of this API is a
BrowserSetting
object, providing the ability to modify a particular setting.Because these are global settings, it's possible for extensions to conflict. See the documentation for
BrowserSetting.set()
for details of how conflicts are handled.To use this API you need to have the "browserSettings" permission.
Properties
browserSettings.allowPopupsForUserEvents
- Determines whether code running in web pages can display popups in response to user events.
browserSettings.cacheEnabled
- Determines whether the browser cache is enabled or not.
browserSettings.homepageOverride
- Read the value of the browser's home page.
browserSettings.imageAnimationBehavior
- Determines how the browser treats animated images.
browserSettings.newTabPageOverride
- Read the value of the browser's new tab page.
browserSettings.webNotificationsDisabled
- Prevents websites from showing notifications using the
Notification
Web API.
Browser compatibility
Chrome | Edge | Firefox | Firefox for Android | Opera | |
---|---|---|---|---|---|
allowPopupsForUserEvents | No | No | 57 | 57 | No |
cacheEnabled | No | No | 56 | 56 | No |
homepageOverride | No | No | 57 | 57 | No |
imageAnimationBehavior | No | No | 57 | 57 | No |
newTabPageOverride | No | No | 57 | 57 | No |