tor-browser

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

meta-http-equiv.https.html (978B)


      1 <!doctype html>
      2 <meta http-equiv="Cross-Origin-Embedder-Policy" content="require-corp"><!-- should not be supported -->
      3 <title>Cross-Origin-Embedder-Policy in &lt;meta http-equiv></title>
      4 <script src=/resources/testharness.js></script>
      5 <script src=/resources/testharnessreport.js></script>
      6 <div id=log></div>
      7 <script>
      8 async_test(t => {
      9  const frame = document.createElement("iframe");
     10  t.add_cleanup(() => frame.remove());
     11  frame.src = "/common/blank.html";
     12  document.body.append(frame);
     13  assert_equals(frame.contentDocument.URL, "about:blank");
     14  assert_equals(frame.contentDocument.body.localName, "body");
     15  frame.onload = t.step_func_done(() => {
     16    assert_equals(frame.contentDocument.URL, `${location.protocol}//${location.host}/common/blank.html`);
     17    assert_equals(frame.contentDocument.body.localName, "body");
     18  });
     19 }, `<meta http-equiv="Cross-Origin-Embedder-Policy" content="require-corp"> top-level: navigating a frame to "none" should not fail`);
     20 </script>