Bug 1527277 - Part 4: Add crashtest. r=peterv
authorEric Rahm <erahm@mozilla.com>
Wed, 06 Mar 2019 18:54:27 +0000
changeset 462706 60142f1fcb4c417e648e11875b4ada3720d5a2e8
parent 462705 b4fef176bc8fde4e580823740639f51c6e43c58f
child 462707 730431cf28dbafda9afa0fb3664e2b86ddb6d449
push id112326
push userccoroiu@mozilla.com
push dateThu, 07 Mar 2019 04:41:19 +0000
treeherdermozilla-inbound@a6f8093bf1a2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspeterv
bugs1527277
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1527277 - Part 4: Add crashtest. r=peterv Differential Revision: https://phabricator.services.mozilla.com/D20581
dom/xslt/crashtests/1527277.html
dom/xslt/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/dom/xslt/crashtests/1527277.html
@@ -0,0 +1,14 @@
+<html>
+<script>
+var xml = "<e/>";
+var xsl = "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"><xsl:decimal-format grouping-separator=\".\" /><xsl:template match=\"/\"><xsl:value-of select=\"format-number(0.1, '.#')\"/></xsl:template></xsl:stylesheet>";
+
+var parser = new DOMParser();
+var xmlDoc = parser.parseFromString(xml, "text/xml");
+var xslDoc = parser.parseFromString(xsl, "text/xml");
+
+xsltProcessor = new XSLTProcessor();
+xsltProcessor.importStylesheet(xslDoc);
+var result = xsltProcessor.transformToDocument(xmlDoc);
+</script>
+</html>
--- a/dom/xslt/crashtests/crashtests.list
+++ b/dom/xslt/crashtests/crashtests.list
@@ -20,9 +20,10 @@ load 1089049.html
 load 1205163.xml
 load 1243337.xml
 load 1330492.html
 load 1336828.html
 load 1336830.html
 load 1336832.html
 load 1338277.html
 load 1361892.html
+load 1527277.html
 HTTP load 1430818.sjs