tor-browser

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

test_bug1022869.html (1180B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1022869
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 1022869</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11  <iframe srcdoc="<html><body>"></iframe>
     12  <script type="application/javascript">
     13 
     14  var f = document.getElementsByTagName("iframe")[0];
     15 
     16  SimpleTest.waitForExplicitFinish();
     17 
     18  /** Test for Bug 1022869 */
     19  function startTest() {
     20    var div = f.contentDocument.createElement("div");
     21    div.innerHTML = "<template>x";
     22    is(div.firstChild.content.ownerDocument.parentNode, null, "Should be able to access property on document.");
     23    f.contentDocument.open();
     24    is(div.firstChild.content.ownerDocument.parentNode, null, "Should be able to access property on document after document.open().");
     25 
     26    SimpleTest.finish();
     27  }
     28 
     29  </script>
     30 </head>
     31 <body onload="startTest()">
     32 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1022869">Mozilla Bug 1022869</a>
     33 <p id="display"></p>
     34 <div id="content" style="display: none">
     35 </div>
     36 <pre id="test">
     37 </pre>
     38 </body>
     39 </html>