Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
5 results across 6 corpora for webNavigation.onCompleted.
Developer library 5
Background scripts
bset of events, such as when a web page is opened from a specific domain, use event filters where they are available. For example, you can add a filter to the webNavigation.onCompleted event to start your background script when certain URLs load, like this: ```js browser.webNavigation.onCompleted.addListener( () => { console.log("This is my favorite website!"); }, { url: [{ urlMatches: "https://www.mozill
Work with documentId
. - **Messaging**: tabs.sendMessage() and tabs.connect() accept a `tabId` and optional `frameId` to direct a message to its recipient. - **Frame information**: webNavigation.getFrame() and webNavigation.getAllFrames() use `tabId` and `frameId` to look up or enumerate frame details. - **Events**: Navigation events (webNavigation.onCommitted, webNavigation.onCompleted, and others), request events (webRequest.onBeforeRe
webNavigation
PI: navigations usually result in the browser making web requests, but the webRequest API is concerned with the lower-level view from the HTTP layer, while the webNavigation API is more concerned with the view from the browser UI itself. Each event corresponds to a particular stage in the navigation. The sequence of events is like this:  event. ## Syntax ```js-nolint browser.webNavigation.onCompleted.addListener( listener, // function filter // optional object ) browser.webNavigation.onCompleted.removeListener(listener) browser.webNavigation.onCompleted.hasListener(listener) ``` Events h
tabs.create()
)` resolves as soon as the tab has been created. The tab may still be loading. To detect when the tab has finished loading, listen to the tabs.onUpdated or the webNavigation.onCompleted event before calling `tabs.create`. ## Examples Open "https\://example.org" in a new tab: ```js function onCreated(tab) { console.log(`Created new tab: ${tab.id}`); } function onError(error) { console.log(`Error: ${error}`); }