tabs.getZoomSettings()

Gets the current zoom settings of a specified tab.

Syntax

browser.tabs.getZoomSettings(
  tabId,                       // optional integer
  function(zoomSettings) {...} // function
)

Parameters

tabIdOptional
integer. The ID of the tab to get the current zoom settings from; defaults to the active tab of the current window.
callback
function. Called with the tab's current zoom settings.The function is passed the following arguments:
zoomSettings
tabs.ZoomSettings. The tab's current zoom settings.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?45.0Yes33
Firefox
Basic supportNo

Examples

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,