Bug 1396093 - Add a missing leading zero byte to a test case that uses UTF-16BE. r=emilio

The old style system uses nsUnicharStreamLoader, which never signals the end
of the stream to mozilla::Decoder, which caused the input to be truncated
instead of the error in the input being detected. Stylo uses
mozilla::css::StreamLoader, which correctly signals the end of the stream, so
the an odd number of bytes in UTF-16BE resulted in the output ending with
U+FFFD, which ran into the keyword "green" making it not a valid keyword.

MozReview-Commit-ID: uSaCIfrAOF

--HG--
extra : rebase_source : 2674c589012cd71e7bc2e8228c44aed26622b078
This commit is contained in:
Henri Sivonen 2017-09-04 16:50:39 +03:00
Родитель 760abe9af4
Коммит d74ace38f2
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -7,10 +7,10 @@
<script src="data:application/javascript,"></script>
<link rel="stylesheet" type="text/css"
charset="UTF-16BE"
href="data:text/css,%00b%00o%00d%00y%00{%00c%00o%00l%00o%00r%00:%00g%00r%00e%00e%00n}">
href="data:text/css,%00b%00o%00d%00y%00{%00c%00o%00l%00o%00r%00:%00g%00r%00e%00e%00n%00}">
</head>
<body>
This should be green
</body>
</html>

Просмотреть файл

@ -1330,7 +1330,7 @@ fuzzy-if(skiaContent,1,5) == 482659-1d.html 482659-1-ref.html
== 483565.xul 483565-ref.xul
== 484256-1.html 484256-1-ref.html
== 484256-2.html 484256-1-ref.html
fails-if(stylo||styloVsGecko) == 485012-1.html 485012-1-ref.html # bug 1396093
== 485012-1.html 485012-1-ref.html
== 485275-1.html 485275-1-ref.html
== 485275-1.svg 485275-1-ref.html
== 486052-1.html 486052-1-ref.html