[Bug 677815]

Dave-j0p9 677815 at bugs.launchpad.net
Thu Aug 25 08:40:37 UTC 2011


(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.

A possible solution is to set up extension disable listeners and only to
restart the app once all those listeners have been notified.

-- 
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox in 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




More information about the Ubuntu-mozillateam-bugs mailing list