I noticed a problem when using Firefox 4 nightly (2011-01-22) + NoScript 2.0.9.6: sometimes setting document.domain has no effect (I believe this because the next line throws a Permission denied error). I cannot reproduce this problem with the NoScript extension disabled, or in any other browser (including FF 3.6.13). I can reproduce this with NoScript settings at their defaults.
Repro steps:
1) visit http://browsernode.com/whiteboard/?mode=http
2) whitelist "browsernode.com"; note that this page runs JavaScript from subdomains too
2) open Error Console; you should see:
Code: Select all
Error: Permission denied to access property 'href'
Source File: http://ml21162754532992419058.browsernode.com/xdrframe/?framenum=1&id=g554ahiwoq95vvmdsmvp142o
Line: 10
Code: Select all
<script>
document.domain = "browsernode.com";
var parentUrlSplit = parent.location.href.split("/"); // <--------------
Please let me know if you don't see the bug, and I'll post more environment info.
Thanks for taking a look,
Ivan