<!DOCTYPE HTML><html><head><metacharset="utf-8"><title><!-- TODO: insert title here --></title><scriptsrc="/tests/SimpleTest/SimpleTest.js"></script><linkrel="stylesheet"href="/tests/SimpleTest/test.css"/><script>SimpleTest.waitForExplicitFinish();asyncfunctionrunTest(){letframe=document.getElementById("frame");letloaded=newPromise((resolve)=>{frame.addEventListener("load",()=>{letfailed=JSON.parse(frame.contentDocument.title);ok(failedinstanceofArray,"Frame's title is expected to be a JSON representation of the array of failed conditions.");is(failed.length,0,"No scripts should run in sandboxed iframe document created by XSLT.");for(letdescoffailed){info(desc);}resolve();},{once:true});});frame.src="file_bug1729517.xml";awaitloaded;letresults=newPromise((resolve)=>{addEventListener("message",({data})=>{resolve(data);},{once:true});});letwin=window.open(`https://example.com/tests/dom/xslt/tests/mochitest/file_bug1729517_2.xml`);for(const[header,result]ofawaitresults){is(result,"PASS",`${header} of the source document should apply to document created by XSLT.`);}win.close();SimpleTest.finish();}</script></head><bodyonload="runTest();"><pid="display"></p><iframesandbox="allow-same-origin"id="frame"></iframe><divid="content"style="display: none"></div><preid="test"></pre></body></html>