summaryrefslogtreecommitdiffstats
path: root/dom/media/tests/crashtests/1453030.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /dom/media/tests/crashtests/1453030.html
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/media/tests/crashtests/1453030.html')
-rw-r--r--dom/media/tests/crashtests/1453030.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/dom/media/tests/crashtests/1453030.html b/dom/media/tests/crashtests/1453030.html
new file mode 100644
index 0000000000..32be04ed1d
--- /dev/null
+++ b/dom/media/tests/crashtests/1453030.html
@@ -0,0 +1,39 @@
+<html class="reftest-wait">
+ <head>
+ <script>
+ let o3;
+
+ var index = localStorage.index_1453030_html || 0;
+ localStorage.index_1453030_html = ++index;
+
+ function getDTMF () {
+ try { o4 = o2.dtmf } catch(e) { }
+ try { o4.insertDTMF("1BC1D55", new Uint32Array([3538134876])[0], new Uint32Array([666182017])[0]) } catch (e) { }
+
+ setTimeout(finish, 0);
+ }
+
+ function finish() {
+ try { o3.close(); } catch (e) {}
+ document.documentElement.removeAttribute("class");
+ }
+ onbeforeunload = function() {
+ try { o3.close(); } catch (e) {}
+ }
+
+ if (index == 1) {
+ o1 = new RTCPeerConnection({ }, null)
+ window.navigator.mediaDevices.getUserMedia({video: true, fake: true}).then((stream) => {
+ o2 = o1.addTrack(stream.getVideoTracks()[0], stream)
+ }).catch((error) => {})
+ o3 = window.open("datr=0")
+ setTimeout(getDTMF, 400)
+ setTimeout(window.location.reload.bind(window.location), 500);
+ } else {
+ try { delete localStorage["index_1453030_html"]; } catch (e) {}
+ finish();
+ }
+
+ </script>
+ </head>
+</html>