searchbar in the tab bar couldn't receive mousedown events because the event was wrongly canceled. textbox should be a clickable element which can receive mousedown events always.

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-03-18 21:48:54 +09:00
parent 6ee1bf6f9c
commit 7cd0d20f50

View File

@ -669,7 +669,7 @@ var TreeStyleTabUtils = {
isEventFiredOnClickable : function TSTUtils_isEventFiredOnClickable(aEvent)
{
return this.evaluateXPath(
'ancestor-or-self::*[contains(" button toolbarbutton scrollbar popup menupopup panel tooltip splitter ", concat(" ", local-name(), " "))]',
'ancestor-or-self::*[contains(" button toolbarbutton scrollbar popup menupopup panel tooltip splitter textbox ", concat(" ", local-name(), " "))]',
aEvent.originalTarget,
Ci.nsIDOMXPathResult.BOOLEAN_TYPE
).booleanValue;