Bug 1246160 - Fix tab bookmarking action in synced tabs sidebar. r=zaach

This commit is contained in:
Edouard Oger 2016-02-05 07:53:00 -05:00
parent 556f8d9aeb
commit 07212bf6b6
2 changed files with 4 additions and 4 deletions

View File

@ -100,7 +100,7 @@ TabListComponent.prototype = {
onBookmarkTab(uri, title) {
this._window.top.PlacesCommandHook
.bookmarkLink(this._window.PlacesUtils.bookmarksMenuFolderId, uri, title)
.bookmarkLink(this._window.top.PlacesUtils.bookmarksMenuFolderId, uri, title)
.catch(Cu.reportError);
},

View File

@ -71,10 +71,10 @@ add_task(function* testActions() {
top: {
PlacesCommandHook: {
bookmarkLink() { return Promise.resolve(); }
}
},
PlacesUtils: { bookmarksMenuFolderId: "id" }
},
openUILink() {},
PlacesUtils: { bookmarksMenuFolderId: "id" },
openUILink() {}
};
let component = new TabListComponent({
window: windowMock, store, View: null, SyncedTabs});