dom/media/webrtc/tests/mochitests/test_1717318.html
author Serban Stanca <sstanca@mozilla.com>
Thu, 17 Jul 2025 20:21:32 +0300 (10 hours ago)
changeset 797003 7ec5a911287f51bc177058928bb102163a3b656e
parent 755094 83f87014c68bd438b51026e81d1773fffc7eb283
permissions -rw-r--r--
Revert "Bug 1977690 - Remove unused AppRequestInterceptor in androidTests r=aaronmt" for causing fenix-debug failures. This reverts commit bc9dc5f4296482e17560627acaacd2797e462211.
<!DOCTYPE HTML>
<html>
<head>
  <title>PC construct with no global object (bug 1717318)</title>
  <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>