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

Commit

Permalink
Merge pull request #4077 from Sh1d0w/hotfix/issue-4069
Browse files Browse the repository at this point in the history
View page source should respect private windows
  • Loading branch information
bbondy authored Sep 17, 2016
2 parents e5b2b14 + e031f9c commit 2384bb6
Showing 1 changed file with 6 additions and 1 deletion.
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

0 comments on commit 2384bb6

Please sign in to comment.