<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>20186</bug_id>
          
          <creation_ts>2008-07-27 04:23:48 -0700</creation_ts>
          <short_desc>right-click applies :active and doesn&apos;t un-apply when context-menu is shown</short_desc>
          <delta_ts>2022-07-31 13:22:06 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Speck">speck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>mitz</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87073</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Speck">speck</who>
    <bug_when>2008-07-27 04:23:48 -0700</bug_when>
    <thetext>Other browsers doesn&apos;t apply :active when the using the right mouse button.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87074</commentid>
    <comment_count>1</comment_count>
      <attachid>22505</attachid>
    <who name="Peter Speck">speck</who>
    <bug_when>2008-07-27 04:35:02 -0700</bug_when>
    <thetext>Created attachment 22505
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&apos;t, as the other browsers don&apos;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&apos;t seem to support :active at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87075</commentid>
    <comment_count>2</comment_count>
    <who name="Peter Speck">speck</who>
    <bug_when>2008-07-27 04:41:33 -0700</bug_when>
    <thetext>Bug is in r35401, nightly downloaded 2008-07-27</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108974</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-02-09 08:26:22 -0800</bug_when>
    <thetext>Confirmed with r40778. This is also reproducible when right-clicking on a button, for example.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>159647</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2009-11-01 12:23:42 -0800</bug_when>
    <thetext>See also bug 29818.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>160700</commentid>
    <comment_count>5</comment_count>
    <who name="">mitz</who>
    <bug_when>2009-11-04 19:57:45 -0800</bug_when>
    <thetext>…and bug 24427.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887965</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-31 11:33:56 -0700</bug_when>
    <thetext>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 &quot;Green&quot; to &quot;White&quot;, while all other browsers do following:

&gt; Chrome Canary 106 show splash of green color but does not maintain &quot;Green&quot; 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 &quot;Green&quot; splash screen

&gt; Firefox Nightly 105 does not show &quot;Green&quot; at all on right click.

___

Safari 15.6 shows &quot;Green&quot; as long as I hold &quot;Right Click&quot; and also with &quot;Esc&quot; key to dismiss &quot;right click&quot; and mouse cursor position has whole drama in it to show &quot;Green&quot; or &quot;Splash&quot; etc.

Just wanted to share updated results. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887972</commentid>
    <comment_count>7</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-07-31 13:22:06 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>22505</attachid>
            <date>2008-07-27 04:35:02 -0700</date>
            <delta_ts>2008-07-27 04:35:02 -0700</delta_ts>
            <desc>Test-case</desc>
            <filename>RightClick.html</filename>
            <type>text/html</type>
            <size>346</size>
            <attacher name="Peter Speck">speck</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUw+CjxodG1sPgo8aGVhZD4KCTxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQt
VHlwZSIgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PXV0Zi04Ij4KCQk8c3R5bGUgdHlwZT0i
dGV4dC9jc3MiPgoJCQkjdGVzdCB7CgkJCQljdXJzb3I6IHBvaW50ZXI7CgkJCQlwYWRkaW5nOiA1
MHB4OwoJCQkJYm9yZGVyOiAxcHggZG90dGVkIGJsYWNrOwoJCQl9CgkJCSN0ZXN0OmFjdGl2ZSB7
CgkJCQliYWNrZ3JvdW5kLWNvbG9yOiBncmVlbjsKCQkJfQoJCTwvc3R5bGU+Cgk8L2hlYWQ+Cjxi
b2R5PgoJPGRpdiBpZD10ZXN0PgoJCUhlbGxvLCB3b3JsZC4KCTwvZGl2Pgo8L2JvZHk+CjwvaHRt
bD4KCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>