Bug 1460119 - gSnippetsMap.getTotalBookmarksCount() never resolves r=Mardak
authork88hudson <k88hudson@gmail.com>
Fri, 11 May 2018 15:08:10 -0400
changeset 794494 17ed43c1c76bb9ccf7c274370bed9ce1bce8d0cf
parent 794493 6e55646aad4a8e3ff48167d60beb7c5a8b41be38
child 794495 e642f111b2910997bebfed4aa5a12f3ffebaf205
push id109697
push userbmo:sledru@mozilla.com
push dateSat, 12 May 2018 10:04:34 +0000
reviewersMardak
bugs1460119
milestone62.0a1
Bug 1460119 - gSnippetsMap.getTotalBookmarksCount() never resolves r=Mardak MozReview-Commit-ID: Dx4tkHTb4zz
browser/extensions/activity-stream/lib/SnippetsFeed.jsm
--- a/browser/extensions/activity-stream/lib/SnippetsFeed.jsm
+++ b/browser/extensions/activity-stream/lib/SnippetsFeed.jsm
@@ -207,15 +207,15 @@ this.SnippetsFeed = class SnippetsFeed {
       case at.SNIPPETS_BLOCKLIST_UPDATED:
         this._saveBlockedSnippet(action.data);
         this.store.dispatch(ac.BroadcastToContent({type: at.SNIPPET_BLOCKED, data: action.data}));
         break;
       case at.SNIPPETS_BLOCKLIST_CLEARED:
         this._clearBlockList();
         break;
       case at.TOTAL_BOOKMARKS_REQUEST:
-        this.getTotalBookmarksCount(action._target.browser);
+        this.getTotalBookmarksCount(action.meta.fromTarget);
         break;
     }
   }
 };
 
 const EXPORTED_SYMBOLS = ["SnippetsFeed"];