4 https://bugzilla.mozilla.org/show_bug.cgi?id=1041731
8 <title>Test for Bug
1041731</title>
9 <script src=
"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"chrome://mochikit/content/tests/SimpleTest/test.css"/>
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1041731">Mozilla Bug
1041731</a>
15 <div id=
"content" style=
"display: none">
16 <iframe id=
"t" src=
"http://example.org/tests/dom/bindings/test/file_document_location_set_via_xray.html"></iframe>
19 <script type=
"application/javascript">
21 /** Test for Bug
1041731 **/
24 var loc = document.getElementById(
"t").contentWindow.document.location;
25 is(loc.toString, loc.toString,
"Unforgeable method on the Xray should be cached");
29 SimpleTest.waitForExplicitFinish();