Bug 814587 - Add "Add to Reading List" context menu (r=bnicholson)

This commit is contained in:
Lucas Rocha 2013-04-17 12:09:18 +01:00
parent 99a27a429c
commit e820451d6a
2 changed files with 8 additions and 0 deletions

View File

@ -383,6 +383,13 @@ var BrowserApp = {
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.linkCopyableContext,
function(aTarget) {

View File

@ -155,6 +155,7 @@ selectionHelper.textCopied=Text copied to clipboard
# Context menu
contextmenu.openInNewTab=Open Link in New Tab
contextmenu.openInPrivateTab=Open Link in Private Tab
contextmenu.addToReadingList=Add to Reading List
contextmenu.share=Share
contextmenu.copyLink=Copy Link
contextmenu.shareLink=Share Link