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

View page source should respect private windows #4077

Merged
merged 1 commit into from
Sep 17, 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
7 changes: 6 additions & 1 deletion js/components/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,12 @@ class Frame extends ImmutableComponent {
case 'view-source':
const sourceLocation = UrlUtil.getViewSourceUrlFromUrl(this.webview.getURL())
if (sourceLocation !== null) {
windowActions.newFrame({location: sourceLocation}, true)
windowActions.newFrame({
location: sourceLocation,
isPrivate: this.frame.get('isPrivate'),
partitionNumber: this.frame.get('partitionNumber'),
parentFrameKey: this.frame.get('key')
}, true)
}
// TODO: Make the URL bar show the view-source: prefix
break
Expand Down