tor-browser

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

file_bug1729517_2.xml (1207B)


      1 <?xml version="1.0"?>
      2 <?xml-stylesheet type="text/xsl" href="#stylesheet"?>
      3 <!DOCTYPE root [
      4  <!ATTLIST xsl:stylesheet id ID #IMPLIED>
      5 ]>
      6 <root>
      7  <xsl:stylesheet id="stylesheet" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
      8  <xsl:template match="/">
      9    <html>
     10      <head>
     11        <title>[]</title>
     12        <script type="text/javascript">
     13          async function checkCOEPAndReferrer() {
     14            let results = new Map();
     15 
     16            let win = window.open();
     17            result = win.fetch("https://example.org/tests/dom/xslt/tests/mochitest/bug1729517_2.sjs", { mode: "no-cors" }).then(() => {
     18              return "FAIL";
     19            }, () => {
     20              return "PASS";
     21            });
     22            results.set("Cross-Origin-Embedder-Policy", await result);
     23            win.close();
     24 
     25            result = fetch("bug1729517_2.sjs").then((response) => {
     26              return response.text();
     27            });
     28            results.set("Referrer-Policy", await result || "FAIL");
     29 
     30            window.opener.postMessage(results, "*");
     31          }
     32        </script>
     33      </head>
     34      <body onload="checkCOEPAndReferrer()" />
     35    </html>
     36  </xsl:template>
     37 </xsl:stylesheet>
     38 </root>