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.
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
4 <!--
5 https://bugzilla.mozilla.org/show_bug.cgi?id=414907
6 -->
7 <window title="Mozilla Bug 414907"
8 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
9 <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/>
11 <vbox hidden="true">
12 <bindings xmlns="http://www.mozilla.org/xbl" style="display: block;"
13 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
14 <binding id="anon">
15 <implementation>
16 <constructor>
17 <![CDATA[
18 var node = this.firstChild;
19 this.palette = node;
20 this.removeChild(node);
21 ]]>
22 </constructor>
23 </implementation>
24 </binding>
25 </bindings>
26 </vbox>
28 <!-- test results are displayed in the html:body -->
29 <body xmlns="http://www.w3.org/1999/xhtml">
30 <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=414907"
31 target="_blank">Mozilla Bug 414907</a>
32 </body>
34 <!-- test code goes here -->
35 <script type="application/javascript"><![CDATA[
37 SimpleTest.waitForExplicitFinish();
38 window.onload = function onload() {
39 is($("box").palette.getAttribute("label"), $("command").getAttribute("label"));
40 SimpleTest.finish();
41 }
43 ]]></script>
45 <command id="command" label="label"/>
47 <box id="box" style="-moz-binding:url('#anon');">
48 <button observes="command"/>
49 </box>
53 </window>