dajnz dajnz - 1 year ago 89
Javascript Question

Is it possible for a Firefox WebExtension to uninstall itself prior to Firefox version 51?

Is it possible to uninstall my own Firefox WebExtension (not based on the Add-on SDK) programmatically in Firefox versions prior to 51 where the

API method will be available?

Xan Xan
Answer Source

Well, no.

Extensions are sandboxed enough that they cannot interact with management functions with the exception of management API.

If that wasn't implemented in WebExtensions until FF 51, you're out of luck. The most you can do is to invoke chrome.runtime.openOptionsPage (supported since FF 48) to present the user with the UI that explicitly has the "Remove" button.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download