shared-storage-writable-iframe-idl-attribute-not-included.tentative.https.sub.html (1287B)
1 <!doctype html> 2 <body> 3 <script src=/resources/testharness.js></script> 4 <script src=/resources/testharnessreport.js></script> 5 <script src=/common/utils.js></script> 6 <script src=/fenced-frame/resources/utils.js></script> 7 <script src=/shared-storage/resources/util.js></script> 8 <script src=/shared-storage/resources/util.sub.js></script> 9 <script> 10 const sameOrigin = new URL("", location.href).origin; 11 const crossOrigin = 'https://{{domains[www]}}:{{ports[https][0]}}'; 12 13 promise_test(async () => { 14 await navigateSharedStorageIframe({ 15 hasSharedStorageWritableAttribute: false, 16 rawWriteHeader: "set;key=e;value=f", 17 isSameOrigin: true, 18 expectSharedStorageWritableHeader: false, 19 }); 20 await verifyKeyNotFoundForOrigin('e', sameOrigin); 21 }, 'test <iframe src=[url]></iframe> via JS for same origin iframe'); 22 23 promise_test(async () => { 24 await navigateSharedStorageIframe({ 25 hasSharedStorageWritableAttribute: false, 26 rawWriteHeader: "set;key=g;value=h", 27 isSameOrigin: false, 28 expectSharedStorageWritableHeader: false, 29 }); 30 await verifyKeyNotFoundForOrigin('g', crossOrigin); 31 }, 'test <iframe src=[url]></iframe> via JS for cross origin iframe'); 32 </script> 33 </body>