mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1246160 - Fix tab bookmarking action in synced tabs sidebar. r=zaach
This commit is contained in:
parent
556f8d9aeb
commit
07212bf6b6
@ -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);
|
||||
},
|
||||
|
||||
|
@ -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});
|
||||
|
Loading…
Reference in New Issue
Block a user