gecko-dev/dom/xml
Timothy Guan-tin Chien c4c5775807 Bug 1472237 - Always do XML Pretty print even if the frame is hidden r=mats
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
2018-11-16 08:16:27 +00:00
..
crashtests
resources Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug 2018-11-15 06:51:07 +00:00
test
CDATASection.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
CDATASection.h Bug 1492894 - part 1 - make the node hierarchy consistently constructed with NodeInfo&&; r=mccr8 2018-09-21 16:45:49 -04:00
ProcessingInstruction.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
ProcessingInstruction.h
XMLDocument.cpp Bug 1493276 - Statically prevent CallQueryInterface to a base class r=froydnj 2018-09-27 14:59:55 +00:00
XMLDocument.h Bug 1481601 - Remove now-useless aPreallocateChildren from nsINode::Clone() and friends. r=bzbarsky 2018-08-08 23:58:44 +00:00
XMLStylesheetProcessingInstruction.cpp Bug 1479860: Remove unused aCompileEventHandlers argument from BindToTree. r=bz 2018-08-01 10:42:54 +02:00
XMLStylesheetProcessingInstruction.h Bug 1479860: Remove unused aCompileEventHandlers argument from BindToTree. r=bz 2018-08-01 10:42:54 +02:00
htmlmathml-f.ent Bug 1479815. Align our XHTML entity definitions with the HTML ones. r=hsivonen 2018-08-08 08:27:17 +00:00
moz.build
nsIXMLContentSink.h
nsXMLContentSink.cpp Bug 1494745 part 4 - Make Loader::AddObserver void since it's infallible. r=bz 2018-10-14 18:12:23 +02:00
nsXMLContentSink.h Bug 1489454 - Remove all trailing whitespaces (again) r=Ehsan 2018-09-07 14:47:51 +00:00
nsXMLElement.cpp Bug 1492894 - part 1 - make the node hierarchy consistently constructed with NodeInfo&&; r=mccr8 2018-09-21 16:45:49 -04:00
nsXMLElement.h Bug 1492894 - part 1 - make the node hierarchy consistently constructed with NodeInfo&&; r=mccr8 2018-09-21 16:45:49 -04:00
nsXMLFragmentContentSink.cpp Bug 1418246 - Return valid columnNumber value in CSP violation events, r=ckerschb 2018-07-05 08:21:04 +02:00
nsXMLPrettyPrinter.cpp Bug 1472237 - Always do XML Pretty print even if the frame is hidden r=mats 2018-11-16 08:16:27 +00:00
nsXMLPrettyPrinter.h