tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_document_location_via_xray_cached.html (1020B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1041731
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      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"/>
     11 </head>
     12 <body>
     13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1041731">Mozilla Bug 1041731</a>
     14 <p id="display"></p>
     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>
     17 </div>
     18 <pre id="test">
     19 <script type="application/javascript">
     20 
     21 /** Test for Bug 1041731 */
     22 
     23 function test() {
     24  var loc = document.getElementById("t").contentWindow.document.location;
     25  is(loc.toString, loc.toString, "Unforgeable method on the Xray should be cached");
     26  SimpleTest.finish();
     27 }
     28 
     29 SimpleTest.waitForExplicitFinish();
     30 addLoadEvent(test);
     31 
     32 </script>
     33 </pre>
     34 </body>
     35 </html>