Docs
Web API
chrome.webNavigation
# chrome.webNavigation
The navigations of the documents of tabs and of their frames (src/page/ext_webnavigation.odin). Frame ids are Chrome's: 0 for the tab's top document, -1 for no parent. A document's URL is given only to an extension that may see it (the tabs permission or a host grant); the events of other documents are not sent to it.
Gate: permission webNavigation; contexts: Background, Popup, Tab. Source: api/ext_webnavigation.widl.
# Methods and properties
Member Result Status Gate
getFrame(GetFrameDetails details)FrameDetails host One frame of a tab; null when the tab has none of that id.
getAllFrames(GetAllFramesDetails details)FrameDetails []host Every frame of a tab, the top document first.
# Events
Event Listener's parameters Gate
onBeforeNavigateobject detailsdetails: tabId, frameId, parentFrameId, url, timeStamp, processId, and documentId when the document exists.
onCommittedobject details
onDOMContentLoadedobject details
onCompletedobject details
onErrorOccurredobject details
onCreatedNavigationTargetobject details
onReferenceFragmentUpdatedobject details
onHistoryStateUpdatedobject details
onTabReplacedobject details
# Types
# TransitionType
A string: "link", "typed", "auto_bookmark", "auto_subframe", "manual_subframe", "generated", "start_page", "form_submit", "reload", "keyword", "keyword_generated". chrome.webNavigation.TransitionType names them.
# GetFrameDetails
Property Type
tabIdi64
frameId (optional)i64
documentId (optional)string
processId (optional)i64
# GetAllFramesDetails
# FrameDetails
Property Type
errorOccurredbool
urlstring
frameIdi64
parentFrameIdi64
processIdi64
documentIdstring
parentDocumentId (optional)string
documentLifecyclestring
frameTypestring
Previous chrome.tabs
Next chrome.windows
Edit this page on GitHub
On this page