mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 765372 - Add some null safety to isElementClickable. r=wesj
This commit is contained in:
parent
1c316f2591
commit
a37df86e2d
@ -3011,7 +3011,7 @@ const ElementTouchHelper = {
|
||||
if (!aAllowBodyListeners && aElement && aElement.ownerDocument)
|
||||
stopNode = aElement.ownerDocument.body;
|
||||
|
||||
for (let elem = aElement; elem != stopNode; elem = elem.parentNode) {
|
||||
for (let elem = aElement; elem && elem != stopNode; elem = elem.parentNode) {
|
||||
if (aUnclickableCache && aUnclickableCache.indexOf(elem) != -1)
|
||||
continue;
|
||||
if (this._hasMouseListener(elem))
|
||||
|
Loading…
Reference in New Issue
Block a user