mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
f478a4b069
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. |
||
---|---|---|
.. | ||
downloads | ||
extensions | ||
handling | ||
installer | ||
preferences | ||
update |