Bug 1460119 - gSnippetsMap.getTotalBookmarksCount() never resolves. r=Mardak, a=RyanVM
authork88hudson <k88hudson@gmail.com>
Fri, 11 May 2018 15:08:10 -0400
changeset 470759 43bcbb69db2123e46600f7fa93842f87b70c977a
parent 470758 7002b1d37d0ce38568466a46f20ce425c2c7a8a6
child 470760 2e4115e95bc3179250ac2f4293a531ce406d7710
push id9217
push userryanvm@gmail.com
push dateSun, 13 May 2018 19:18:47 +0000
treeherdermozilla-beta@43bcbb69db21 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMardak, RyanVM
bugs1460119
milestone61.0
Bug 1460119 - gSnippetsMap.getTotalBookmarksCount() never resolves. r=Mardak, a=RyanVM 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"];