Skip to content

Commit

Permalink
Bug 1003839 - Live bookmark is still created despite cancelling the s…
Browse files Browse the repository at this point in the history
…ubscription. r=mak
  • Loading branch information
Asaf Romano committed May 21, 2014
1 parent 099f7e1 commit 76cc54b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions toolkit/components/places/PlacesUtils.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -2205,10 +2205,10 @@ PlacesCreateLivemarkTransaction.prototype = {

undoTransaction: function CLTXN_undoTransaction()
{
// The getLivemark callback is expected to receive a failure status but it
// is used just to serialize, so doesn't matter.
// The getLivemark callback may fail, but it is used just to serialize,
// so it doesn't matter.
PlacesUtils.livemarks.getLivemark({ id: this.item.id })
.then(null, () => {
.then(null, null).then( () => {
PlacesUtils.bookmarks.removeItem(this.item.id);
});
}
Expand Down

0 comments on commit 76cc54b

Please sign in to comment.