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 #15078 from bsclifton/fix-view-source
Browse files Browse the repository at this point in the history
Allow `view-source` as openable by context menu
  • Loading branch information
bsclifton committed Aug 22, 2018
1 parent ef287a8 commit 18efca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/lib/urlutil.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ const UrlUtil = {
const protocol = urlParse(url).protocol
// file: is untrusted but handled in a separate check
return ['http:', 'https:', 'ws:', 'wss:', 'magnet:', 'file:', 'data:',
'blob:', 'about:', 'chrome-extension:'].includes(protocol)
'blob:', 'about:', 'chrome-extension:', 'view-source:'].includes(protocol)
},

/**
Expand Down

0 comments on commit 18efca1

Please sign in to comment.