mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 814587 - Add "Add to Reading List" context menu (r=bnicholson)
This commit is contained in:
parent
99a27a429c
commit
e820451d6a
@ -383,6 +383,13 @@ var BrowserApp = {
|
|||||||
NativeWindow.toast.show(label, "short");
|
NativeWindow.toast.show(label, "short");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
NativeWindow.contextmenus.add(Strings.browser.GetStringFromName("contextmenu.addToReadingList"),
|
||||||
|
NativeWindow.contextmenus.linkOpenableContext,
|
||||||
|
function(aTarget) {
|
||||||
|
let url = NativeWindow.contextmenus._getLinkURL(aTarget);
|
||||||
|
Services.obs.notifyObservers(null, "Reader:Add", JSON.stringify({ url: url }));
|
||||||
|
});
|
||||||
|
|
||||||
NativeWindow.contextmenus.add(Strings.browser.GetStringFromName("contextmenu.copyLink"),
|
NativeWindow.contextmenus.add(Strings.browser.GetStringFromName("contextmenu.copyLink"),
|
||||||
NativeWindow.contextmenus.linkCopyableContext,
|
NativeWindow.contextmenus.linkCopyableContext,
|
||||||
function(aTarget) {
|
function(aTarget) {
|
||||||
|
@ -155,6 +155,7 @@ selectionHelper.textCopied=Text copied to clipboard
|
|||||||
# Context menu
|
# Context menu
|
||||||
contextmenu.openInNewTab=Open Link in New Tab
|
contextmenu.openInNewTab=Open Link in New Tab
|
||||||
contextmenu.openInPrivateTab=Open Link in Private Tab
|
contextmenu.openInPrivateTab=Open Link in Private Tab
|
||||||
|
contextmenu.addToReadingList=Add to Reading List
|
||||||
contextmenu.share=Share
|
contextmenu.share=Share
|
||||||
contextmenu.copyLink=Copy Link
|
contextmenu.copyLink=Copy Link
|
||||||
contextmenu.shareLink=Share Link
|
contextmenu.shareLink=Share Link
|
||||||
|
Loading…
Reference in New Issue
Block a user