Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Remove Open in new tab from context menu while in a private browsing tab #5671

Merged
merged 1 commit into from
Nov 16, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion js/contextMenus.js
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,10 @@ function mainTemplateInit (nodeProps, frame) {
const isAboutPage = aboutUrls.has(frame.get('location'))

if (isLink) {
template.push(openInNewTabMenuItem(nodeProps.linkURL, frame.get('isPrivate'), frame.get('partitionNumber'), frame.get('key')),
if (!frame.get('isPrivate')) {
template.push(openInNewTabMenuItem(nodeProps.linkURL, frame.get('isPrivate'), frame.get('partitionNumber'), frame.get('key')))
}
template.push(
openInNewPrivateTabMenuItem(nodeProps.linkURL, frame.get('key')),
openInNewWindowMenuItem(nodeProps.linkURL, frame.get('isPrivate'), frame.get('partitionNumber')),
CommonMenu.separatorMenuItem,
Expand Down