Closed Bug 566257 Opened 15 years ago Closed 15 years ago

FlightDeck addon should enable website to uninstall addon

Categories

(Mozilla Labs Graveyard :: FlightDeck, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: myk, Assigned: avarma)

Details

Attachments

(1 file)

It should be possible for FlightDeck to uninstall an addon using the FlightDeck addon, so it can install an addon when the user presses the "try in browser" button and uninstall it when the user is finished trying the addon (perhaps by pressing the same button again, if we make it a toggle button).
Assignee: nobody → avarma
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
I've tried to make it work, however 1. XPI build from github repository was not creating the window.mozFlightDeck object 2. The XPI loaded from https://secure.toolness.com/xpi/flightdeck.xpi was not giving a sane response to the isInstalled command I was able to install both XPI's. The one from github had a new name, but both have the same version number (see attachment https://bugzilla.mozilla.org/attachment.cgi?id=450921). To see the response from the isInstalled command it is enough to just test any addon on http://flightdeck.zalewa.info - it will display the response in console (undefined) I don't know if it is FlightDeck's or the Add-on's fault.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Piotr, did you add http://flightdeck.zalewa.info and/or http://localhost to the data/addon-config.json file as mentioned in the README at http://github.com/toolness/addons-builder-helper ? In order to fix bug 552197 I had to add an explicit white-list of domains to add the window.mozFlightDeck object to. I think the XPI loaded from https://secure.toolness.com/xpi/flightdeck.xpi may be super old, and thus obeying the older API instead of the new one. Sorry about that!
understood - will change the addon-config and try again
I changed the js a little - even with opened firebug console was for undefined. System gives an "internalError" in the following line http://github.com/zalun/addons-builder-helper/blob/master/lib/addons-builder-helper.js#L39 compiled xpi is available at http://piotr.zalewa.info/downloads/addons-builder-helper.xpi (or directly from the warning on http://flightdeck.zalewa.info/) I was trying to install an xpi build from an add-on with comment only
(In reply to comment #8) > I was trying to install an xpi build from an add-on with comment only Does the source code for the addon have an exports.main() function defined? If it doesn't, then an error would happen on install b/c the bootstrapper assumes that it's defined--we need to give better feedback if it isn't, for sure.
Also, Jetpack currently has no integration with Firebug--if the addon calls console.log(), as per bug 570856 it's likely to appear in the JS Error Console for now, which can be seen by going to Tools->Error Console and then making sure "All" types of console messages are logged.
Piotr, I've filed bug 572181 and a patch for it, to allow defining an exports.main() to be optional instead of mandatory, which would make your comment-only addon not raise an error. Hopefully we can get this into 0.5, but we'll see!
As I said on #jetpack - Everything is working fine now. There is no bug as I claimed before, however there is a need to add a delay to the function which is checking if any Add-on is installed.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Product: Mozilla Labs → Mozilla Labs Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: