runtime.OnInstalledReason

The reason that the runtime.onInstalled event is being dispatched.

Type

Values of this type are strings. Possible values are:

"install": the extension was installed
"update": the extension was updated to a new version
"chrome_update": the browser was updated to a new version
"shared_module_update": another extension, which contains a module used by this extension, was updated

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?45.0Yes33
Firefox
Basic support48.0

Acknowledgements

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

Document Tags and Contributors

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