4 https://bugzilla.mozilla.org/show_bug.cgi?id=789713
11 <script type=
"application/javascript">
13 /** Test for Bug
789713 **/
16 var ifr = document.getElementById('ifr');
18 var doc = ifr.contentDocument;
19 var win = ifr.contentWindow;
21 var walker = doc.createTreeWalker(doc.body);
22 pass = pass && (walker.root === doc.body);
23 walker.foo =
"expando";
25 win.bar =
"another-expando";
27 // First, do the document.domain operation. This shouldn't crash.
28 document.domain =
"example.org";
30 // Now make sure we can still access properties on
"walker".
33 pass = pass && walker.foo ==
"expando";
38 // And make sure we can't access properties on
"win", because the
39 // document.domain change revoked the access.
43 } catch (e) { pass = pass && /Permission denied/.exec(e.message); }
44 window.parent.postMessage(pass, '*');
48 <iframe id=
"ifr" src=
"file_empty.html" onload=
"go()"></iframe>