gecko-dev/dom/xml
Kris Maglione a1fde10261 Bug 1729005: Recursively block parsing for parser blocking scripts. r=hsivonen
Bug 1333990 added the ability to have multiple parser blockers at the same
time, so we no longer need to guard against recursively blocking. What's more,
if we do, and skip calling `BlockParser` while it's blocked for another reason,
we still call `UnblockParser` when we receive script data, at which point we
crash.

This patch moves the XHTML parser's behavior closer in line with the HTML
parser's.

The only way I've seen this manifest as a bug is when we have an XHTML
document with a top-level <script> element, and an extension with content
scripts that cause us to block parsing when we see that top-level element and
need to wait for them to compile.

Differential Revision: https://phabricator.services.mozilla.com/D145513
2022-05-11 22:15:14 +00:00
..
crashtests
resources Bug 1586529 - Make viewsource and XMLPrettyPrint adapt to preferred color scheme. r=dao 2022-01-23 00:02:22 +00:00
test
CDATASection.cpp Bug 1768189 - Part 45: Apply modernize-concat-nested-namespaces to dom/xhr/XMLHttpRequest.cpp ... r=andi 2022-05-09 20:41:21 +00:00
CDATASection.h Bug 1768189 - Part 45: Apply modernize-concat-nested-namespaces to dom/xhr/XMLHttpRequest.cpp ... r=andi 2022-05-09 20:41:21 +00:00
ProcessingInstruction.cpp Bug 1768189 - Part 45: Apply modernize-concat-nested-namespaces to dom/xhr/XMLHttpRequest.cpp ... r=andi 2022-05-09 20:41:21 +00:00
ProcessingInstruction.h
XMLDocument.cpp Bug 1768189 - Part 45: Apply modernize-concat-nested-namespaces to dom/xhr/XMLHttpRequest.cpp ... r=andi 2022-05-09 20:41:21 +00:00
XMLDocument.h Bug 1768189 - Part 45: Apply modernize-concat-nested-namespaces to dom/xhr/XMLHttpRequest.cpp ... r=andi 2022-05-09 20:41:21 +00:00
XMLStylesheetProcessingInstruction.cpp Bug 1768189 - Part 45: Apply modernize-concat-nested-namespaces to dom/xhr/XMLHttpRequest.cpp ... r=andi 2022-05-09 20:41:21 +00:00
XMLStylesheetProcessingInstruction.h Bug 1768189 - Part 45: Apply modernize-concat-nested-namespaces to dom/xhr/XMLHttpRequest.cpp ... r=andi 2022-05-09 20:41:21 +00:00
htmlmathml-f.ent
moz.build Bug 1749935 - Create nsParser directly instead of with a CID. r=hsivonen 2022-02-14 13:03:51 +00:00
nsIXMLContentSink.h Bug 1768189 - Part 45: Apply modernize-concat-nested-namespaces to dom/xhr/XMLHttpRequest.cpp ... r=andi 2022-05-09 20:41:21 +00:00
nsXMLContentSink.cpp Bug 1729005: Recursively block parsing for parser blocking scripts. r=hsivonen 2022-05-11 22:15:14 +00:00
nsXMLContentSink.h Bug 1768189 - Part 45: Apply modernize-concat-nested-namespaces to dom/xhr/XMLHttpRequest.cpp ... r=andi 2022-05-09 20:41:21 +00:00
nsXMLElement.cpp
nsXMLElement.h
nsXMLFragmentContentSink.cpp Bug 1696507 - Remove support for NO_UNLINK version of cycle collector macros. r=smaug 2021-03-10 19:50:40 +00:00
nsXMLPrettyPrinter.cpp
nsXMLPrettyPrinter.h