mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 806929: "Open in new private tab" for context-menus. [r=mfinkle]
--HG-- extra : rebase_source : e4070050b443d42505fab950c0d278e5c68eeed6
This commit is contained in:
parent
556b71143b
commit
1805aa07c2
@ -332,6 +332,17 @@ var BrowserApp = {
|
||||
NativeWindow.toast.show(label, "short");
|
||||
});
|
||||
|
||||
NativeWindow.contextmenus.add(Strings.browser.GetStringFromName("contextmenu.openInNewPrivateTab"),
|
||||
NativeWindow.contextmenus.linkOpenableContext,
|
||||
function(aTarget) {
|
||||
let url = NativeWindow.contextmenus._getLinkURL(aTarget);
|
||||
BrowserApp.addTab(url, { selected: false, parentId: BrowserApp.selectedTab.id, isPrivate: true });
|
||||
|
||||
let newtabStrings = Strings.browser.GetStringFromName("newprivatetabpopup.opened");
|
||||
let label = PluralForm.get(1, newtabStrings).replace("#1", 1);
|
||||
NativeWindow.toast.show(label, "short");
|
||||
});
|
||||
|
||||
NativeWindow.contextmenus.add(Strings.browser.GetStringFromName("contextmenu.copyLink"),
|
||||
NativeWindow.contextmenus.linkCopyableContext,
|
||||
function(aTarget) {
|
||||
|
@ -108,10 +108,11 @@ desktopNotification.useNotifications=Use Notifications
|
||||
desktopNotification.dontAskAgain=Don't ask again for this site
|
||||
|
||||
# New Tab Popup
|
||||
# LOCALIZATION NOTE (newtabpopup): Semi-colon list of plural forms.
|
||||
# LOCALIZATION NOTE (newtabpopup, newprivatetabpopup): Semi-colon list of plural forms.
|
||||
# See: http://developer.mozilla.org/en/docs/Localization_and_Plurals
|
||||
# #1 number of tabs
|
||||
newtabpopup.opened=New tab opened;#1 new tabs opened
|
||||
newprivatetabpopup.opened=New private tab opened;#1 new private tabs opened
|
||||
|
||||
# Error Console
|
||||
typeError=Error:
|
||||
@ -210,6 +211,7 @@ selectionHelper.textCopied=Text copied to clipboard
|
||||
|
||||
# Context menu
|
||||
contextmenu.openInNewTab=Open Link in New Tab
|
||||
contextmenu.openInNewPrivateTab=Open Link in New Private Tab
|
||||
contextmenu.share=Share
|
||||
contextmenu.copyLink=Copy Link
|
||||
contextmenu.shareLink=Share Link
|
||||
|
Loading…
Reference in New Issue
Block a user