NoScript detects the domain of a site incorrectly when "document.domain" is set to wrong value with JavaScript. For example, if there's a page on "subdomain.example.com" with inline JavaScript setting " document.domain = "example.com"; ", and you have allowed "subdomain.example.com" but no "example.com" in NoScript whitelist, the inline JavaScript after the piece of Javascript setting "document.domain" will not function.
I've made a demo page: http://stc.hux.pp.ru/noscript-problem/
When I'm visiting http://zhidao.baidu.com/ (It's a Chinese site.), even if I allowed "http://zhidao.baidu.com" in my NoScript whitelist, the inline script in it does not function, because there's a piece of JavaScript in it:
Code: Select all
document.domain="baidu.com";