tor-browser

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

reinsert.https.html (1090B)


      1 <!DOCTYPE html>
      2 <title>Test Content Security Policy</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="resources/utils.js"></script>
      6 
      7 <body>
      8 
      9 <script>
     10 promise_test(async () => {
     11  const frame = attachFencedFrame("resources/dummy.html");
     12  document.body.removeChild(frame);
     13  document.body.append(frame);
     14 
     15 }, "Fenced frames should not crash and burn when re-inserting a fenced frame");
     16 
     17 promise_test(async () => {
     18  const frame = document.createElement("iframe");
     19  frame.sandbox = "allow-scripts allow-same-origin";
     20  document.body.appendChild(frame);
     21  const fenced_frame = frame.contentDocument.createElement("fencedframe");
     22  fenced_frame.src = "resources/dummy.html";
     23  frame.contentDocument.body.appendChild(fenced_frame);
     24  frame.contentDocument.body.removeChild(fenced_frame);
     25  frame.contentDocument.body.append(fenced_frame);
     26 }, "Fenced frames should not crash and burn when re-inserting a fenced frame" +
     27   "in a sandboxed iframe which doesn't support child fenced frames.");
     28 
     29 </script>
     30 
     31 </body>
     32 </html>