(In reply to David McNamara [:mackers] from comment #14)
> (In reply to Brian King (Briks) [:kinger] from comment #11)
> > David, could you post the code you tried. Maybe there is a minor error or
> > oversight.
>
> In essence the code is the following:
>
> ACR.Util.getInstalledExtensions(function(installedExtensions) {
> for (var i=0; i<installedExtensions.length; i++) {
> if (installedExtensions[i].type == "locale") {
> //installedExtensions[i].userDisabled = true;
> installedExtensions[i].uninstall();
> }
> }
> });
>
> In the above, 'uninstall()' works as expected while 'userDisabled = true'
> has no effect.
>
> Note, ACR restarts the application as soon as it finishes
> uninstalling/disabling extensions. This may be why the disable does not
> complete.
When you say that, what do you mean? The code above doesn't show the
restart call inside the anonymous function which it is where I would
expect it to have to be in order to only happen after the async add-on
retrieval has completed.
> A possible solution is to set up extension disable listeners and only to
> restart the app once all those listeners have been notified.
Setting userDisabled should (currently) behave synchronously, so the
disable events should be sent before that line even completes.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/677815
Title:
Firefox crashes with XML Parsing Error
To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/677815/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs