Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
5 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
6 </head>
7 <body>
8 <pre id="test">
9 <script type="application/javascript">
10 SimpleTest.waitForExplicitFinish();
12 if ("nsINetworkInterfaceListService" in SpecialPowers.Ci) {
13 var url = SimpleTest.getTestFileURL("NetworkPreparationChromeScript.js");
14 var script = SpecialPowers.loadChromeScript(url);
15 script.addMessageListener('network-disabled', function (message) {
16 ok(true, 'network-disabled');
17 script.destroy();
18 SimpleTest.finish();
19 });
20 script.sendAsyncMessage("network-cleanup", true);
21 } else {
22 ok(true, 'no need to cleanup network interface');
23 SimpleTest.finish();
24 }
26 </script>
27 </pre>
28 </body>
29 </html>