Bug 1140334 - Remove __noSuchMethod__ from PlacesUtils.jsm. r=mak
authorJan de Mooij <jdemooij@mozilla.com>
Sat, 07 Mar 2015 16:35:07 +0100
changeset 232396 12e446d95738b8f7d29ded35c3b3d6d36140b15e
parent 232395 4a5a4eafd2ce83a096001a4e1546f218d80dd9ad
child 232397 cb7d748abbe8d518223927383c96e5d8dcbe26db
push id56538
push userjandemooij@gmail.com
push dateSat, 07 Mar 2015 15:37:27 +0000
treeherdermozilla-inbound@cb7d748abbe8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs1140334
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1140334 - Remove __noSuchMethod__ from PlacesUtils.jsm. r=mak
toolkit/components/places/PlacesUtils.jsm
--- a/toolkit/components/places/PlacesUtils.jsm
+++ b/toolkit/components/places/PlacesUtils.jsm
@@ -1953,17 +1953,22 @@ let GuidHelper = {
         onItemRemoved:
         (aItemId, aParentId, aIndex, aItemTyep, aURI, aGuid, aParentGuid) => {
           this.guidsForIds.delete(aItemId);
           this.idsForGuids.delete(aGuid);
           this.guidsForIds.set(aParentId, aParentGuid);
         },
 
         QueryInterface: XPCOMUtils.generateQI(Ci.nsINavBookmarkObserver),
-        __noSuchMethod__: () => {}, // Catch all all onItem* methods.
+
+        onBeginUpdateBatch: function() {},
+        onEndUpdateBatch: function() {},
+        onItemChanged: function() {},
+        onItemVisited: function() {},
+        onItemMoved: function() {},
       };
       PlacesUtils.bookmarks.addObserver(this.observer, false);
       PlacesUtils.registerShutdownFunction(() => {
         PlacesUtils.bookmarks.removeObserver(this.observer);
       });
     }
   }
 };