tor-browser

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

fetch.http.html (9916B)


      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    <meta name="referrer" content="unsafe-url">
      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  </head>
     13  <body>
     14    <script>
     15      TestCase(
     16        [
     17          {
     18            "expectation": "origin",
     19            "origin": "cross-http",
     20            "redirection": "keep-origin",
     21            "source_context_list": [
     22              {
     23                "policyDeliveries": [
     24                  {
     25                    "deliveryType": "http-rp",
     26                    "key": "referrerPolicy",
     27                    "value": "origin"
     28                  }
     29                ],
     30                "sourceContextType": "worker-module"
     31              }
     32            ],
     33            "source_scheme": "http",
     34            "subresource": "fetch",
     35            "subresource_policy_deliveries": [],
     36            "test_description": "Referrer Policy: Expects origin for fetch to cross-http origin and keep-origin redirection from http context."
     37          },
     38          {
     39            "expectation": "origin",
     40            "origin": "cross-http",
     41            "redirection": "no-redirect",
     42            "source_context_list": [
     43              {
     44                "policyDeliveries": [
     45                  {
     46                    "deliveryType": "http-rp",
     47                    "key": "referrerPolicy",
     48                    "value": "origin"
     49                  }
     50                ],
     51                "sourceContextType": "worker-module"
     52              }
     53            ],
     54            "source_scheme": "http",
     55            "subresource": "fetch",
     56            "subresource_policy_deliveries": [],
     57            "test_description": "Referrer Policy: Expects origin for fetch to cross-http origin and no-redirect redirection from http context."
     58          },
     59          {
     60            "expectation": "origin",
     61            "origin": "cross-http",
     62            "redirection": "swap-origin",
     63            "source_context_list": [
     64              {
     65                "policyDeliveries": [
     66                  {
     67                    "deliveryType": "http-rp",
     68                    "key": "referrerPolicy",
     69                    "value": "origin"
     70                  }
     71                ],
     72                "sourceContextType": "worker-module"
     73              }
     74            ],
     75            "source_scheme": "http",
     76            "subresource": "fetch",
     77            "subresource_policy_deliveries": [],
     78            "test_description": "Referrer Policy: Expects origin for fetch to cross-http origin and swap-origin redirection from http context."
     79          },
     80          {
     81            "expectation": "origin",
     82            "origin": "cross-https",
     83            "redirection": "keep-origin",
     84            "source_context_list": [
     85              {
     86                "policyDeliveries": [
     87                  {
     88                    "deliveryType": "http-rp",
     89                    "key": "referrerPolicy",
     90                    "value": "origin"
     91                  }
     92                ],
     93                "sourceContextType": "worker-module"
     94              }
     95            ],
     96            "source_scheme": "http",
     97            "subresource": "fetch",
     98            "subresource_policy_deliveries": [],
     99            "test_description": "Referrer Policy: Expects origin for fetch to cross-https origin and keep-origin redirection from http context."
    100          },
    101          {
    102            "expectation": "origin",
    103            "origin": "cross-https",
    104            "redirection": "no-redirect",
    105            "source_context_list": [
    106              {
    107                "policyDeliveries": [
    108                  {
    109                    "deliveryType": "http-rp",
    110                    "key": "referrerPolicy",
    111                    "value": "origin"
    112                  }
    113                ],
    114                "sourceContextType": "worker-module"
    115              }
    116            ],
    117            "source_scheme": "http",
    118            "subresource": "fetch",
    119            "subresource_policy_deliveries": [],
    120            "test_description": "Referrer Policy: Expects origin for fetch to cross-https origin and no-redirect redirection from http context."
    121          },
    122          {
    123            "expectation": "origin",
    124            "origin": "cross-https",
    125            "redirection": "swap-origin",
    126            "source_context_list": [
    127              {
    128                "policyDeliveries": [
    129                  {
    130                    "deliveryType": "http-rp",
    131                    "key": "referrerPolicy",
    132                    "value": "origin"
    133                  }
    134                ],
    135                "sourceContextType": "worker-module"
    136              }
    137            ],
    138            "source_scheme": "http",
    139            "subresource": "fetch",
    140            "subresource_policy_deliveries": [],
    141            "test_description": "Referrer Policy: Expects origin for fetch to cross-https origin and swap-origin redirection from http context."
    142          },
    143          {
    144            "expectation": "origin",
    145            "origin": "same-http",
    146            "redirection": "keep-origin",
    147            "source_context_list": [
    148              {
    149                "policyDeliveries": [
    150                  {
    151                    "deliveryType": "http-rp",
    152                    "key": "referrerPolicy",
    153                    "value": "origin"
    154                  }
    155                ],
    156                "sourceContextType": "worker-module"
    157              }
    158            ],
    159            "source_scheme": "http",
    160            "subresource": "fetch",
    161            "subresource_policy_deliveries": [],
    162            "test_description": "Referrer Policy: Expects origin for fetch to same-http origin and keep-origin redirection from http context."
    163          },
    164          {
    165            "expectation": "origin",
    166            "origin": "same-http",
    167            "redirection": "no-redirect",
    168            "source_context_list": [
    169              {
    170                "policyDeliveries": [
    171                  {
    172                    "deliveryType": "http-rp",
    173                    "key": "referrerPolicy",
    174                    "value": "origin"
    175                  }
    176                ],
    177                "sourceContextType": "worker-module"
    178              }
    179            ],
    180            "source_scheme": "http",
    181            "subresource": "fetch",
    182            "subresource_policy_deliveries": [],
    183            "test_description": "Referrer Policy: Expects origin for fetch to same-http origin and no-redirect redirection from http context."
    184          },
    185          {
    186            "expectation": "origin",
    187            "origin": "same-http",
    188            "redirection": "swap-origin",
    189            "source_context_list": [
    190              {
    191                "policyDeliveries": [
    192                  {
    193                    "deliveryType": "http-rp",
    194                    "key": "referrerPolicy",
    195                    "value": "origin"
    196                  }
    197                ],
    198                "sourceContextType": "worker-module"
    199              }
    200            ],
    201            "source_scheme": "http",
    202            "subresource": "fetch",
    203            "subresource_policy_deliveries": [],
    204            "test_description": "Referrer Policy: Expects origin for fetch to same-http origin and swap-origin redirection from http context."
    205          },
    206          {
    207            "expectation": "origin",
    208            "origin": "same-https",
    209            "redirection": "keep-origin",
    210            "source_context_list": [
    211              {
    212                "policyDeliveries": [
    213                  {
    214                    "deliveryType": "http-rp",
    215                    "key": "referrerPolicy",
    216                    "value": "origin"
    217                  }
    218                ],
    219                "sourceContextType": "worker-module"
    220              }
    221            ],
    222            "source_scheme": "http",
    223            "subresource": "fetch",
    224            "subresource_policy_deliveries": [],
    225            "test_description": "Referrer Policy: Expects origin for fetch to same-https origin and keep-origin redirection from http context."
    226          },
    227          {
    228            "expectation": "origin",
    229            "origin": "same-https",
    230            "redirection": "no-redirect",
    231            "source_context_list": [
    232              {
    233                "policyDeliveries": [
    234                  {
    235                    "deliveryType": "http-rp",
    236                    "key": "referrerPolicy",
    237                    "value": "origin"
    238                  }
    239                ],
    240                "sourceContextType": "worker-module"
    241              }
    242            ],
    243            "source_scheme": "http",
    244            "subresource": "fetch",
    245            "subresource_policy_deliveries": [],
    246            "test_description": "Referrer Policy: Expects origin for fetch to same-https origin and no-redirect redirection from http context."
    247          },
    248          {
    249            "expectation": "origin",
    250            "origin": "same-https",
    251            "redirection": "swap-origin",
    252            "source_context_list": [
    253              {
    254                "policyDeliveries": [
    255                  {
    256                    "deliveryType": "http-rp",
    257                    "key": "referrerPolicy",
    258                    "value": "origin"
    259                  }
    260                ],
    261                "sourceContextType": "worker-module"
    262              }
    263            ],
    264            "source_scheme": "http",
    265            "subresource": "fetch",
    266            "subresource_policy_deliveries": [],
    267            "test_description": "Referrer Policy: Expects origin for fetch to same-https origin and swap-origin redirection from http context."
    268          }
    269        ],
    270        new SanityChecker()
    271      ).start();
    272    </script>
    273    <div id="log"></div>
    274  </body>
    275 </html>