Bug 1387409 - Port bug 1386540 to SeaMonkey. Replace addLazyBookmarkObserver with a standard observer. rs=bustage-fix
authorFrank-Rainer Grahl <frgrahl@gmx.net>
Fri, 04 Aug 2017 15:26:12 +0200
changeset 29465 fd1f9716349858b92604037441662cfa463d3015
parent 29464 cd8a451f7dd37f5c922bcda1a0641d7fffcf63c0
child 29466 50c68d9d4672f28bdc53fb20bc764514cc541ba6
push id378
push userclokep@gmail.com
push dateMon, 13 Nov 2017 18:45:35 +0000
reviewersbustage-fix
bugs1387409, 1386540
Bug 1387409 - Port bug 1386540 to SeaMonkey. Replace addLazyBookmarkObserver with a standard observer. rs=bustage-fix
suite/common/bookmarks/browser-places.js
--- a/suite/common/bookmarks/browser-places.js
+++ b/suite/common/bookmarks/browser-places.js
@@ -733,17 +733,17 @@ var PlacesStarButton = {
            guid => !aItemGuids.includes(guid)
          ).concat(aItemGuids);
 
          this._updateStar();
 
          // Start observing bookmarks if needed.
          if (!this._hasBookmarksObserver) {
            try {
-             PlacesUtils.addLazyBookmarkObserver(this);
+             PlacesUtils.bookmarks.addObserver(this);
              this._hasBookmarksObserver = true;
            } catch (ex) {
              Components.utils.reportError("BookmarkingUI failed adding a bookmarks observer: " + ex);
            }
          }
 
          delete this._pendingUpdate;
        });