gecko/toolkit/mozapps
Dave Townsend f478a4b069 Bug 1220911: Remove most of the special casing around experiments. r=rhelmer
Experiments should differ from normal add-ons in a few ways:

* They can always be enabled regardless of compatibility info
* They default to disabled when installed
* They cannot be checked for updates
* They only stay enabled for the lifetime of the current process
* The UI doesn't give users the ability to enable/disable

This makes a few changes to keep these differences but remove much of the special casing code for experiments.

Being able to use regardless of compatibility was mostly fixed by bug 1220198 but I've also removed the redundant override in isCompatible.

Previously the "enabled until restart" feature worked with by not updating the DBAddonInternal object and instead using a hack to make the wrapper still seem enabled. This seems likely to break other code that relies on the state of the DBAddonInternal object so instead we update that as normal and simply don't persist the enabled state to disk.

Also switch the DBAddonInteral.prototype code to use some newer JS features.

I've removed the hack from addon.permissions which was hiding the enable/disable buttons in the UI and instead just hidden them in the UI stylesheet. This makes the API make sense and means callers can use addon.permissions to verify that enabling will work.
2015-11-09 15:02:29 -08:00
..
downloads Bug 1217082 - Remove for-each from toolkit/. r=Gijs 2015-10-19 04:57:14 +09:00
extensions Bug 1220911: Remove most of the special casing around experiments. r=rhelmer 2015-11-09 15:02:29 -08:00
handling Bug 1217082 - Remove for-each from toolkit/. r=Gijs 2015-10-19 04:57:14 +09:00
installer Bug 1224490 - Kill LIBXUL_DIST. r=mshal 2015-11-17 10:00:19 +09:00
preferences Bug 1204154 - Clean up jar manifests that needlessly specify the source file. r=dao 2015-09-15 18:33:57 -07:00
update Bug 1205843 - Part 2: Disable maintenance service on WinXP < SP3 - r=rstrong 2015-10-27 14:31:34 -07:00