tor-browser

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

test_bug639362.html (924B)


      1 <!DOCTYPE html>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=639362
      5 -->
      6 <head>
      7  <title>Test for Bug 639362</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     10 </head>
     11 <body>
     12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=639362">Mozilla Bug 639362</a>
     13 <p id="display"></p>
     14 <div id="content" style="display: none">
     15 
     16 </div>
     17 <script type="application/javascript">
     18 SimpleTest.waitForExplicitFinish();
     19 
     20 function loaded(iframe) {
     21  is(SpecialPowers.wrap(iframe).contentWindow.location.href, iframe.src, "should load correct URL");
     22  is(SpecialPowers.wrap(iframe).contentDocument.body.textContent, "CACHE MANIFEST", "text/cache-manifest should be treated as text");
     23  SimpleTest.finish();
     24 }
     25 </script>
     26 <iframe src="data:text/cache-manifest,CACHE MANIFEST" onload="loaded(this);"></iframe>
     27 </body>
     28 </html>