gecko-dev/intl/components
Valentin Gosu f4e5d22860 Bug 1793521 - Make sure URLs with invalid IDNA labels parse the same round-trip r=necko-reviewers,kershaw
This was regressed by bug 1788115, which allowed us to parse ASCII labels
again to enforce they're valid. However, the existing code only checked for
invalid punycode (that fails decoding), not ACE labels that are invalid.

If we don't check for this condition uidna_labelToUnicode will add a U+FFFD
character to the end of the label, making us encode it again, changing the URL.
When that happens, the principal's origin may change between serializations,
which is not OK.

Depends on D159373

Differential Revision: https://phabricator.services.mozilla.com/D160785
2022-11-01 09:50:18 +00:00
..
gtest Bug 1797248: Update time zone data to tzdata2022e. r=platform-i18n-reviewers,dminor 2022-10-27 11:32:17 +00:00
src Bug 1793521 - Make sure URLs with invalid IDNA labels parse the same round-trip r=necko-reviewers,kershaw 2022-11-01 09:50:18 +00:00
moz.build Bug 1746837 - Part 1: Include "mozilla/intl/MeasureUnitGenerated.h" in Spidermonkey. r=platform-i18n-reviewers,tcampbell,dminor 2021-12-21 08:43:10 +00:00