shared-storage-writable-iframe-content-attribute.tentative.https.sub.html (1226B)
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 <iframe src="/shared-storage/resources/shared-storage-write-notify-parent.py?write=set%3Bkey%3Dhello%3Bvalue%3Dworld" sharedstoragewritable></iframe> 9 <iframe src="/shared-storage/resources/shared-storage-write-notify-parent.py?write=set%3Bkey%3Dwont%3Bvalue%3Dset"></iframe> 10 <iframe src="/shared-storage/resources/shared-storage-write-notify-parent.py?write=set%3Bkey%3Dgoodnight%3Bvalue%3Dmoon" sharedstoragewritable></iframe> 11 <script> 12 const sameOrigin = new URL("", location.href).origin; 13 14 promise_test(async t => { 15 await verifyKeyValueForOrigin('hello', 'world', sameOrigin); 16 await verifyKeyNotFoundForOrigin('wont', sameOrigin); 17 await verifyKeyValueForOrigin('goodnight', 'moon', sameOrigin); 18 await deleteKeyForOrigin('hello', sameOrigin); 19 await deleteKeyForOrigin('goodnight', sameOrigin); 20 }, 'test <iframe sharedstoragewritable src=[url]> for same origin iframe'); 21 </script> 22 </body>