GO-V.ORG
As seen in

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

4 results across 6 corpora for runtime.onStartup.

Developer library 4

Background scripts

script if an event is triggered. Registered listeners may need to be restructured to the synchronous pattern and moved to the top-level. ```js browser.runtime.onStartup.addListener(() => { // run startup function }); ``` ### Record state changes Scripts now open and close as needed. So, do not rely on global variables. ```js example-bad var count = 101; browser.runtime.onMessage.addListener((message, sender, se

runtime

wser in which this extension is installed. - runtime.getPackageDirectoryEntry() - : Returns a DirectoryEntry for the package directory. ## Events - runtime.onStartup - : Fired when a profile that has this extension installed first starts up. This event is not fired when an incognito profile is started. - runtime.onInstalled - : Fired when the extension is first installed, when the extension is updated to a ne

runtime.onStartup

nsion is operating in 'split' incognito mode. > [!NOTE] > When using an event page or background service worker, the extension must add a listener to `runtime.onStartup` on the event page for the event page to be executed at least once per browser session. ## Syntax ```js-nolint browser.runtime.onStartup.addListener(listener) browser.runtime.onStartup.removeListener(listener) browser.runtime.onStartup.hasListener(

Firefox 52 release notes for developers

box` API](/docs/Mozilla/Add-ons/WebExtensions/API/omnibox) - [`runtime.onInstalled`](/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onInstalled) and [`runtime.onStartup`](/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onStartup) events - [asynchronous event listeners in webRequest](/docs/Mozilla/Add-ons/WebExtensions/API/webRequest#modifying_requests) - [`bookmarks.onMoved`](/docs/Mozilla/Add-ons/WebExtensions/API/

JSON results · Services directory