tor-browser

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

run-url-selection-operation-without-add-module.tentative.https.sub.html (1071B)


      1 <!doctype html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 
      5 <body>
      6 <script>
      7 'use strict';
      8 
      9 for (const resolve_to_config of [true, false]) {
     10  promise_test(async t => {
     11    return promise_rejects_dom(t, "OperationError",
     12      sharedStorage.selectURL(
     13          "test-url-selection-operation",
     14          [{url: "/shared-storage/resources/frame0.html"}],
     15          {resolveToConfig: resolve_to_config, keepAlive: true}));
     16  }, 'sharedStorage.selectURL() without addModule, ' +
     17     'selectURL() resolves to ' + (resolve_to_config ? 'config' : 'urn:uuid'));
     18 
     19  promise_test(async t => {
     20    return promise_rejects_dom(t, "OperationError",
     21      sharedStorage.worklet.selectURL(
     22          "test-url-selection-operation",
     23          [{url: "/shared-storage/resources/frame0.html"}],
     24          {resolveToConfig: resolve_to_config, keepAlive: true}));
     25  }, 'sharedStorage.worklet.selectURL() without addModule, ' +
     26     'selectURL() resolves to ' + (resolve_to_config ? 'config' : 'urn:uuid'));
     27 }
     28 
     29 </script>
     30 </body>