Closed Bug 1224309 Opened 9 years ago Closed 6 years ago

AddonManager should detect shutdown and abort any in-flight installs

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: kjozwiak, Unassigned)

Details

Attachments

(2 files)

Attached file duringInstall.txt
While testing the telemetry experiment in bug # 1174937, I ran into the following error while I "command + q" while the experiment was being installed. Once I ran into the error mentioned below, the telemetry experiment broke and didn't disable itself. More context available in Bug # 1174937 Comment # 75.

I've also attached the following logs: (the telex messages were added for debugging purposes in the telemetry experiment)
 
- duringInstall.txt (while the experiment was being installed, command +q)
- afterRestart.txt (after command + q, re-launch fx)

1447193127747 addons.xpi-utils WARN Error: XPI database modified after shutdown began (resource://gre/modules/addons/XPIProvider.jsm -> resource://gre/modules/addons/XPIProviderUtils.js:451:17) JS Stack trace: this.XPIDatabase.saveChanges@XPIProviderUtils.js:451:17 < XPIDB_updateActiveAddons@XPIProviderUtils.js:1398:9 < XPI_shutdown@XPIProvider.jsm:2639:7 < _startProvider/AMProviderShutdown/<@AddonManager.jsm:843:21 < Promise@Promise-backend.js:385:5 < _startProvider/AMProviderShutdown@AddonManager.jsm:841:16 < Barrier/this.client.addBlocker/promise</trigger@AsyncShutdown.jsm:686:23 < Barrier.prototype<._wait@AsyncShutdown.jsm:830:7 < Barrier.prototype<.wait@AsyncShutdown.jsm:814:28 < AddonManagerInternal.shutdownManager<@AddonManager.jsm:1233:15

STR:

- install the latest fx beta
- once fx is installed, go into about:config and "devtools.chrome.enabled;true"
- open the browser console and change the following prefs:

Services.prefs.setBoolPref("experiments.logging.dump", true);
Services.prefs.setCharPref("experiments.logging.level", "Trace");
Services.prefs.setCharPref("experiments.force-sample-value", ".1");
Services.prefs.setBoolPref("xpinstall.signatures.required", false);

- once you've changed the above prefs, "experiments.manifest.uri;http://www.kamiljozwiak.io/firefox-manifest.json"
- as soon as you change the "experiments.manifest.uri" pref, the installation process will begin instantly so quickly press "command + q"

This is pretty tricky as it's timing based so it might take a few times to reproduce. When reproduced, the experiment will still be enabled and never ended up contacting the server (DataDog).
Attached file afterRestart.txt
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: