2 <?xml-stylesheet type="text/xsl" href="#stylesheet"?>
4 <!ATTLIST xsl:stylesheet id ID #IMPLIED>
7 <xsl:stylesheet id="stylesheet" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
8 <xsl:template match="/">
12 <script type="text/javascript">
13 async function checkCOEPAndReferrer() {
14 let results = new Map();
16 let win = window.open();
17 result = win.fetch("https://example.org/tests/dom/xslt/tests/mochitest/bug1729517_2.sjs", { mode: "no-cors" }).then(() => {
22 results.set("Cross-Origin-Embedder-Policy", await result);
25 result = fetch("bug1729517_2.sjs").then((response) => {
26 return response.text();
28 results.set("Referrer-Policy", await result || "FAIL");
30 window.opener.postMessage(results, "*");
34 <body onload="checkCOEPAndReferrer()" />