Bug 1545133 - Add crashtest. r=padenot
authorAndreas Pehrson <apehrson@mozilla.com>
Thu, 25 Apr 2019 16:41:33 +0000
changeset 530171 158a9ef03153ceef4b9a097e087860f8e1712d2d
parent 530170 f534de537db5057cce7513ad9ae43e9da6376a57
child 530172 c0e459d136243e309fba76dccefc45ac2de6afa4
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot
bugs1545133
milestone68.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 1545133 - Add crashtest. r=padenot Differential Revision: https://phabricator.services.mozilla.com/D28805
dom/media/test/crashtests/1545133.html
dom/media/test/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/dom/media/test/crashtests/1545133.html
@@ -0,0 +1,34 @@
+<html class="reftest-wait">
+<head>
+<script>
+const xhr = new XMLHttpRequest()
+
+async function boom () {
+  await new Promise(r => setTimeout(r, 100))
+
+  SpecialPowers.forceCC()
+  SpecialPowers.forceCC()
+  SpecialPowers.forceCC()
+
+  document.documentElement.removeAttribute("class")
+}
+
+function start () {
+  const context = new AudioContext({})
+  const filter = new BiquadFilterNode(context, {})
+  const destination = context.createMediaStreamDestination()
+  const processor = context.createScriptProcessor(8192, 8, 8)
+  processor.connect(filter.Q)
+  processor.disconnect()
+  xhr.open('G', '', false)
+  xhr.send()
+  context.createMediaStreamSource(destination.stream)
+  processor.connect(filter.Q)
+  context.close()
+  context.addEventListener('statechange', boom, true)
+}
+
+document.addEventListener('DOMContentLoaded', start)
+</script>
+</head>
+</html>
--- a/dom/media/test/crashtests/crashtests.list
+++ b/dom/media/test/crashtests/crashtests.list
@@ -113,9 +113,10 @@ load oscillator-ended-2.html
 skip-if(Android&&AndroidVersion=='22') load video-replay-after-audio-end.html # bug 1315125, bug 1358876
 # This needs to run at the end to avoid leaking busted state into other tests.
 skip-if(Android) load 691096-1.html # Bug 1365451
 load 1236639.html
 test-pref(media.navigator.permission.disabled,true) load 1388372.html
 load 1494073.html
 skip-if(Android) load 1526044.html # Bug 1528391
 load 1533909.html
+test-pref(media.autoplay.block-webaudio,false) load 1545133.html
 load track-with-zero-dimensions.mp4