Add crashtest for bug 500847 (just filed)
authorJesse Ruderman <jruderman@gmail.com>
Fri, 26 Jun 2009 17:26:31 -0700
changeset 29612 eab7369acfd6f2283d4fd353c1c8f1780be5d841
parent 29611 37fd13fb79cfcddf2d6370329dd5b1b45a3febc7
child 29613 564fcfbe19081ae06e3022ff608fe01b5b31f3db
push idunknown
push userunknown
push dateunknown
bugs500847
milestone1.9.2a1pre
Add crashtest for bug 500847 (just filed)
editor/composer/src/crashtests/crashtests.list
editor/composer/src/crashtests/removing-editable-xslt-inner.xhtml
editor/composer/src/crashtests/removing-editable-xslt.html
--- a/editor/composer/src/crashtests/crashtests.list
+++ b/editor/composer/src/crashtests/crashtests.list
@@ -1,2 +1,3 @@
 load 351236-1.html
 skip-if(MOZ_WIDGET_TOOLKIT=="windows") load 428844-1.html # bug 471185
+load removing-editable-xslt.html
new file mode 100644
--- /dev/null
+++ b/editor/composer/src/crashtests/removing-editable-xslt-inner.xhtml
@@ -0,0 +1,4 @@
+<?xml-stylesheet type="text/xsl" href="#a"?>
+<html xmlns="http://www.w3.org/1999/xhtml"  contenteditable="true">
+<xsl:stylesheet version="1.0" id="a" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/>
+</html>
new file mode 100644
--- /dev/null
+++ b/editor/composer/src/crashtests/removing-editable-xslt.html
@@ -0,0 +1,17 @@
+<html class="reftest-wait">
+<head>
+<script>
+function boom()
+{
+  document.getElementById("i").src = "removing-editable-xslt-inner.xhtml";
+  setTimeout(function() { 
+    document.body.removeChild(document.getElementById("i"));
+    document.documentElement.removeAttribute("class");
+  }, 0);
+}
+</script>
+</head>
+<body onload="boom();">
+<iframe id="i"></iframe>
+</body>
+</html>