tor-browser

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

helper.js (450B)


      1 'use strict';
      2 
      3 /**
      4 * Returns a URL to a document that can be used to initialize an iframe to test
      5 * whether the Permissions Policy "deferred-fetch" or "deferred-fetch-minimal"
      6 * is enabled.
      7 */
      8 function getDeferredFetchPolicyInIframeHelperUrl(iframeOrigin) {
      9  if (!iframeOrigin.endsWith('/')) {
     10    iframeOrigin += '/';
     11  }
     12  return `${
     13      iframeOrigin}fetch/fetch-later/permissions-policy/resources/permissions-policy-deferred-fetch.html`;
     14 }