gecko/dom/network/tests/test_tcpsocket_default_permissions.html
Phil Ringnalda 823e1db1a5 Back out 3 changesets (bug 885982, bug 1118063) for b2g mochitest-6 bustage
CLOSED TREE

Backed out changeset 865e7bc208df (bug 885982)
Backed out changeset 9ede577f5ada (bug 885982)
Backed out changeset 6ccc86f7429e (bug 1118063)

--HG--
rename : dom/network/interfaces/nsITCPServerSocketInternal.idl => dom/network/interfaces/nsIDOMTCPServerSocket.idl
2015-01-17 13:26:10 -08:00

28 lines
709 B
HTML

<!DOCTYPE HTML>
<html>
<head>
<title>Test to ensure TCPSocket permission is disabled by default</title>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">
/** Test to ensure TCPSocket permission is disabled by default **/
try {
navigator.mozTCPSocket;
throw new Error("Error: navigator.mozTCPSocket should not exist by default");
} catch (e) {
ok(true, "navigator.mozTCPSocket should not exist by default");
}
</script>
</pre>
</body>
</html>