tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

shared-storage-writable-img-idl-attribute-not-included.tentative.https.sub.html (1117B)


      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 t => {
     14      await loadSharedStorageImage({
     15        key: 'f', value: 'g',
     16        hasSharedStorageWritableAttribute: false,
     17        isSameOrigin: true,
     18      });
     19 
     20      await verifyKeyNotFoundForOrigin('f', sameOrigin);
     21    }, 'test <img src=[url]> via JS for same origin img');
     22 
     23    promise_test(async t => {
     24      await loadSharedStorageImage({
     25        key: 'h', value: 'i',
     26        hasSharedStorageWritableAttribute: false,
     27        isSameOrigin: false,
     28      });
     29 
     30      await verifyKeyNotFoundForOrigin('h', crossOrigin);
     31    }, 'test <img src=[url]> via JS for cross origin img');
     32  </script>
     33 </body>