зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
760abe9af4
Коммит
d74ace38f2
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче