Bug 765372 - Add some null safety to isElementClickable. r=wesj

This commit is contained in:
Margaret Leibovic 2012-06-18 10:09:46 -07:00
parent 1c316f2591
commit a37df86e2d

View File

@ -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))