Wren

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

MemberResultStatusGate
getFrame(GetFrameDetails details)FrameDetailshostOne frame of a tab; null when the tab has none of that id.
getAllFrames(GetAllFramesDetails details)FrameDetails[]hostEvery frame of a tab, the top document first.

Events

EventListener's parametersGate
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

PropertyType
tabIdi64
frameId (optional)i64
documentId (optional)string
processId (optional)i64

GetAllFramesDetails

PropertyType
tabIdi64

FrameDetails

PropertyType
errorOccurredbool
urlstring
frameIdi64
parentFrameIdi64
processIdi64
documentIdstring
parentDocumentId (optional)string
documentLifecyclestring
frameTypestring

Edit this page on GitHub