NEW 20186
right-click applies :active and doesn't un-apply when context-menu is shown
https://bugs.webkit.org/show_bug.cgi?id=20186
Summary right-click applies :active and doesn't un-apply when context-menu is shown
Peter Speck
Reported 2008-07-27 04:23:48 PDT
Other browsers doesn't apply :active when the using the right mouse button.
Attachments
Test-case (346 bytes, text/html)
2008-07-27 04:35 PDT, Peter Speck
no flags
Peter Speck
Comment 1 2008-07-27 04:35:02 PDT
Created attachment 22505 [details] Test-case When you click using the left mouse button, the background turns green. When you release it, the background reverts to white (as it should). Using the right mouse button makes the background green too (which it probably shouldn't, as the other browsers don't do this), and releasing the context-menu by typing escape or clicking in the menu-bar makes the background stay green. Only by release the context-menu by clicking inside the window makes the background revert to white. Browsers tested: Firefox 2 mac + win, Camino 1.5, Opera 9.1 mac, Opera 9.5 win. IE7 doesn't seem to support :active at all.
Peter Speck
Comment 2 2008-07-27 04:41:33 PDT
Bug is in r35401, nightly downloaded 2008-07-27
Alexey Proskuryakov
Comment 3 2009-02-09 08:26:22 PST
Confirmed with r40778. This is also reproducible when right-clicking on a button, for example.
mitz
Comment 4 2009-11-01 12:23:42 PST
See also bug 29818.
mitz
Comment 5 2009-11-04 19:57:45 PST
…and bug 24427.
Ahmad Saleem
Comment 6 2022-07-31 11:33:56 PDT
I am able to reproduce this bug in Safari 15.6 on macOS 12.5 (or variant of it), when I right click on this test case, it stays green but as soon as I go hold-off my right click, it changes from "Green" to "White", while all other browsers do following: > Chrome Canary 106 show splash of green color but does not maintain "Green" background and lose it immediately, there is some kind of timing difference as well because if I click right click and hold within short milliseconds of hold, there is no "Green" splash screen > Firefox Nightly 105 does not show "Green" at all on right click. ___ Safari 15.6 shows "Green" as long as I hold "Right Click" and also with "Esc" key to dismiss "right click" and mouse cursor position has whole drama in it to show "Green" or "Splash" etc. Just wanted to share updated results. Thanks!
Ryosuke Niwa
Comment 7 2022-07-31 13:22:06 PDT
The issue is now that :active applies so long as as the context menu is open, not that it never gets cleared if escape key is used.
Note You need to log in before you can comment on or make changes to this bug.