I am seeing this on a lot of web pages, but not all. This can happen if I right click on a hyperlink to, for example, inspect it, or open it in a new tab. This causes the link to be followed as if I had clicked on it. Because this does not happen every time, here is one time I have managed to reproduce it: * On github, upload an image in an issue comment * Save the comment * Right-click on the image to inspect it * Safari will follow the link for the image and display, which is not what we want.
I have made a screen-capture video which demonstrates this problem at https://youtu.be/dEgAdwaGiZQ I am using Safari Version 12.0.1 (14606.2.104.1.1) on Mac OS 10.14.1
Thank you for the report! Does one need to upload the image to reproduce, or does using an existing image work? Could you share an existing URL if the latter is sufficient? I haven't seen this at all, so my instinct is to suspect an event handling race on the website, or in some extension that you might have. Does this happen on many sites, and does it happen in a clean user account?
Created attachment 359267 [details] Where this bug appears on amazon
Hi Alexey, thanks. This bug does not happen for me systematically. I have attached of screenshot of where this appears on Amazon.com for me today. I can systematically reproduce this, for now at least, by * going to amazon.com * right-clicking on that link * selecting "inspect element" * the inspection tab shows up, but the link is also followed. This happens to me in a "Private window" as well. I will try in the Mac OS guest user account as well.
To follow up, when I log in as "Guest User", this does not happen. Also, in the Preferences > Extensions tab, I have no extensions. Any guidance on how to debug this would be most appreciated!
Thank you for the additional details! I can't reproduce or think about what kind of difference could be causing this, but CC'ing folks who may have know more about this area. One more question though: what exact device are you using to control the mouse? Do you have a different device to try? I tried to reproduce with a built in MacBook Pro trackpad and with an Apple Mighty Mouse.
<rdar://problem/47319364>
> what exact device are you using to control the mouse I am using a built-in Mac Book Pro trackpad
Probably https://trac.webkit.org/changeset/239686/webkit?
But I don’t know when that regressed
Good catch. That sounds identical, but it was also stated that the patch was fixing a regression. Brian, is this a duplicate of the issue that you fixed?
(In reply to Alexey Proskuryakov from comment #11) > Good catch. That sounds identical, but it was also stated that the patch was > fixing a regression. > > Brian, is this a duplicate of the issue that you fixed? It sure sounds like it. Please verify in latest Safari Technology Preview.
Here is a screen capture of this bug appearing on a version of Safari Technology Preview I downloaded today. See https://www.youtube.com/watch?v=kkcT4CKB9rY&feature=youtu.be Release 73 (Safari 12.1, WebKit 14607.1.18.3)
It is expected that the current STP doesn't have the fix yet. Per release notes, it is based on r239566 (https://webkit.org/blog/8555/release-notes-for-safari-technology-preview-73/), and the fix was made in r239686. But it's good that it reproduced for you in STP, that way we can be confident in whether it's fixed once you test STP 74.