webNavigation.getAllFrames()

Retrieves information about all frames of a given tab.

Syntax

browser.webNavigation.getAllFrames(
  details,                // object
  function(details) {...} // function
)

Parameters

details
object. Information about the tab to retrieve all frames from.
tabId
integer. The ID of the tab.
callback
function. The function is passed the following arguments:
detailsOptional
array of object. A list of frames in the given tab, null if the specified tab ID is invalid.

Additional objects

details

errorOccurred
boolean. True if the last navigation in this frame was interrupted by an error, i.e. the onErrorOccurred event fired.
processId
integer. The ID of the process runs the renderer for this tab.
frameId
integer. The ID of the frame. 0 indicates that this is the main frame; a positive value indicates the ID of a subframe.
parentFrameId
integer. ID of frame that wraps the frame. Set to -1 of no parent frame exists.
url
string. The URL currently associated with this frame.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?47.0Yes33
Firefox
Basic support48.0

Examples

Acknowledgements

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

Document Tags and Contributors

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