tor-browser

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

test_bug1382035-2.html (1059B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1382035
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 1382035</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11  <script type="application/javascript">
     12 
     13  /** Test for Bug 1382035 */
     14  addLoadEvent(function() {
     15    is(frames[0].document.documentElement.textContent, "test",
     16       "Should not navigate to a stringified Promise");
     17    SimpleTest.finish();
     18  });
     19  SimpleTest.waitForExplicitFinish();
     20  </script>
     21 </head>
     22 <body>
     23 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1382035">Mozilla Bug 1382035</a>
     24 <p id="display"></p>
     25 <div id="content" style="display: none">
     26  <iframe>
     27  </iframe>
     28  <script>
     29    var blob = new Blob(["test"], { type: "text/html" });
     30    var url = URL.createObjectURL(blob);
     31    frames[0].location.href = url;
     32    frames[0].location.href = "javascript: Promise.resolve()";
     33  </script>
     34 </div>
     35 <pre id="test">
     36 </pre>
     37 </body>
     38 </html>