tabs.ZoomSettings

Defines how zoom changes in a tab are handled and at what scope.

Type

Values of this type are objects. They contain the following properties:

modeOptional
tabs.ZoomSettingsMode. Defines how zoom changes are handled, i.e. which entity is responsible for the actual scaling of the page; defaults to automatic.
scopeOptional
tabs.ZoomSettingsScope. Defines whether zoom changes will persist for the page's origin, or only take effect in this tab; defaults to per-origin when in automatic mode, and per-tab otherwise.
defaultZoomFactorOptional
number. Used to return the default zoom level for the current tab in calls to tabs.getZoomSettings.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?45.0Yes33
Firefox
Basic supportNo

Acknowledgements

This API is based on Chromium's chrome.tabs API. This documentation is derived from tabs.json in the Chromium code.

Document Tags and Contributors

 Contributors to this page: wbamberg
 Last updated by: wbamberg,