tor-browser

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

test-csp-violation-frame-ancestor-parent.html (546B)


      1 <html>
      2  <head>
      3    <title>CSP frame-ancestors Violation Test
      4    </title>
      5    <base href="https://evil.com/">
      6  </head>
      7  <body>
      8    <iframe src="https://example.com/browser/devtools/client/webconsole/test/browser/test-csp-violation-frame-ancestor-child.html"></iframe>
      9  </body>
     10  <script>
     11    "use strict";
     12    window.violate = () => {
     13      const iframe = document.querySelector("iframe");
     14      const src = iframe.src;
     15      iframe.src = "";
     16      requestAnimationFrame(() => {
     17        iframe.src = src;
     18      });
     19    };
     20  </script>
     21 </html>