Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
michael@0 | 1 | # |
michael@0 | 2 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | |
michael@0 | 6 | # |
michael@0 | 7 | # This file defines the locations at which this HTTP server may be accessed. |
michael@0 | 8 | # It is referred to by the following page, so if this file moves, that page must |
michael@0 | 9 | # be modified accordingly: |
michael@0 | 10 | # |
michael@0 | 11 | # http://developer.mozilla.org/en/docs/Mochitest#How_do_I_test_issues_which_only_show_up_when_tests_are_run_across_domains.3F |
michael@0 | 12 | # |
michael@0 | 13 | # Empty lines and lines which begin with "#" are ignored and may be used for |
michael@0 | 14 | # storing comments. All other lines consist of an origin followed by whitespace |
michael@0 | 15 | # and a comma-separated list of options (if indeed any options are needed). |
michael@0 | 16 | # |
michael@0 | 17 | # The format of an origin is, referring to RFC 2396, a scheme (either "http" or |
michael@0 | 18 | # "https"), followed by "://", followed by a host, followed by ":", followed by |
michael@0 | 19 | # a port number. The colon and port number must be present even if the port |
michael@0 | 20 | # number is the default for the protocol. |
michael@0 | 21 | # |
michael@0 | 22 | # Unrecognized options are ignored. Recognized options are "primary" and |
michael@0 | 23 | # "privileged", "nocert", "cert=some_cert_nickname", "redir=hostname". |
michael@0 | 24 | # |
michael@0 | 25 | # "primary" denotes a location which is the canonical location of |
michael@0 | 26 | # the server; this location is the one assumed for requests which don't |
michael@0 | 27 | # otherwise identify a particular origin (e.g. HTTP/1.0 requests). |
michael@0 | 28 | # |
michael@0 | 29 | # "privileged" denotes a location which should have the ability to request |
michael@0 | 30 | # elevated privileges; the default is no privileges. |
michael@0 | 31 | # |
michael@0 | 32 | # "nocert" makes sense only for https:// hosts and means there is not |
michael@0 | 33 | # any certificate automatically generated for this host. |
michael@0 | 34 | # |
michael@0 | 35 | # "cert=nickname" tells the pgo server to use a particular certificate |
michael@0 | 36 | # for this host. The certificate is referenced by its nickname that must |
michael@0 | 37 | # not contain any spaces. The certificate key files (PKCS12 modules) |
michael@0 | 38 | # for custom certification are loaded from build/pgo/certs |
michael@0 | 39 | # directory. When new certificate is added to this dir pgo/ssltunnel |
michael@0 | 40 | # must be built then. This is only necessary for cases where we really do |
michael@0 | 41 | # want specific certs. |
michael@0 | 42 | # |
michael@0 | 43 | # "redir=hostname" tells the pgo server is only used for https:// |
michael@0 | 44 | # hosts while processing the CONNECT tunnel request. It responds |
michael@0 | 45 | # to the CONNECT with a 302 and redirection to the hostname instead |
michael@0 | 46 | # of connecting to the real back end and replying with a 200. This |
michael@0 | 47 | # mode exists primarily to ensure we don't allow a proxy to do that. |
michael@0 | 48 | # |
michael@0 | 49 | |
michael@0 | 50 | # |
michael@0 | 51 | # This is the primary location from which tests run. |
michael@0 | 52 | # |
michael@0 | 53 | http://mochi.test:8888 primary,privileged |
michael@0 | 54 | |
michael@0 | 55 | # |
michael@0 | 56 | # These are a common set of prefixes scattered across one TLD with two ports and |
michael@0 | 57 | # another TLD on a single port. |
michael@0 | 58 | # |
michael@0 | 59 | http://127.0.0.1:80 privileged |
michael@0 | 60 | http://127.0.0.1:8888 privileged |
michael@0 | 61 | http://test:80 privileged |
michael@0 | 62 | http://mochi.test:8888 privileged |
michael@0 | 63 | http://example.org:80 privileged |
michael@0 | 64 | http://test1.example.org:80 privileged |
michael@0 | 65 | http://test2.example.org:80 privileged |
michael@0 | 66 | http://sub1.test1.example.org:80 privileged |
michael@0 | 67 | http://sub1.test2.example.org:80 privileged |
michael@0 | 68 | http://sub2.test1.example.org:80 privileged |
michael@0 | 69 | http://sub2.test2.example.org:80 privileged |
michael@0 | 70 | http://example.org:8000 privileged |
michael@0 | 71 | http://test1.example.org:8000 privileged |
michael@0 | 72 | http://test2.example.org:8000 privileged |
michael@0 | 73 | http://sub1.test1.example.org:8000 privileged |
michael@0 | 74 | http://sub1.test2.example.org:8000 privileged |
michael@0 | 75 | http://sub2.test1.example.org:8000 privileged |
michael@0 | 76 | http://sub2.test2.example.org:8000 privileged |
michael@0 | 77 | http://example.com:80 privileged |
michael@0 | 78 | http://www.example.com:80 privileged |
michael@0 | 79 | http://test1.example.com:80 privileged |
michael@0 | 80 | http://test2.example.com:80 privileged |
michael@0 | 81 | http://sub1.test1.example.com:80 privileged |
michael@0 | 82 | http://sub1.test2.example.com:80 privileged |
michael@0 | 83 | http://sub2.test1.example.com:80 privileged |
michael@0 | 84 | http://sub2.test2.example.com:80 privileged |
michael@0 | 85 | http://noxul.example.com:80 privileged,noxul |
michael@0 | 86 | http://example.net:80 privileged |
michael@0 | 87 | |
michael@0 | 88 | https://example.com:443 privileged |
michael@0 | 89 | https://test1.example.com:443 privileged |
michael@0 | 90 | https://test2.example.com:443 privileged |
michael@0 | 91 | https://sub1.test1.example.com:443 privileged |
michael@0 | 92 | https://sub1.test2.example.com:443 privileged |
michael@0 | 93 | https://sub2.test1.example.com:443 privileged |
michael@0 | 94 | https://sub2.test2.example.com:443 privileged |
michael@0 | 95 | https://nocert.example.com:443 privileged,nocert |
michael@0 | 96 | https://self-signed.example.com:443 privileged,cert=selfsigned |
michael@0 | 97 | https://untrusted.example.com:443 privileged,cert=untrusted |
michael@0 | 98 | https://expired.example.com:443 privileged,cert=expired |
michael@0 | 99 | https://requestclientcert.example.com:443 privileged,clientauth=request |
michael@0 | 100 | https://requireclientcert.example.com:443 privileged,clientauth=require |
michael@0 | 101 | https://mismatch.expired.example.com:443 privileged,cert=expired |
michael@0 | 102 | https://mismatch.untrusted.example.com:443 privileged,cert=untrusted |
michael@0 | 103 | https://untrusted-expired.example.com:443 privileged,cert=untrustedandexpired |
michael@0 | 104 | https://mismatch.untrusted-expired.example.com:443 privileged,cert=untrustedandexpired |
michael@0 | 105 | |
michael@0 | 106 | # This is here so that we don't load the default live bookmark over |
michael@0 | 107 | # the network in every test suite. |
michael@0 | 108 | http://fxfeeds.mozilla.com:80 |
michael@0 | 109 | |
michael@0 | 110 | # Prevent safebrowsing tests from hitting the network for its-a-trap.html and |
michael@0 | 111 | # its-an-attack.html. |
michael@0 | 112 | http://www.itisatrap.org:80 |
michael@0 | 113 | |
michael@0 | 114 | # |
michael@0 | 115 | # These are subdomains of <ält.example.org>. |
michael@0 | 116 | # |
michael@0 | 117 | http://sub1.xn--lt-uia.example.org:8000 privileged |
michael@0 | 118 | http://sub2.xn--lt-uia.example.org:80 privileged |
michael@0 | 119 | http://xn--exmple-cua.test:80 privileged |
michael@0 | 120 | http://sub1.xn--exmple-cua.test:80 privileged |
michael@0 | 121 | http://xn--exaple-kqf.test:80 privileged |
michael@0 | 122 | http://sub1.xn--exaple-kqf.test:80 privileged |
michael@0 | 123 | |
michael@0 | 124 | https://xn--hxajbheg2az3al.xn--jxalpdlp:443 privileged |
michael@0 | 125 | https://sub1.xn--hxajbheg2az3al.xn--jxalpdlp:443 privileged |
michael@0 | 126 | |
michael@0 | 127 | # |
michael@0 | 128 | # These are subdomains of <παράδειγμα.δοκιμή>, the Greek IDN for example.test. |
michael@0 | 129 | # |
michael@0 | 130 | http://xn--hxajbheg2az3al.xn--jxalpdlp:80 privileged |
michael@0 | 131 | http://sub1.xn--hxajbheg2az3al.xn--jxalpdlp:80 privileged |
michael@0 | 132 | |
michael@0 | 133 | # Bug 413909 test host |
michael@0 | 134 | https://bug413909.xn--hxajbheg2az3al.xn--jxalpdlp:443 privileged,cert=bug413909cert |
michael@0 | 135 | |
michael@0 | 136 | # |
michael@0 | 137 | # These hosts are used in tests which exercise privilege-granting functionality; |
michael@0 | 138 | # we could reuse some of the names above, but specific names make it easier to |
michael@0 | 139 | # distinguish one from the other in tests (as well as what functionality is |
michael@0 | 140 | # being tested). |
michael@0 | 141 | # |
michael@0 | 142 | http://sectest1.example.org:80 privileged |
michael@0 | 143 | http://sub.sectest2.example.org:80 privileged |
michael@0 | 144 | http://sectest2.example.org:80 |
michael@0 | 145 | http://sub.sectest1.example.org:80 |
michael@0 | 146 | |
michael@0 | 147 | https://sectest1.example.org:443 privileged |
michael@0 | 148 | https://sub.sectest2.example.org:443 privileged |
michael@0 | 149 | https://sectest2.example.org:443 |
michael@0 | 150 | https://sub.sectest1.example.org:443 |
michael@0 | 151 | |
michael@0 | 152 | # |
michael@0 | 153 | # Used while testing the url-classifier |
michael@0 | 154 | # |
michael@0 | 155 | http://malware.example.com:80 |
michael@0 | 156 | |
michael@0 | 157 | # Bug 483437, 484111 |
michael@0 | 158 | https://www.bank1.com:443 privileged,cert=escapeattack1 |
michael@0 | 159 | https://www.bank2.com:443 privileged,cert=escapeattack2 |
michael@0 | 160 | |
michael@0 | 161 | # |
michael@0 | 162 | # CONNECT for redirproxy results in a 302 redirect to |
michael@0 | 163 | # test1.example.com |
michael@0 | 164 | # |
michael@0 | 165 | https://redirproxy.example.com:443 privileged,redir=test1.example.com |
michael@0 | 166 | |
michael@0 | 167 | # Host used for IndexedDB Quota testing |
michael@0 | 168 | http://bug704464-1.example.com:80 privileged |
michael@0 | 169 | http://bug704464-2.example.com:80 privileged |
michael@0 | 170 | http://bug704464-3.example.com:80 privileged |
michael@0 | 171 | http://bug702292.example.com:80 privileged |
michael@0 | 172 | |
michael@0 | 173 | # W3C hosts. |
michael@0 | 174 | # See http://www.w3.org/wiki/Testing/Requirements#The_Web_test_server_must_be_available_through_different_domain_names |
michael@0 | 175 | http://w3c-test.org:80 |
michael@0 | 176 | http://w3c-test.org:81 |
michael@0 | 177 | http://w3c-test.org:82 |
michael@0 | 178 | http://w3c-test.org:83 |
michael@0 | 179 | http://www.w3c-test.org:80 |
michael@0 | 180 | http://www.w3c-test.org:81 |
michael@0 | 181 | http://www.w3c-test.org:82 |
michael@0 | 182 | http://www.w3c-test.org:83 |
michael@0 | 183 | http://www1.w3c-test.org:80 |
michael@0 | 184 | http://www1.w3c-test.org:81 |
michael@0 | 185 | http://www1.w3c-test.org:82 |
michael@0 | 186 | http://www1.w3c-test.org:83 |
michael@0 | 187 | http://www2.w3c-test.org:80 |
michael@0 | 188 | http://www2.w3c-test.org:81 |
michael@0 | 189 | http://www2.w3c-test.org:82 |
michael@0 | 190 | http://www2.w3c-test.org:83 |
michael@0 | 191 | # http://天気の良い日.w3c-test.org |
michael@0 | 192 | http://xn--n8j6ds53lwwkrqhv28a.w3c-test.org:80 |
michael@0 | 193 | http://xn--n8j6ds53lwwkrqhv28a.w3c-test.org:81 |
michael@0 | 194 | http://xn--n8j6ds53lwwkrqhv28a.w3c-test.org:82 |
michael@0 | 195 | http://xn--n8j6ds53lwwkrqhv28a.w3c-test.org:83 |
michael@0 | 196 | # http://élève.w3c-test.org |
michael@0 | 197 | http://xn--lve-6lad.w3c-test.org:80 |
michael@0 | 198 | http://xn--lve-6lad.w3c-test.org:81 |
michael@0 | 199 | http://xn--lve-6lad.w3c-test.org:82 |
michael@0 | 200 | http://xn--lve-6lad.w3c-test.org:83 |
michael@0 | 201 | # HTTPS versions of the above |
michael@0 | 202 | https://w3c-test.org:443 |
michael@0 | 203 | https://www.w3c-test.org:443 |
michael@0 | 204 | https://www1.w3c-test.org:443 |
michael@0 | 205 | https://www2.w3c-test.org:443 |
michael@0 | 206 | https://xn--n8j6ds53lwwkrqhv28a.w3c-test.org:443 |
michael@0 | 207 | https://xn--lve-6lad.w3c-test.org:443 |
michael@0 | 208 | http://test.w3.org:80 |
michael@0 | 209 | |
michael@0 | 210 | # Hosts for testing TLD-based fallback encoding |
michael@0 | 211 | http://example.tw:80 privileged |
michael@0 | 212 | http://example.cn:80 privileged |
michael@0 | 213 | http://example.co.jp:80 privileged |
michael@0 | 214 | http://example.fi:80 privileged |
michael@0 | 215 | |
michael@0 | 216 | # Hosts for testing marketplace apps installations |
michael@0 | 217 | https://marketplace.firefox.com:443 privileged |