tor-browser

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

file_iframe_sandbox_window_form_fail.html (527B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Test for Bug 766282</title>
      6  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      7 </head>
      8 
      9 <body onLoad="doStuff()">
     10  I should NOT be loaded by a form submit from a window opened from a sandbox without 'allow-forms'.
     11 </body>
     12 </html>
     13 
     14 <script>
     15  function doStuff() {
     16    window.opener.parent.postMessage({ok: false, desc: "documents sandboxed without allow-forms should NOT be able to submit forms"}, "*");
     17 
     18    self.close();
     19  }
     20 </script>