xslt.https.sub.html (899B)
1 <!DOCTYPE html> 2 3 <link rel="author" href="mtrzos@google.com" title="Maciek Trzos"> 4 <script src=/resources/testharness.js></script> 5 <script src=/resources/testharnessreport.js></script> 6 <script src=/fetch/metadata/resources/helper.js></script> 7 <script src=/common/utils.js></script> 8 <script> 9 // Open a window with XML document which loads resources via <?xml-stylesheet/> tag 10 let nonce = token(); 11 let w = window.open("resources/xslt-test.sub.xml?token=" + nonce); 12 window.addEventListener('message', function(e) { 13 if (e.source != w) 14 return; 15 16 // Only testing same-origin XSLT because same-site and cross-site XSLT is blocked. 17 promise_test(t => { 18 let expected = {"site":"same-origin", "user":"", "mode": "same-origin", "dest": "xslt"}; 19 return validate_expectations("xslt-same-origin" + nonce, expected); 20 }, "Same-Origin xslt"); 21 22 w.close(); 23 }); 24 25 </script>