Bug 1131416 - Desktop syncing module for reading list service (one more fix to prepatory changes). r=jaws a=readinglist
authorDrew Willcoxon <adw@mozilla.com>
Fri, 20 Mar 2015 15:53:14 -0700
changeset 248455 7b9c0e41f86a885bd933e664c385252ae405877c
parent 248454 e52d11853e9825f3dd8b3465c357f96046ec6a29
child 248456 b7de0775a8d922415b69c9d552daf621638e23c7
push id7837
push userjwein@mozilla.com
push dateFri, 27 Mar 2015 00:27:16 +0000
treeherdermozilla-aurora@cb0db44ce60e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, readinglist
bugs1131416
milestone38.0a2
Bug 1131416 - Desktop syncing module for reading list service (one more fix to prepatory changes). r=jaws a=readinglist
browser/components/readinglist/sidebar.js
--- a/browser/components/readinglist/sidebar.js
+++ b/browser/components/readinglist/sidebar.js
@@ -436,17 +436,17 @@ let RLSidebar = {
 
     if (msg.topic != "UpdateActiveItem") {
       return;
     }
 
     if (!msg.url) {
       this.activeItem = null;
     } else {
-      ReadingList.getItemForURL(msg.url).then(item => {
+      ReadingList.itemForURL(msg.url).then(item => {
         this.activeItem = this.itemNodesById.get(item.id);
       });
     }
   }
 };
 
 
 addEventListener("DOMContentLoaded", () => RLSidebar.init());