Bug 1334647 - add crashtest for bug 1334647. r=rhunt
authorLee Salzman <lsalzman@mozilla.com>
Tue, 31 Jan 2017 11:17:50 -0500
changeset 468851 6d90154f7900707f500d36f50ba0309cde009315
parent 468850 a53aa6836f3f7d7bb18c014e3f0465c5681a1cc4
child 468852 5e6635624e35d51384d185c6dd48058ab48567e2
push id43551
push userbmo:kgilbert@mozilla.com
push dateTue, 31 Jan 2017 23:27:06 +0000
reviewersrhunt
bugs1334647
milestone54.0a1
Bug 1334647 - add crashtest for bug 1334647. r=rhunt MozReview-Commit-ID: C1QuJk2Mweb
dom/canvas/crashtests/1334647-1.html
dom/canvas/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/dom/canvas/crashtests/1334647-1.html
@@ -0,0 +1,8 @@
+<script>
+Logger={}; Logger.JSError=function(e){};
+try { o0 = document.createElement('canvas'); } catch(e) { Logger.JSError(e); }
+try { (document.body || document.documentElement).appendChild(o0) } catch(e) { Logger.JSError(e); }
+try { o1 = o0.getContext('2d'); } catch(e) { Logger.JSError(e); }
+try { o0.width = 311853383.455201; } catch(e) { Logger.JSError(e); }
+try { o1.drawImage(o0, -0.906275445340731, 0.3679144809413502, 2, 32) } catch(e) { Logger.JSError(e); }
+</script>
--- a/dom/canvas/crashtests/crashtests.list
+++ b/dom/canvas/crashtests/crashtests.list
@@ -35,9 +35,10 @@ asserts-if(stylo,1) load 1287652-1.html 
 asserts-if(stylo,1) load 1288872-1.html # bug 1324700
 load 1290628-1.html
 asserts-if(stylo,1) load 1283113-1.html # bug 1324700
 load 1286458-1.html
 load 1299062-1.html
 load 1305312-1.html
 load 1298576-1.html
 load 1334366-1.html
+load 1334647-1.html