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 | <?xml version="1.0"?> |
michael@0 | 2 | |
michael@0 | 3 | <bindings xmlns="http://www.mozilla.org/xbl" |
michael@0 | 4 | xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
michael@0 | 5 | <binding id="element-popup"> |
michael@0 | 6 | |
michael@0 | 7 | <implementation implements="nsIPopupBoxObject"> |
michael@0 | 8 | <method name="showPopup"> |
michael@0 | 9 | <parameter name="srcConent"/> |
michael@0 | 10 | <parameter name="xpos"/> |
michael@0 | 11 | <parameter name="ypos"/> |
michael@0 | 12 | <parameter name="popupType"/> |
michael@0 | 13 | <parameter name="anchorAlignment"/> |
michael@0 | 14 | <parameter name="popupAlignment"/> |
michael@0 | 15 | <body> |
michael@0 | 16 | <![CDATA[ |
michael@0 | 17 | this.style.visibility = 'visible'; |
michael@0 | 18 | this.style.left = xpos + "px"; |
michael@0 | 19 | this.style.top = ypos + "px"; |
michael@0 | 20 | ]]> |
michael@0 | 21 | </body> |
michael@0 | 22 | </method> |
michael@0 | 23 | |
michael@0 | 24 | <method name="hidePopup"> |
michael@0 | 25 | <body> |
michael@0 | 26 | <![CDATA[ |
michael@0 | 27 | this.style.visibility = 'hidden'; |
michael@0 | 28 | let event = document.createEvent("Events"); |
michael@0 | 29 | event.initEvent("popuphidden", true, false); |
michael@0 | 30 | let dispatcher = this; |
michael@0 | 31 | dispatcher.dispatchEvent(event); |
michael@0 | 32 | ]]> |
michael@0 | 33 | </body> |
michael@0 | 34 | </method> |
michael@0 | 35 | </implementation> |
michael@0 | 36 | </binding> |
michael@0 | 37 | </bindings> |