Bug 717904 - Add-ons Manager is broken after installing an extension with browser restart [r=Unfocused]

This commit is contained in:
Matt Brubeck 2012-02-27 16:34:07 -08:00
parent 8e14fcd32b
commit 43534236fa

View File

@ -826,6 +826,10 @@ function loadManifestFromRDF(aUri, aStream) {
addon.applyBackgroundUpdates = AddonManager.AUTOUPDATE_DEFAULT;
// Load the storage service before NSS (nsIRandomGenerator),
// to avoid a SQLite initialization error (bug 717904).
let storage = Services.storage;
// Generate random GUID used for Sync.
// This was lifted from util.js:makeGUID() from services-sync.
let rng = Cc["@mozilla.org/security/random-generator;1"].