From 32ebe749a0242deda845558340aee02bafa83e76 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Thu, 17 Mar 2016 11:01:21 +0000 Subject: Fix for f6925630a7e22b4483bc872d9242776bce5337c1. We should start by checking the *parent* of the candidate descendant. --- content_scripts/link_hints.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index f464f159..ced90cc5 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -321,8 +321,8 @@ LocalHints = while index < position candidateDescendant = visibleElements[index].element for _ in descendantsToCheck - return true if candidateDescendant == element.element candidateDescendant = candidateDescendant?.parentElement + return true if candidateDescendant == element.element index += 1 false # This is not a false positive. element -- cgit v1.2.3