Bug 1246232 - Remove "add to reading list" from link-long-press context menu r?liuche
MozReview-Commit-ID: COprGdVgKOf
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -695,30 +695,16 @@ var BrowserApp = {
action: {
label: buttonLabel,
callback: () => { BrowserApp.selectTab(tab); },
}
});
});
}
- NativeWindow.contextmenus.add(stringGetter("contextmenu.addToReadingList"),
- NativeWindow.contextmenus.linkOpenableContext,
- function(aTarget) {
- UITelemetry.addEvent("action.1", "contextmenu", null, "web_reading_list");
- UITelemetry.addEvent("save.1", "contextmenu", null, "reading_list");
-
- let url = NativeWindow.contextmenus._getLinkURL(aTarget);
- Messaging.sendRequestForResult({
- type: "Reader:AddToList",
- title: truncate(url, MAX_TITLE_LENGTH),
- url: truncate(url, MAX_URI_LENGTH),
- }).catch(Cu.reportError);
- });
-
NativeWindow.contextmenus.add(stringGetter("contextmenu.copyLink"),
NativeWindow.contextmenus.linkCopyableContext,
function(aTarget) {
UITelemetry.addEvent("action.1", "contextmenu", null, "web_copy_link");
let url = NativeWindow.contextmenus._getLinkURL(aTarget);
NativeWindow.contextmenus._copyStringToDefaultClipboard(url);
});
--- a/mobile/android/locales/en-US/chrome/browser.properties
+++ b/mobile/android/locales/en-US/chrome/browser.properties
@@ -237,17 +237,16 @@ selectionHelper.textCopied=Text copied t
# dialog/prompt.
casting.sendToDevice=Send to Device
casting.mirrorTab=Mirror Tab
casting.mirrorTabStop=Stop Mirror
# 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
contextmenu.bookmarkLink=Bookmark Link
contextmenu.copyEmailAddress=Copy Email Address
contextmenu.shareEmailAddress=Share Email Address
contextmenu.copyPhoneNumber=Copy Phone Number
contextmenu.sharePhoneNumber=Share Phone Number