|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <head> |
|
4 <title>Test to ensure TCPSocket permission is disabled by default</title> |
|
5 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
|
7 </head> |
|
8 <body> |
|
9 <p id="display"></p> |
|
10 <div id="content" style="display: none"> |
|
11 </div> |
|
12 <pre id="test"> |
|
13 <script type="application/javascript"> |
|
14 |
|
15 /** Test to ensure TCPSocket permission is disabled by default **/ |
|
16 |
|
17 try { |
|
18 navigator.mozTCPSocket; |
|
19 throw new Error("Error: navigator.mozTCPSocket should not exist by default"); |
|
20 } catch (e) { |
|
21 ok(true, "navigator.mozTCPSocket should not exist by default"); |
|
22 } |
|
23 |
|
24 </script> |
|
25 </pre> |
|
26 </body> |
|
27 </html> |