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=684671
5 -->
6 <head>
7 <title>Test for Bug 684671</title>
8 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=684671">Mozilla Bug 684671</a>
13 <p id="display"></p>
14 <div id="content" style="display: none">
16 </div>
17 <pre id="test">
18 <script type="application/javascript">
20 /** Test for Bug 684671 **/
21 function f() {}
22 document.onreadystatechange = f;
23 is(document.onreadystatechange, f,
24 "Document onreadystatechange should be settable");
26 window.onreadystatechange = f;
27 is(window.onreadystatechange, f,
28 "Window onreadystatechange should be settable");
30 document.documentElement.onreadystatechange = f;
31 is(document.documentElement.onreadystatechange, f,
32 "Element onreadystatechange should be settable");
34 var canSetReadyStateChange;
35 try {
36 XMLDocument.prototype.onreadystatechange = null;
37 canSetReadyStateChange = true;
38 } catch (e) {
39 canSetReadyStateChange = false;
40 }
41 ok(canSetReadyStateChange, "This may break web pages");
42 </script>
43 </pre>
44 </body>
45 </html>