зеркало из https://github.com/mozilla/gecko-dev.git
c4c5775807
XML pretty print, as it was implemented in bug 64945, skips itself when the loaded document is not visible. There is no explanation why it does that, other than the fact that it is backed by an XBL binding, and XBL bindings always bound to DOM with layout frames. A later change in bug 1400618 made the existence of presshell necessary before binding the XBL binding. With bug 1437956 and bug 1503019, XML pretty print is now backed by Shadow DOM. That leaves no reason for keeping this behavior. The test file test_bug590812.html also revealed that XML pretty print might incorrectly opt-out itself because of the said behavior. We don't know if this something only happens in the test or it is something that may happen in the wild. Nonetheless, it's a better idea to simplify the behavior here. Differential Revision: https://phabricator.services.mozilla.com/D12088 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
crashtests | ||
resources | ||
test | ||
CDATASection.cpp | ||
CDATASection.h | ||
ProcessingInstruction.cpp | ||
ProcessingInstruction.h | ||
XMLDocument.cpp | ||
XMLDocument.h | ||
XMLStylesheetProcessingInstruction.cpp | ||
XMLStylesheetProcessingInstruction.h | ||
htmlmathml-f.ent | ||
moz.build | ||
nsIXMLContentSink.h | ||
nsXMLContentSink.cpp | ||
nsXMLContentSink.h | ||
nsXMLElement.cpp | ||
nsXMLElement.h | ||
nsXMLFragmentContentSink.cpp | ||
nsXMLPrettyPrinter.cpp | ||
nsXMLPrettyPrinter.h |