tor-browser

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

xhr.http.html (6318B)


      1 <!DOCTYPE html>
      2 <!-- DO NOT EDIT! Generated by `common/security-features/tools/generate.py --spec referrer-policy/4K-1/` -->
      3 <html>
      4  <head>
      5    <meta charset="utf-8">
      6    <meta name="timeout" content="long">
      7    <meta name="referrer" content="no-referrer-when-downgrade">
      8    <script src="/resources/testharness.js"></script>
      9    <script src="/resources/testharnessreport.js"></script>
     10    <script src="/common/security-features/resources/common.sub.js"></script>
     11    <script src="../../../../generic/test-case.sub.js"></script>
     12    <script src="../../../generic/test-case.sub.js"></script>
     13  </head>
     14  <body>
     15    <script>
     16      TestCase(
     17        [
     18          {
     19            "expectation": "stripped-referrer",
     20            "origin": "cross-http",
     21            "redirection": "keep-origin",
     22            "source_context_list": [],
     23            "source_scheme": "http",
     24            "subresource": "xhr",
     25            "subresource_policy_deliveries": [],
     26            "test_description": "Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and keep-origin redirection from http context."
     27          },
     28          {
     29            "expectation": "stripped-referrer",
     30            "origin": "cross-http",
     31            "redirection": "no-redirect",
     32            "source_context_list": [],
     33            "source_scheme": "http",
     34            "subresource": "xhr",
     35            "subresource_policy_deliveries": [],
     36            "test_description": "Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and no-redirect redirection from http context."
     37          },
     38          {
     39            "expectation": "stripped-referrer",
     40            "origin": "cross-http",
     41            "redirection": "swap-origin",
     42            "source_context_list": [],
     43            "source_scheme": "http",
     44            "subresource": "xhr",
     45            "subresource_policy_deliveries": [],
     46            "test_description": "Referrer Policy: Expects stripped-referrer for xhr to cross-http origin and swap-origin redirection from http context."
     47          },
     48          {
     49            "expectation": "stripped-referrer",
     50            "origin": "cross-https",
     51            "redirection": "keep-origin",
     52            "source_context_list": [],
     53            "source_scheme": "http",
     54            "subresource": "xhr",
     55            "subresource_policy_deliveries": [],
     56            "test_description": "Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and keep-origin redirection from http context."
     57          },
     58          {
     59            "expectation": "stripped-referrer",
     60            "origin": "cross-https",
     61            "redirection": "no-redirect",
     62            "source_context_list": [],
     63            "source_scheme": "http",
     64            "subresource": "xhr",
     65            "subresource_policy_deliveries": [],
     66            "test_description": "Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and no-redirect redirection from http context."
     67          },
     68          {
     69            "expectation": "stripped-referrer",
     70            "origin": "cross-https",
     71            "redirection": "swap-origin",
     72            "source_context_list": [],
     73            "source_scheme": "http",
     74            "subresource": "xhr",
     75            "subresource_policy_deliveries": [],
     76            "test_description": "Referrer Policy: Expects stripped-referrer for xhr to cross-https origin and swap-origin redirection from http context."
     77          },
     78          {
     79            "expectation": "stripped-referrer",
     80            "origin": "same-http",
     81            "redirection": "keep-origin",
     82            "source_context_list": [],
     83            "source_scheme": "http",
     84            "subresource": "xhr",
     85            "subresource_policy_deliveries": [],
     86            "test_description": "Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context."
     87          },
     88          {
     89            "expectation": "stripped-referrer",
     90            "origin": "same-http",
     91            "redirection": "no-redirect",
     92            "source_context_list": [],
     93            "source_scheme": "http",
     94            "subresource": "xhr",
     95            "subresource_policy_deliveries": [],
     96            "test_description": "Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context."
     97          },
     98          {
     99            "expectation": "stripped-referrer",
    100            "origin": "same-http",
    101            "redirection": "swap-origin",
    102            "source_context_list": [],
    103            "source_scheme": "http",
    104            "subresource": "xhr",
    105            "subresource_policy_deliveries": [],
    106            "test_description": "Referrer Policy: Expects stripped-referrer for xhr to same-http origin and swap-origin redirection from http context."
    107          },
    108          {
    109            "expectation": "stripped-referrer",
    110            "origin": "same-https",
    111            "redirection": "keep-origin",
    112            "source_context_list": [],
    113            "source_scheme": "http",
    114            "subresource": "xhr",
    115            "subresource_policy_deliveries": [],
    116            "test_description": "Referrer Policy: Expects stripped-referrer for xhr to same-https origin and keep-origin redirection from http context."
    117          },
    118          {
    119            "expectation": "stripped-referrer",
    120            "origin": "same-https",
    121            "redirection": "no-redirect",
    122            "source_context_list": [],
    123            "source_scheme": "http",
    124            "subresource": "xhr",
    125            "subresource_policy_deliveries": [],
    126            "test_description": "Referrer Policy: Expects stripped-referrer for xhr to same-https origin and no-redirect redirection from http context."
    127          },
    128          {
    129            "expectation": "stripped-referrer",
    130            "origin": "same-https",
    131            "redirection": "swap-origin",
    132            "source_context_list": [],
    133            "source_scheme": "http",
    134            "subresource": "xhr",
    135            "subresource_policy_deliveries": [],
    136            "test_description": "Referrer Policy: Expects stripped-referrer for xhr to same-https origin and swap-origin redirection from http context."
    137          }
    138        ],
    139        new SanityChecker()
    140      ).start();
    141    </script>
    142    <div id="log"></div>
    143  </body>
    144 </html>