Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
michael@0 | 5 | <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 6 | </head> |
michael@0 | 7 | <body> |
michael@0 | 8 | <pre id="test"> |
michael@0 | 9 | <script type="application/javascript"> |
michael@0 | 10 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 11 | |
michael@0 | 12 | if ("nsINetworkInterfaceListService" in SpecialPowers.Ci) { |
michael@0 | 13 | var url = SimpleTest.getTestFileURL("NetworkPreparationChromeScript.js"); |
michael@0 | 14 | var script = SpecialPowers.loadChromeScript(url); |
michael@0 | 15 | script.addMessageListener('network-disabled', function (message) { |
michael@0 | 16 | ok(true, 'network-disabled'); |
michael@0 | 17 | script.destroy(); |
michael@0 | 18 | SimpleTest.finish(); |
michael@0 | 19 | }); |
michael@0 | 20 | script.sendAsyncMessage("network-cleanup", true); |
michael@0 | 21 | } else { |
michael@0 | 22 | ok(true, 'no need to cleanup network interface'); |
michael@0 | 23 | SimpleTest.finish(); |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | </script> |
michael@0 | 27 | </pre> |
michael@0 | 28 | </body> |
michael@0 | 29 | </html> |