webkit-any-link with cursor: auto is displaying cursor on links as default instead of pointer (on hover) after mouseup event that returns false
Reported by
n...@getaround.com,
Jan 27 2017
|
|||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36 Steps to reproduce the problem: Visit the following URLs for a better introduction to this problem: http://stackoverflow.com/q/38530418 https://jsfiddle.net/tfq8h9hw/ Steps to reproduce the problem: 1. Create an anchor tag with an href attribute (or visit the JSFiddle above). 2. Attach an event handler onmouseup to the document, which returns false (or visit the JSFiddle above). 3. Hover over the anchor, cursor should be displayed as pointer. 4. Click anywhere outside the anchor, and hover over the anchor again. What is the expected behavior? The cursor should still be displayed as pointer when hovering over the anchor again. What went wrong? The cursor is being displayed as default. Did this work before? N/A Chrome version: 55.0.2883.95 Channel: n/a OS Version: OS X 10.12.2 Flash Version: Shockwave Flash 24.0 r0 I think this has to do with the :webkit-any-link pseudo-selector. It is automatically setting links to have cursor: auto, which is deciding how the cursor will be displayed (default vs pointer). Note that clicking on the anchor after step 4 will make the cursor behave normally again (displaying pointer on hover).
,
Jan 30 2017
Confirmed on Linux, 56 and nightly.
,
Jan 31 2017
,
Jan 31 2017
Able to reproduce the issue on Mac 10.12.2 and Linux Ubuntu-14.04 using chrome stable version 56.0.2924.76 and canary 58.0.2997.0 This is regression issue broken in M51.Please find the bisect information as below Narrow Bisect:: =============== Good :51.0.2693.0 -- (build revision 383600) Bad:: 51.0.2694.0 -- (build revision 383878) ChangeLog: ================ https://chromium.googlesource.com/chromium/src/+log/8989a96fdda843e8debdedfa77367ae63e010d5d..112c661e776be3a9a3ba04c2de484d0687630e83 Possible suspect ================== https://chromium.googlesource.com/chromium/src/+/9e80a9e5b5b71a48119225a614b7c0b8369badf2 Review URL: https://codereview.chromium.org/1774123006 kotenkov@ could you please look into this issue if it is related to your change,else please help us in finding the appropriate owner for this issue. Thanks,
,
Feb 12 2017
,
Mar 13 2017
,
Mar 25 2017
Both Firefox and Edge don't change cursor shape. But, Chrome change cursor shape to Arrow then back to Link shape.
,
Mar 30 2017
nzolghadr@ can you take over investigating this? It is certainly reproducible
,
May 5 2017
nzolghadr@ ping
,
May 15 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/212a2f1bb04d49d123035f2338332d5afe0ee075 commit 212a2f1bb04d49d123035f2338332d5afe0ee075 Author: nzolghadr <nzolghadr@chromium.org> Date: Mon May 15 20:23:19 2017 Clear the state of scroll and selection onmouseup Clear the state of scroll and selection when mouse is released regardless of what js has done on mouseup including preventDefault. BUG= 686209 Review-Url: https://codereview.chromium.org/2871703003 Cr-Commit-Position: refs/heads/master@{#471883} [modify] https://crrev.com/212a2f1bb04d49d123035f2338332d5afe0ee075/third_party/WebKit/Source/core/input/EventHandler.cpp [modify] https://crrev.com/212a2f1bb04d49d123035f2338332d5afe0ee075/third_party/WebKit/Source/core/input/EventHandlerTest.cpp [modify] https://crrev.com/212a2f1bb04d49d123035f2338332d5afe0ee075/third_party/WebKit/Source/core/input/MouseEventManager.cpp [modify] https://crrev.com/212a2f1bb04d49d123035f2338332d5afe0ee075/third_party/WebKit/Source/core/input/MouseEventManager.h
,
May 16 2017
|
|||||||||
►
Sign in to add a comment |
|||||||||
Comment 1 by tkent@chromium.org
, Jan 30 2017