mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Bug 1810896 - Adjust assertion to account for ISO-2022-JP at the start but UTF-8 at the end of HTML file. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D170928
This commit is contained in:
parent
31b50af66d
commit
1bc8211238
@ -334,7 +334,8 @@ nsHtml5StreamParser::GuessEncoding(bool aInitial) {
|
||||
} else if (ifHadBeenForced == UTF_8_ENCODING) {
|
||||
MOZ_ASSERT(mCharsetSource == kCharsetFromInitialAutoDetectionASCII ||
|
||||
mCharsetSource ==
|
||||
kCharsetFromInitialAutoDetectionWouldHaveBeenUTF8);
|
||||
kCharsetFromInitialAutoDetectionWouldHaveBeenUTF8 ||
|
||||
mEncoding == ISO_2022_JP_ENCODING);
|
||||
source = kCharsetFromFinalAutoDetectionWouldHaveBeenUTF8InitialWasASCII;
|
||||
} else if (encoding != ifHadBeenForced) {
|
||||
if (mCharsetSource == kCharsetFromInitialAutoDetectionASCII) {
|
||||
|
1081
parser/htmlparser/tests/crashtests/1810896-1.html
Normal file
1081
parser/htmlparser/tests/crashtests/1810896-1.html
Normal file
File diff suppressed because it is too large
Load Diff
@ -64,3 +64,4 @@ load 1604307-1.html
|
||||
load 1606499-1.html
|
||||
load 1547895-1.html
|
||||
skip-if(Android) skip-if(isDebugBuild) load 1747514.html # Bug 1780219
|
||||
HTTP load 1810896-1.html
|
||||
|
Loading…
Reference in New Issue
Block a user