Bug 1507796 [wpt PR 14090] - Encoding/XMLHttpRequest: default is UTF-8, a=testonly
☠☠ backed out by 46ad93280b06 ☠ ☠
authorAnne van Kesteren <annevk@annevk.nl>
Mon, 19 Nov 2018 18:46:42 +0000
changeset 503756 b4d49ed8873e9a4458c50da96e76fe62f067d4da
parent 503755 f380f6a8f5c0f0dff12df5aa4214040aed998067
child 503757 c4430fdd1d225c1d3c35e24ba2eb775259b7d19a
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1507796, 14090, 14082
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1507796 [wpt PR 14090] - Encoding/XMLHttpRequest: default is UTF-8, a=testonly Automatic update from web-platform-testsEncoding/XMLHttpRequest: default is UTF-8 Fixes #14082. -- wpt-commits: a65bfa9d0c9517103caeb19eb0724eab75e2cacb wpt-pr: 14090
testing/web-platform/tests/encoding/unsupported-encodings.any.js
--- a/testing/web-platform/tests/encoding/unsupported-encodings.any.js
+++ b/testing/web-platform/tests/encoding/unsupported-encodings.any.js
@@ -10,23 +10,23 @@
 // UTF-32 will be detected as UTF-16LE if leading BOM, or windows-1252 otherwise.
 ['UTF-32', 'utf-32', 'UTF-32LE', 'utf-32le'].forEach(label => {
   decode_test(label,
               '%FF%FE%00%00%41%00%00%00%42%00%00%00',
               'U+0000/U+0041/U+0000/U+0042/U+0000',
               `${label} with BOM should decode as UTF-16LE`);
 
   decode_test(label,
-              '%41%00%00%00%42%00%00%00',
-              'U+0041/U+0000/U+0000/U+0000/U+0042/U+0000/U+0000/U+0000',
-              `${label} with no BOM should decode as windows-1252`);;
+              '%41%00%00%00%42%00%00%C2%80',
+              'U+0041/U+0000/U+0000/U+0000/U+0042/U+0000/U+0000/U+0080',
+              `${label} with no BOM should decode as UTF-8`);;
 });
 ['UTF-32be', 'utf-32be'].forEach(label => {
   decode_test(label,
-            '%00%00%00%41%00%00%00%42',
-            'U+0000/U+0000/U+0000/U+0041/U+0000/U+0000/U+0000/U+0042',
-            `${label} with no BOM should decode as windows-1252`);
+            '%00%00%00%41%00%00%00%42%C2%80',
+            'U+0000/U+0000/U+0000/U+0041/U+0000/U+0000/U+0000/U+0042/U+0080',
+            `${label} with no BOM should decode as UTF-8`);
 
   decode_test(label,
-              '%00%00%FE%FF%00%00%00%41%00%00%00%42',
-              'U+0000/U+0000/U+00FE/U+00FF/U+0000/U+0000/U+0000/U+0041/U+0000/U+0000/U+0000/U+0042',
-              `${label} with BOM should decode as windows-1252`);
+              '%00%00%FE%FF%00%00%00%41%00%C2%80%42',
+              'U+0000/U+0000/U+FFFD/U+FFFD/U+0000/U+0000/U+0000/U+0041/U+0000/U+0080/U+0042',
+              `${label} with BOM should decode as UTF-8`);
 });