gecko-dev/caps/tests/unit
Mike Conley 063ec88ba4 Bug 1760417 - Make ContentPrincipal more reliable for URIs in the form of scheme://.origin.tld. r=nika,ckerschb
Attempting to get the siteOrigin for a URI of something like "https://.mozilla.org"
was returning NS_ERROR_ILLEGAL_VALUE, which caused breakage in parts of the browser
UI when trying to initialize a window to point at that URI.

It looks like the NS_ERROR_ILLEGAL_VALUE stuff was added back in bug 1491728 as
part of an effort to better handle some IPv6 stuff. I tested the STR in bug 1491728
for the original bug, and I cannot reproduce the issue even witht his change.

nika suggested that instead of returning NS_ERROR_ILLEGAL_VALUE for this form of
URI, we return the same value as `nsIPrincipal.origin`.

Differential Revision: https://phabricator.services.mozilla.com/D142493
2022-04-04 13:40:50 +00:00
..
test_ipv6_host_literal.js
test_oa_partitionKey_pattern.js Bug 1714065 - Allow matching partition key fields via OriginAttributesPattern. r=timhuang,ckerschb 2021-06-24 09:13:30 +00:00
test_origin.js
test_precursor_principal.js Bug 1723496: Update tests within caps/ to work with https-first enabled r=nika 2021-08-12 08:39:36 +00:00
test_site_origin.js Bug 1760417 - Make ContentPrincipal more reliable for URIs in the form of scheme://.origin.tld. r=nika,ckerschb 2022-04-04 13:40:50 +00:00
test_uri_escaping.js
xpcshell.ini Bug 1715167 - Part 7: Add tests for precursor principals, r=ckerschb,ngogge 2021-07-15 21:09:16 +00:00