tor-browser

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

fetch.http.html (7584B)


      1 <!DOCTYPE html>
      2 <!-- DO NOT EDIT! Generated by `common/security-features/tools/generate.py --spec referrer-policy/` -->
      3 <html>
      4  <head>
      5    <meta charset="utf-8">
      6    <meta name="timeout" content="long">
      7    <script src="/resources/testharness.js"></script>
      8    <script src="/resources/testharnessreport.js"></script>
      9    <script src="/common/security-features/resources/common.sub.js"></script>
     10    <script src="../../../generic/test-case.sub.js"></script>
     11  </head>
     12  <body>
     13    <script>
     14      TestCase(
     15        [
     16          {
     17            "expectation": "origin",
     18            "origin": "cross-http",
     19            "redirection": "keep-origin",
     20            "source_context_list": [
     21              {
     22                "policyDeliveries": [],
     23                "sourceContextType": "srcdoc"
     24              }
     25            ],
     26            "source_scheme": "http",
     27            "subresource": "fetch",
     28            "subresource_policy_deliveries": [],
     29            "test_description": "Referrer Policy: Expects origin for fetch to cross-http origin and keep-origin redirection from http context."
     30          },
     31          {
     32            "expectation": "origin",
     33            "origin": "cross-http",
     34            "redirection": "no-redirect",
     35            "source_context_list": [
     36              {
     37                "policyDeliveries": [],
     38                "sourceContextType": "srcdoc"
     39              }
     40            ],
     41            "source_scheme": "http",
     42            "subresource": "fetch",
     43            "subresource_policy_deliveries": [],
     44            "test_description": "Referrer Policy: Expects origin for fetch to cross-http origin and no-redirect redirection from http context."
     45          },
     46          {
     47            "expectation": "origin",
     48            "origin": "cross-http",
     49            "redirection": "swap-origin",
     50            "source_context_list": [
     51              {
     52                "policyDeliveries": [],
     53                "sourceContextType": "srcdoc"
     54              }
     55            ],
     56            "source_scheme": "http",
     57            "subresource": "fetch",
     58            "subresource_policy_deliveries": [],
     59            "test_description": "Referrer Policy: Expects origin for fetch to cross-http origin and swap-origin redirection from http context."
     60          },
     61          {
     62            "expectation": "origin",
     63            "origin": "cross-https",
     64            "redirection": "keep-origin",
     65            "source_context_list": [
     66              {
     67                "policyDeliveries": [],
     68                "sourceContextType": "srcdoc"
     69              }
     70            ],
     71            "source_scheme": "http",
     72            "subresource": "fetch",
     73            "subresource_policy_deliveries": [],
     74            "test_description": "Referrer Policy: Expects origin for fetch to cross-https origin and keep-origin redirection from http context."
     75          },
     76          {
     77            "expectation": "origin",
     78            "origin": "cross-https",
     79            "redirection": "no-redirect",
     80            "source_context_list": [
     81              {
     82                "policyDeliveries": [],
     83                "sourceContextType": "srcdoc"
     84              }
     85            ],
     86            "source_scheme": "http",
     87            "subresource": "fetch",
     88            "subresource_policy_deliveries": [],
     89            "test_description": "Referrer Policy: Expects origin for fetch to cross-https origin and no-redirect redirection from http context."
     90          },
     91          {
     92            "expectation": "origin",
     93            "origin": "cross-https",
     94            "redirection": "swap-origin",
     95            "source_context_list": [
     96              {
     97                "policyDeliveries": [],
     98                "sourceContextType": "srcdoc"
     99              }
    100            ],
    101            "source_scheme": "http",
    102            "subresource": "fetch",
    103            "subresource_policy_deliveries": [],
    104            "test_description": "Referrer Policy: Expects origin for fetch to cross-https origin and swap-origin redirection from http context."
    105          },
    106          {
    107            "expectation": "origin",
    108            "origin": "same-http",
    109            "redirection": "swap-origin",
    110            "source_context_list": [
    111              {
    112                "policyDeliveries": [],
    113                "sourceContextType": "srcdoc"
    114              }
    115            ],
    116            "source_scheme": "http",
    117            "subresource": "fetch",
    118            "subresource_policy_deliveries": [],
    119            "test_description": "Referrer Policy: Expects origin for fetch to same-http origin and swap-origin redirection from http context."
    120          },
    121          {
    122            "expectation": "origin",
    123            "origin": "same-https",
    124            "redirection": "keep-origin",
    125            "source_context_list": [
    126              {
    127                "policyDeliveries": [],
    128                "sourceContextType": "srcdoc"
    129              }
    130            ],
    131            "source_scheme": "http",
    132            "subresource": "fetch",
    133            "subresource_policy_deliveries": [],
    134            "test_description": "Referrer Policy: Expects origin for fetch to same-https origin and keep-origin redirection from http context."
    135          },
    136          {
    137            "expectation": "origin",
    138            "origin": "same-https",
    139            "redirection": "no-redirect",
    140            "source_context_list": [
    141              {
    142                "policyDeliveries": [],
    143                "sourceContextType": "srcdoc"
    144              }
    145            ],
    146            "source_scheme": "http",
    147            "subresource": "fetch",
    148            "subresource_policy_deliveries": [],
    149            "test_description": "Referrer Policy: Expects origin for fetch to same-https origin and no-redirect redirection from http context."
    150          },
    151          {
    152            "expectation": "origin",
    153            "origin": "same-https",
    154            "redirection": "swap-origin",
    155            "source_context_list": [
    156              {
    157                "policyDeliveries": [],
    158                "sourceContextType": "srcdoc"
    159              }
    160            ],
    161            "source_scheme": "http",
    162            "subresource": "fetch",
    163            "subresource_policy_deliveries": [],
    164            "test_description": "Referrer Policy: Expects origin for fetch to same-https origin and swap-origin redirection from http context."
    165          },
    166          {
    167            "expectation": "stripped-referrer",
    168            "origin": "same-http",
    169            "redirection": "keep-origin",
    170            "source_context_list": [
    171              {
    172                "policyDeliveries": [],
    173                "sourceContextType": "srcdoc"
    174              }
    175            ],
    176            "source_scheme": "http",
    177            "subresource": "fetch",
    178            "subresource_policy_deliveries": [],
    179            "test_description": "Referrer Policy: Expects stripped-referrer for fetch to same-http origin and keep-origin redirection from http context."
    180          },
    181          {
    182            "expectation": "stripped-referrer",
    183            "origin": "same-http",
    184            "redirection": "no-redirect",
    185            "source_context_list": [
    186              {
    187                "policyDeliveries": [],
    188                "sourceContextType": "srcdoc"
    189              }
    190            ],
    191            "source_scheme": "http",
    192            "subresource": "fetch",
    193            "subresource_policy_deliveries": [],
    194            "test_description": "Referrer Policy: Expects stripped-referrer for fetch to same-http origin and no-redirect redirection from http context."
    195          }
    196        ],
    197        new SanityChecker()
    198      ).start();
    199    </script>
    200    <div id="log"></div>
    201  </body>
    202 </html>