mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 756433 - Treat labels without an associated form element as unclickable. r=wesj
This commit is contained in:
parent
a9011adbd5
commit
83942ac597
@ -3748,7 +3748,7 @@ const ElementTouchHelper = {
|
||||
},
|
||||
|
||||
isElementClickable: function isElementClickable(aElement, aUnclickableCache, aAllowBodyListeners) {
|
||||
const selector = "a,:link,:visited,[role=button],button,input,select,textarea,label";
|
||||
const selector = "a,:link,:visited,[role=button],button,input,select,textarea";
|
||||
|
||||
let stopNode = null;
|
||||
if (!aAllowBodyListeners && aElement && aElement.ownerDocument)
|
||||
@ -3761,6 +3761,8 @@ const ElementTouchHelper = {
|
||||
return true;
|
||||
if (elem.mozMatchesSelector && elem.mozMatchesSelector(selector))
|
||||
return true;
|
||||
if (elem instanceof HTMLLabelElement && elem.control != null)
|
||||
return true;
|
||||
if (aUnclickableCache)
|
||||
aUnclickableCache.push(elem);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user