tor-browser

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

file_iframe_sandbox_c_if8.html (801B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Test for Bug 341604</title>
      6  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      7 </head>
      8 <script type="text/javascript">
      9  function ok(result, desc) {
     10    window.parent.postMessage({ok: result, desc}, "*");
     11  }
     12 
     13  function doStuff() {
     14    var thing = indexedDB.open("sandbox");
     15 
     16    thing.onerror = function(event) {
     17      ok(false, "documents sandboxed with allow-same-origin SHOULD be able to access indexedDB");
     18    };
     19    thing.onsuccess = function(event) {
     20      ok(true, "documents sandboxed with allow-same-origin SHOULD  be able to access indexedDB");
     21    };  
     22  }
     23 </script>
     24 <body onLoad='doStuff();'>
     25  I am sandboxed but with "allow-scripts allow-same-origin"
     26 </body>
     27 </html>