Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uninstall a webapp on Firefox

To uninstall a webapp, Mozilla says to go to about:apps. Therefore, I asked about anchor link to Firefox about:config. But it seems impossible to go to about:config (or about:apps) from a web page.

Then, Joum advised to use navigator.mozApps.mgmg.uninstall() as indicated by Mathieu Rochette.

But how to use navigator.mozApps.mgmg.uninstall() within a web page?
What are the other ways to uninstall a webapp on Firefox?

like image 994
oHo Avatar asked Dec 21 '22 03:12

oHo


2 Answers

I'm running Firefox on Linux, I'd like to share my solution but it might not work on Windows or other platforms.

Firefox creates a .directory for each web app in your home, for example:

~/.http\;robnyman.github.com

You can run

~/.http\;robnyman.github.com/webapprt-stub -remove

to remove that app. And you will get a notification that the app is uninstalled.

like image 188
Ning Sun Avatar answered Jan 08 '23 00:01

Ning Sun


To manually uninstall a webapp on Firefox for Android, you can go to about:apps.

Unfortunately, about:apps is not yet available on Firefox for Desktop.

Using Aurora (Firefox v24) and Firebug, I retrieved the latest API of navigator.mozApps:

navigator.mozApps [xpconnect wrapped mozIDOMApplicationRegistry]
|
+-- QueryInterface()
|
+-- checkInstalled()
|
+-- getInstalled()
|
+-- getSelf()
|
+-- install()
|
+-- __proto__ [xpconnect wrapped native prototype] 
    |
    +-- QueryInterface()
    |
    +-- checkInstalled()
    |
    +-- getInstalled()
    |
    +-- getSelf()
    |
    +-- install()

Therefore, there is no uninstall() function...

In fact, the main issue is to avoid a webapp to uninstall another webapp (i.e. a website uninstalling webapps from another website). I think this is something Mozilla is working on... let's see on further versions...

like image 34
oHo Avatar answered Jan 08 '23 01:01

oHo