summaryrefslogtreecommitdiff
path: root/src/xss/sanitizeName.js
blob: 22185f412c019669f5f01cea89d09195344e1b81 (plain)
1
2
3
4
if (/[<"'\`(=:]/.test(window.name)) {
  console.log(`NoScript XSS filter sanitizing suspicious window.name "%s" on %s`, window.name, document.URL);
  window.name = "";
}