Backed out changeset 0d999601edeb (bug 1851829) for crashtest failures on 1851829.html . CLOSED TREE

This commit is contained in:
Narcis Beleuzu 2023-09-29 16:28:25 +03:00
parent 997f4bde8a
commit eedff9a528
4 changed files with 1 additions and 36 deletions

View File

@ -254,10 +254,8 @@ void MIDIPort::Receive(const nsTArray<MIDIMessage>& aMsg) {
}
void MIDIPort::DisconnectFromOwner() {
if (Port()) {
Port()->SendClose();
}
DontKeepAliveOnStatechange();
Port()->SendClose();
DOMEventTargetHelper::DisconnectFromOwner();
}

View File

@ -1,31 +0,0 @@
<!DOCTYPE html>
<html class="reftest-wait">
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1851829
-->
<head>
<meta charset="utf-8">
<title>Bug 1851829</title>
<script>
async function timeout (cmd) {
const timer = new Promise((resolve, reject) => {
const id = setTimeout(() => {
clearTimeout(id)
reject(new Error('Promise timed out!'))
}, 750)
})
return Promise.race([cmd, timer])
}
window.addEventListener('load', async () => {
// <script>window.close()<\/script>
const tab = window.open('data:text/plain;charset=utf-8;base64,PHNjcmlwdD53aW5kb3cuY2xvc2UoKTwvc2NyaXB0Pg==')
setTimeout(async () => {
try { await timeout(tab.navigator.requestMIDIAccess({})) } catch (e) {}
window.close()
document.documentElement.classList.remove("reftest-wait");
}, 400)
})
</script>
</head>
</html>

File diff suppressed because one or more lines are too long

View File

@ -25,7 +25,6 @@ include ../../dom/media/webvtt/test/crashtests/crashtests.list
skip-if(!webrtc) include ../../dom/media/tests/crashtests/crashtests.list
skip-if(!webrtc) include ../../dom/media/webrtc/tests/crashtests/crashtests.list
include ../../dom/media/webspeech/synth/crashtests/crashtests.list
include ../../dom/midi/crashtests/crashtests.list
include ../../dom/plugins/test/crashtests/crashtests.list
include ../../dom/security/test/crashtests/crashtests.list
include ../../dom/serializers/crashtests/crashtests.list