Bug 1399646: Part 4 - Increase the extension shutdown blocker timeout. r?mixedpuppy draft
authorKris Maglione <maglione.k@gmail.com>
Wed, 13 Sep 2017 08:58:37 -0700
changeset 664370 980cce2af1117d6d46f6083910672e3ef8702981
parent 664369 8c04e4be2f74850f28d642350b9ff268ab3206e4
child 731437 fcab76b7ba7e1f015dce675375ec0cd2d7faa505
push id79689
push usermaglione.k@gmail.com
push dateWed, 13 Sep 2017 22:25:50 +0000
reviewersmixedpuppy
bugs1399646
milestone57.0a1
Bug 1399646: Part 4 - Increase the extension shutdown blocker timeout. r?mixedpuppy The current timeout was added to deal with some shutdown deadlocks that were happining in the wild, but were hard to reproduce locally and therefore diagnose. It's not clear whether the bulk of those have been fixed, so I'm reluctant to remove the timeout entirely. But the current 1s timeout is quite short, and doesn't allow for proper cleanup in a lot of legitimate cases. The async shutdown service starts to emit warnings at 10s, so 8s gives us enough time to avoid at least that. MozReview-Commit-ID: 94zZjYUY8qZ
toolkit/components/extensions/Extension.jsm
--- a/toolkit/components/extensions/Extension.jsm
+++ b/toolkit/components/extensions/Extension.jsm
@@ -97,17 +97,17 @@ const {
   getUniqueId,
 } = ExtensionUtils;
 
 XPCOMUtils.defineLazyGetter(this, "console", ExtensionUtils.getConsole);
 
 XPCOMUtils.defineLazyGetter(this, "LocaleData", () => ExtensionCommon.LocaleData);
 
 // The maximum time to wait for extension shutdown blockers to complete.
-const SHUTDOWN_BLOCKER_MAX_MS = 1000;
+const SHUTDOWN_BLOCKER_MAX_MS = 8000;
 
 // The list of properties that themes are allowed to contain.
 XPCOMUtils.defineLazyGetter(this, "allowedThemeProperties", () => {
   Cu.import("resource://gre/modules/ExtensionParent.jsm");
   let propertiesInBaseManifest = ExtensionParent.baseManifestProperties;
 
   // The properties found in the base manifest contain all of the properties that
   // themes are allowed to have. However, the list also contains several properties