mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 20:55:39 +00:00
Bug 462379 - (NS_ERROR_FAILURE) [nsINavBookmarksService.insertBookmark] when trying to star a bookmark (r=sdwilsh, for marco, sdwilsh)
This commit is contained in:
parent
4f9e20c7a6
commit
8cc8a04b63
@ -202,25 +202,22 @@ nsPlacesDBFlush.prototype = {
|
||||
// Execute sync statements async in a transaction
|
||||
// XXX due to a bug in sqlite, we cannot wrap these in a transaction. See
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=462379#c2 for details.
|
||||
this._db.executeAsync(statements, statements.length, this);
|
||||
//this._db.executeAsync(statements, statements.length, this);
|
||||
|
||||
// XXX Disabled due to persistent test failures on the tinderbox.
|
||||
/*
|
||||
let self = this;
|
||||
let listener = {
|
||||
// We also need to batch the two handleCompletion objects into one.
|
||||
_count: 0,
|
||||
_count: statements.length,
|
||||
handleError: function(aError) self.handleError(aError),
|
||||
handleCompletion: function(aReason) {
|
||||
this._count++;
|
||||
if (this._count == 2) {
|
||||
// we have gotten both notifications
|
||||
this._count--;
|
||||
if (this._count == 0) {
|
||||
// we have gotten all notifications
|
||||
self.handleCompletion(aReason);
|
||||
}
|
||||
}
|
||||
};
|
||||
statements.forEach(function(stmt) stmt.executeAsync(listener));
|
||||
*/
|
||||
|
||||
// Finalize statements, otherwise we could get in trouble
|
||||
statements.forEach(function(stmt) stmt.finalize());
|
||||
|
Loading…
Reference in New Issue
Block a user