summaryrefslogtreecommitdiff
path: root/src/xss
diff options
context:
space:
mode:
authorhackademix2018-08-27 00:31:37 +0200
committerhackademix2018-08-27 18:55:00 +0200
commite2b63cf98204a45f4c55ba446689d20e524c188c (patch)
treefa9739889307b55777d4b48326bbad38136dabf0 /src/xss
parent6e80d3f130773fc9a9123c5c4c2e97d63e90fa2a (diff)
downloadnoscript-e2b63cf98204a45f4c55ba446689d20e524c188c.tar.gz
noscript-e2b63cf98204a45f4c55ba446689d20e524c188c.tar.xz
noscript-e2b63cf98204a45f4c55ba446689d20e524c188c.zip
Further CSP refactoring and removal of obsolete fallbacks.
Diffstat (limited to 'src/xss')
-rw-r--r--src/xss/sanitizeName.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xss/sanitizeName.js b/src/xss/sanitizeName.js
index 4f36cbf..2a8acb6 100644
--- a/src/xss/sanitizeName.js
+++ b/src/xss/sanitizeName.js
@@ -1,4 +1,4 @@
-ns.on("perms", event => {
+ns.on("capabilities", event => {
if (ns.allows("script")) {
let name = ns.getWindowName();
if (/[<"'\`(=:]/.test(name)) {