зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1729020: Move this crashtest to mochitest, so we can do some checking. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D124469
This commit is contained in:
Родитель
4d53a52ead
Коммит
ef7f2682b5
|
@ -1,10 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<script>
|
||||
window.addEventListener('load', () => {
|
||||
SpecialPowers.Components.classes["@mozilla.org/peerconnection;1"].createInstance(SpecialPowers.Components.interfaces.nsIArray);
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
</html>
|
||||
|
|
@ -35,4 +35,3 @@ load 1576938.html
|
|||
skip-if(Android) pref(media.getusermedia.audiocapture.enabled,true) load 1573536.html
|
||||
skip-if(!Android) pref(media.getusermedia.audiocapture.enabled,true) pref(media.navigator.permission.device,false) load 1573536.html # media.navigator.permission.device is mobile-only, so other platforms fail to set it (Bug 1350948)
|
||||
load 1594136.html
|
||||
load 1717318.html
|
||||
|
|
|
@ -35,6 +35,7 @@ prefs =
|
|||
network.proxy.allow_hijacking_localhost=true
|
||||
|
||||
[test_1488832.html]
|
||||
[test_1717318.html]
|
||||
[test_a_noOp.html]
|
||||
scheme=http
|
||||
[test_dataChannel_basicAudio.html]
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>PC construct with no global object (bug 1717318)</title>
|
||||
<script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
|
||||
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
||||
</head>
|
||||
<body>
|
||||
<script class="testbody" type="text/javascript">
|
||||
"use strict";
|
||||
|
||||
// nsIArray is not special here, it could be pretty much any interface.
|
||||
// We do this outside the try block just in case someday the interface is
|
||||
// removed.
|
||||
const dummyInterface = SpecialPowers.Components.interfaces.nsIArray;
|
||||
ok(dummyInterface, "nsIArray should exist");
|
||||
try {
|
||||
// Just don't crash.
|
||||
SpecialPowers.Components.classes["@mozilla.org/peerconnection;1"]
|
||||
.createInstance(dummyInterface);
|
||||
} catch (e) {}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче