Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/mozilla/add-ons/webextensions/api/runtime/onrestartrequiredreason/index.md
6563 views
---
title: runtime.OnRestartRequiredReason slug: Mozilla/Add-ons/WebExtensions/API/runtime/OnRestartRequiredReason page-type: webextension-api-type tags: - API - Add-ons - Extensions - Non-standard - OnRestartRequiredReason - Reference - Type - WebExtensions - runtime browser-compat: webextensions.api.runtime.OnRestartRequiredReason
---

{{AddonSidebar()}}

The reason that the {{WebExtAPIRef("runtime.onRestartRequired", "onRestartRequired")}} event is being dispatched.

Type

Values of this type are strings. Possible values are:

  • "app_update": The application is being updated to a newer version.

  • "os_update": The browser/OS is updated to a newer version.

  • "periodic": The system has run for more than the permitted uptime set in the enterprise policy.

Browser compatibility

{{Compat}}

{{WebExtExamples}}

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