When a web page removes the click handler from an element, webkit
leaves the event listener on the event target node. In practice, this
works fine, because the click can't dispatched -- there's no click
handler anymore.

On Android's browser, we draw a focus ring (like the ring Safari draws
when tabbing) around everything that's clickable. If there's no touch
/ mouse interface, it's possible to interact with the whole web page
with directional arrows and a center button.

The clickability of an element is determined by looking for event
listeners -- but in the case described above, the event listener
remains after the onClick() attribute is gone.

Here's a bug that includes a demonstration page, and a proof-of-concept fix:
https://bugs.webkit.org/show_bug.cgi?id=23318

What's the right way to fix this bug?

Thanks
Cary
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to