summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/misc.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/misc.js b/common/misc.js
index c06052a..e609fe0 100644
--- a/common/misc.js
+++ b/common/misc.js
@@ -85,8 +85,8 @@ const csp_header_regex =
* case of `file://' protocol).
*/
#IF MOZILLA
-const priv_reg = /^moz-extension:\/\/|^about:|^file:\/\/[^?#]*\/([?#]|$)/;
+const priv_reg = /^moz-extension:\/\/|^about:|^view-source:|^file:\/\/[^?#]*\/([?#]|$)/;
#ELIF CHROMIUM
-const priv_reg = /^chrome(-extension)?:\/\/|^about:|^file:\/\/[^?#]*\/([?#]|$)/;
+const priv_reg = /^chrome(-extension)?:\/\/|^about:|^view-source:|^file:\/\/[^?#]*\/([?#]|$)/;
#ENDIF
#EXPORT url => priv_reg.test(url) AS is_privileged_url