Bug 1791604 test AudioContext creation after sync XMLHttpRequest r=padenot

Based on testcase by Jason Kratzer <jkratzer@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D157766
This commit is contained in:
Karl Tomlinson 2022-09-21 22:38:48 +00:00
parent 3135e1b982
commit eb2a6df077
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<script>
document.addEventListener('DOMContentLoaded', () => {
const xhr = new XMLHttpRequest()
xhr.open('G', '', false)
xhr.send()
window.ac = new AudioContext()
})
</script>
</head>
</html>

View File

@ -99,6 +99,7 @@ load 1489160.html
load disconnect-wrong-destination.html
load analyser-channels-1.html
load audiocontext-after-unload-1.html
load audiocontext-after-xhr.html
load audiocontext-double-suspend.html
skip-if(Android) load audioworkletnode-after-unload-1.html # Needs secure context
load buffer-source-duration-1.html