Bug 20186 - right-click applies :active and doesn't un-apply when context-menu is released using escape or click in menubar
Summary: right-click applies :active and doesn't un-apply when context-menu is release...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh OS X 10.5
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2008-07-27 04:23 PDT by Peter Speck
Modified: 2009-11-04 19:57 PST (History)
2 users (show)

See Also:

Test-case (346 bytes, text/html)
2008-07-27 04:35 PDT, Peter Speck
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Speck 2008-07-27 04:23:48 PDT
Other browsers doesn't apply :active when the using the right mouse button.
Comment 1 Peter Speck 2008-07-27 04:35:02 PDT
Created attachment 22505 [details]

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.
Comment 2 Peter Speck 2008-07-27 04:41:33 PDT
Bug is in r35401, nightly downloaded 2008-07-27
Comment 3 Alexey Proskuryakov 2009-02-09 08:26:22 PST
Confirmed with r40778. This is also reproducible when right-clicking on a button, for example.
Comment 4 mitz 2009-11-01 12:23:42 PST
See also bug 29818.
Comment 5 mitz 2009-11-04 19:57:45 PST
…and bug 24427.