tor-browser

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

csp-frame-src-allowed.https.html (719B)


      1 <!DOCTYPE html>
      2 <meta http-equiv="Content-Security-Policy" content="frame-src 'self'">
      3 <title>Test Content-Security-Policy fenced-frame-src falling back to frame-src</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="resources/utils.js"></script>
      7 <script src="/common/utils.js"></script>
      8 
      9 <body>
     10 <script>
     11 const key = token();
     12 
     13 promise_test(async () => {
     14  attachFencedFrame(generateURL(
     15      "resources/csp-frame-src-allowed-inner.html",
     16      [key]));
     17  const result = await nextValueFromServer(key);
     18  assert_equals(result, "loaded",
     19                "The fenced frame is loaded as expected");
     20 }, "csp-frame-src-allowed");
     21 </script>
     22 </body>