diff options
| author | Stephen Blott | 2017-12-15 10:20:59 +0000 | 
|---|---|---|
| committer | GitHub | 2017-12-15 10:20:59 +0000 | 
| commit | 8db85ce1c8c5f959981730a58ba351b3e49b0db2 (patch) | |
| tree | 8652318eaa61bcb52c817445cdc8762db4db59f3 /content_scripts/link_hints.coffee | |
| parent | cbea71f4a41774ef91c384dc679f49d423f6c03b (diff) | |
| parent | f2d7e185c704e3cf8f6ca0c9d3d4da2498610475 (diff) | |
| download | vimium-8db85ce1c8c5f959981730a58ba351b3e49b0db2.tar.bz2 | |
Merge pull request #2871 from smblott-github/detect-click-listeners
Detect click listeners for link hints.
Diffstat (limited to 'content_scripts/link_hints.coffee')
| -rw-r--r-- | content_scripts/link_hints.coffee | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index 0592c96d..e5c6b3ea 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -706,6 +706,9 @@ LocalHints =          isClickable = true          reason = "Open." +    # Detect elements with "click" listeners installed with `addEventListener()`. +    isClickable ||= element.hasAttribute vimiumOnClickAttributeName +      # An element with a class name containing the text "button" might be clickable.  However, real clickables      # are often wrapped in elements with such class names.  So, when we find clickables based only on their      # class name, we mark them as unreliable. | 
