mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Backed out changeset 0d999601edeb (bug 1851829) for crashtest failures on 1851829.html . CLOSED TREE
This commit is contained in:
parent
997f4bde8a
commit
eedff9a528
@ -254,10 +254,8 @@ void MIDIPort::Receive(const nsTArray<MIDIMessage>& aMsg) {
|
||||
}
|
||||
|
||||
void MIDIPort::DisconnectFromOwner() {
|
||||
if (Port()) {
|
||||
Port()->SendClose();
|
||||
}
|
||||
DontKeepAliveOnStatechange();
|
||||
Port()->SendClose();
|
||||
|
||||
DOMEventTargetHelper::DisconnectFromOwner();
|
||||
}
|
||||
|
@ -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
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user