Bug 1388075 - Add crashtest. r=me
authorRyan VanderMeulen <ryanvm@gmail.com>
Wed, 11 Oct 2017 11:52:40 -0400
changeset 428198 08cd21f55cbedf07b72e95fe0a5765737689d3f7
parent 428197 65efa871564c3911253c53e31a613de584fbd307
child 428199 0bf9f589e2428cd6fdd49fea0c93632870ec2cb4
push id97
push userfmarier@mozilla.com
push dateSat, 14 Oct 2017 01:12:59 +0000
reviewersme
bugs1388075
milestone58.0a1
Bug 1388075 - Add crashtest. r=me
editor/libeditor/crashtests/1388075.html
editor/libeditor/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/editor/libeditor/crashtests/1388075.html
@@ -0,0 +1,23 @@
+<html>
+  <head>
+    <script>
+      try { o1 = document.createElement('style'); } catch(e) { }
+      try { o2 = document.createElement('output') } catch(e) { }
+      try { o3 = document.createElement('input') } catch(e) { }
+      try { o4 = document.createElement('script'); } catch(e) { }
+      try { o5 = o2.cloneNode(false); } catch(e) { }
+      try { document.documentElement.appendChild(o1) } catch(e) { }
+      try { o1.outerHTML = '<a contenteditable=\'true\'>'; } catch(e) { }
+      try { document.documentElement.appendChild(o3) } catch(e) { }
+      try { o7 = document.createTextNode(' '); } catch(e) { }
+      try { o4.appendChild(o7) } catch(e) { }
+      try { document.documentElement.appendChild(o4) } catch(e) { }
+      try { o6 = window.getSelection() } catch(e) { }
+      try { o3.select() } catch(e) { }
+      try { document.replaceChild(document.documentElement, document.documentElement); } catch(e) { }
+      try { o6.setBaseAndExtent(o7, 0, o5, 0) } catch(e) { }
+      try { document.designMode = 'on'; } catch(e) { }
+      try { document.execCommand('insertimage', false, 'http://localhost/') } catch(e) { }
+    </script>    
+  </head>
+</html>
--- a/editor/libeditor/crashtests/crashtests.list
+++ b/editor/libeditor/crashtests/crashtests.list
@@ -75,11 +75,12 @@ load 1324505.html
 needs-focus load 1343918.html
 load 1345015.html
 load 1348851.html
 load 1350772.html
 load 1366176.html
 load 1375131.html
 load 1381541.html
 load 1383755.html
+load 1388075.html
 load 1402469.html
 load 1402904.html
 load 1405747.html