-
Notifications
You must be signed in to change notification settings - Fork 81
Add web hooks for onDisabled and onUninstalled #980
Copy link
Copy link
Open
Labels
needs-triage: chromeChrome needs to assess this issue for the first timeChrome needs to assess this issue for the first timeneeds-triage: firefoxFirefox needs to assess this issue for the first timeFirefox needs to assess this issue for the first timeneutral: safariNot opposed or supportive from SafariNot opposed or supportive from Safaritopic: eventsIssues related to the registration, management, and dispatch of WebExtension events.Issues related to the registration, management, and dispatch of WebExtension events.
Metadata
Metadata
Assignees
Labels
needs-triage: chromeChrome needs to assess this issue for the first timeChrome needs to assess this issue for the first timeneeds-triage: firefoxFirefox needs to assess this issue for the first timeFirefox needs to assess this issue for the first timeneutral: safariNot opposed or supportive from SafariNot opposed or supportive from Safaritopic: eventsIssues related to the registration, management, and dispatch of WebExtension events.Issues related to the registration, management, and dispatch of WebExtension events.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Intro
As follow up for the from the London 2026-04-07 F2F, where we discussed ability to be notified as extension on disabled/uninstalled scenarios was discussed. A few points were raised:
runtime.setUninstallURL()too invasiveruntime.onInvalidated()(see Updateruntime.onInvalidatedwith unload reason and isolated world restriction #975)runtime.setUninstallURL()this should be a fixed URL set in the manifest, preventing passing additional user dataIn addition, I would like to add:
runtime.setUninstallURL()as there would be no way for extension developers to invite users to share uninstalled reasons. Many developers collect this information to improve their products and many users elaborate on there reasoning.Proposal
Considering this should be in the manifest, and we may want to add more web hooks, having a top level
web_hooksobject seems to keep the manifest file clean and flexible. Something like:{ "web_hooks": { "on_disabled": "https://example.com/hooks/on-disabled", "on_uninstalled": "https://example.com/hooks/on-uninstalled" } }Discussion points
web_hooksumbrella object?