Bug 546445 - Asynchronous getPref triggers debug assertion when shutting down sqlite. r=sdwilsh
This commit is contained in:
Родитель
f3181ad301
Коммит
224b23c6c3
|
@ -101,6 +101,12 @@ ContentPrefService.prototype = {
|
|||
_destroy: function ContentPrefService__destroy() {
|
||||
this._observerSvc.removeObserver(this, "xpcom-shutdown");
|
||||
|
||||
// Finalize statements which may have been used asynchronously.
|
||||
if (this.__stmtSelectPref)
|
||||
this.__stmtSelectPref.finalize();
|
||||
if (this.__stmtSelectGlobalPref)
|
||||
this.__stmtSelectGlobalPref.finalize();
|
||||
|
||||
// Delete references to XPCOM components to make sure we don't leak them
|
||||
// (although we haven't observed leakage in tests). Also delete references
|
||||
// in _observers and _genericObservers to avoid cycles with those that
|
||||
|
|
|
@ -38,10 +38,6 @@ var cps = Cc["@mozilla.org/content-pref/service;1"].
|
|||
var uri = ContentPrefTest.getURI("http://www.example.com/");
|
||||
|
||||
function run_test() {
|
||||
//XXX Temporarily disabled due to sqlite assertions
|
||||
do_check_true(true);
|
||||
return;
|
||||
|
||||
do_test_pending();
|
||||
|
||||
cps.setPref(uri, "asynctest", "pie");
|
||||
|
|
Загрузка…
Ссылка в новой задаче