runtime.setUninstallURL()

Sets the URL to be visited when the extension is uninstalled. This may be used to clean up server-side data, do analytics, and implement surveys. Maximum 255 characters.

Syntax

browser.runtime.setUninstallURL(
  url,             // string
  function() {...} // optional function
)

Parameters

url
string. URL to be opened after the extension is uninstalled. This URL must have an http: or https: scheme. Set an empty string to not open a new tab upon uninstallation.
callbackOptional
function. Called when the uninstall URL is set. If the given URL is invalid, runtime.lastError will be set.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?47.0Yes33
Firefox
Basic support48.0

Examples

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,