dajnz dajnz - 9 months ago 54
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.