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 <head>
4 <meta charset="utf-8" />
5 <title>UITour test</title>
6 <script type="application/javascript" src="uitour.js">
7 </script>
8 <script type="application/javascript">
9 var callbackResult, callbackData;
10 function makeCallback(name) {
11 return (function(data) {
12 callbackResult = name;
13 callbackData = data;
14 });
15 }
17 // Defined in content to avoid weird issues when crossing between chrome/content.
18 function makeButtons() {
19 return [
20 {label: "Button 1", callback: makeCallback("button1")},
21 {label: "Button 2", callback: makeCallback("button2"), icon: "image.png"}
22 ];
23 }
25 function makeInfoOptions() {
26 return {
27 closeButtonCallback: makeCallback("closeButton"),
28 targetCallback: makeCallback("target"),
29 };
30 }
31 </script>
32 </head>
33 <body>
34 <h1>UITour tests</h1>
35 <p>Because Firefox is...</p>
36 <p>Never gonna let you down</p>
37 <p>Never gonna give you up</p>
38 </body>
39 </html>