tor-browser

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

shared-storage-writable-iframe-in-fenced.tentative.https.sub.html (1087B)


      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    promise_test(async t => {
     11      const outerKey = token();
     12      let url = generateURL(
     13        '/shared-storage/resources/'
     14          + 'shared-storage-writable-iframe-in-fenced-inner.https.sub.html',
     15        [outerKey]);
     16      url = appendExpectedKeyAndValue(url, 'a', 'b');
     17 
     18      let fencedFrameConfig = await runSelectRawURL(url, true);
     19      assert_true(validateSelectURLResult(fencedFrameConfig, true));
     20 
     21      attachFencedFrame(fencedFrameConfig, 'opaque-ads');
     22      const result = await nextValueFromServer(outerKey);
     23      assert_equals(result, "writable_iframe_in_fenced_inner_loaded");
     24    }, 'test <iframe sharedstoragewritable src=[url]></iframe> via JS inside'
     25       + ' a fenced frame');
     26  </script>
     27 </body>