Issue #1656 - Part 2: Unmangle some unfortunate UTF-8 victims.

The poor fellows got lost in an ASCII-interpretation of the world.
This commit is contained in:
Moonchild 2020-09-23 14:52:16 +00:00 • committed by roytam1
commit ed7e49eda6
9 changed files with 24 additions and 24 deletions

View file

@ -772,7 +772,7 @@ StripURIForReporting(nsIURI* aURI,
{
// 1) If the origin of uri is a globally unique identifier (for example,
// aURI has a scheme of data, blob, or filesystem), then return the
// ASCII serialization of uri???s scheme.
// ASCII serialization of uri’s scheme.
bool isHttpOrFtp =
(NS_SUCCEEDED(aURI->SchemeIs("http", &isHttpOrFtp)) && isHttpOrFtp) ||
(NS_SUCCEEDED(aURI->SchemeIs("https", &isHttpOrFtp)) && isHttpOrFtp) ||
@ -787,7 +787,7 @@ StripURIForReporting(nsIURI* aURI,
}
// 2) If the origin of uri is not the same as the origin of the protected
// resource, then return the ASCII serialization of uri???s origin.
// resource, then return the ASCII serialization of uri’s origin.
if (!NS_SecurityCompareURIs(aSelfURI, aURI, false)) {
// cross origin redirects also fall into this category, see:
// http://www.w3.org/TR/CSP/#violation-reports