port changes from tenfourfox:

- #584: M1507180 M1598605 (7b58ac561)
- fix M1607443 as a precaution (b8657e696)
- #587: M1513855 M1596668 M1602944 M1599420 M1595399 (35a4358b3)
This commit is contained in:
2020-01-29 11:08:34 +08:00
parent a85a1fd22b
commit a61b8c3d3f
11 changed files with 31 additions and 17 deletions
+2 -2
View File
@@ -140,8 +140,6 @@ nsHtml5TreeBuilder::startTokenization(nsHtml5Tokenizer* self)
tokenizer->setStateAndEndTagExpectation(NS_HTML5TOKENIZER_DATA, contextName);
}
}
contextName = nullptr;
contextNode = nullptr;
} else {
mode = NS_HTML5TREE_BUILDER_INITIAL;
if (tokenizer->isViewingXmlSource()) {
@@ -577,6 +575,8 @@ nsHtml5TreeBuilder::endTokenization()
{
formPointer = nullptr;
headPointer = nullptr;
contextName = nullptr;
contextNode = nullptr;
deepTreeSurrogateParent = nullptr;
templateModeStack = nullptr;
if (stack) {