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 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
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
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 Bug 1435430 part 1. Switch to creating XSLTProcessors via constructor, not contract. r=mystor 2018-02-05 16:00:04 -05:00
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 Bug 1437956 - Pretty print XML with Shadow DOM r=smaug 2018-06-01 17:45:11 +08:00
ProcessingInstruction.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
ProcessingInstruction.h Bug 1455676 part 21. Remove nsIDOMNode. r=qdot 2018-05-29 22:58:51 -04:00
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