Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=789856
5 -->
6 <head>
7 <meta charset="utf-8">
8 <title>Test for Bug 789856</title>
9 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=789856">Mozilla Bug 789856</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
17 </div>
18 <pre id="test">
19 <script type="application/javascript">
21 /** Test for Bug 789856 **/
22 SimpleTest.waitForExplicitFinish();
24 var script = document.createElement("script");
25 script.onload = function() {
26 ok(false, "This script should not load");
27 SimpleTest.finish();
28 }
29 script.onerror = function() {
30 ok(true, "This script should fail to load");
31 SimpleTest.finish();
32 }
33 // If neither one fires, the test fails, as it should
35 // Use a URL the test is not allowed to load
36 script.src = "file:///tmp/"
37 document.body.appendChild(script);
39 </script>
40 </pre>
41 </body>
42 </html>