<?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>203434</bug_id>
          
          <creation_ts>2019-10-25 14:26:05 -0700</creation_ts>
          <short_desc>Web Inspector: Right-clicking in color picker should not select color</short_desc>
          <delta_ts>2019-10-28 16:25:16 -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>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nikita Vasilyev">nvasilyev</reporter>
          <assigned_to name="Nikita Vasilyev">nvasilyev</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>hi</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1584010</commentid>
    <comment_count>0</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2019-10-25 14:26:05 -0700</bug_when>
    <thetext>It should show a context menu.

This is NOT a regression. It&apos;s been like this for years.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1584012</commentid>
    <comment_count>1</comment_count>
      <attachid>381967</attachid>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2019-10-25 14:30:29 -0700</bug_when>
    <thetext>Created attachment 381967
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1584015</commentid>
    <comment_count>2</comment_count>
      <attachid>381967</attachid>
    <who name="Devin Rousso">hi</who>
    <bug_when>2019-10-25 14:36:10 -0700</bug_when>
    <thetext>Comment on attachment 381967
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=381967&amp;action=review

rs=me

&gt; Source/WebInspectorUI/UserInterface/Views/ColorSquare.js:152
&gt; +        if (event.button !== 0 || event.ctrlKey)

Does this work for non-macOS systems too?  Should it only check for `event.ctrlKey` if `WI.Platform.name === &quot;mac&quot;`?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1584023</commentid>
    <comment_count>3</comment_count>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2019-10-25 14:50:24 -0700</bug_when>
    <thetext>(In reply to Devin Rousso from comment #2)
&gt; Comment on attachment 381967 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=381967&amp;action=review
&gt; 
&gt; rs=me
&gt; 
&gt; &gt; Source/WebInspectorUI/UserInterface/Views/ColorSquare.js:152
&gt; &gt; +        if (event.button !== 0 || event.ctrlKey)
&gt; 
&gt; Does this work for non-macOS systems too?  Should it only check for
&gt; `event.ctrlKey` if `WI.Platform.name === &quot;mac&quot;`?

Hm, I&apos;m not sure. However, we use `if (event.button !== 0 || event.ctrlKey)` everywhere in Web Inspector (in 13 other places).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1584675</commentid>
    <comment_count>4</comment_count>
      <attachid>381967</attachid>
    <who name="Nikita Vasilyev">nvasilyev</who>
    <bug_when>2019-10-28 15:27:42 -0700</bug_when>
    <thetext>Comment on attachment 381967
Patch

I&apos;ll land this. If we decide to change Control-click behavior on non-Mac platforms, it should be a separate patch that modifies all `event.button !== 0 || event.ctrlKey` conditions, not just in the color picker.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1584716</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-10-28 16:24:05 -0700</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 381967:

webaudio/stereo2mono-down-mixing.html bug 203538 (authors: ap@webkit.org, crogers@google.com, haraken@chromium.org, mark.lam@apple.com, and sam@webkit.org)
The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1584718</commentid>
    <comment_count>6</comment_count>
      <attachid>381967</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-10-28 16:24:54 -0700</bug_when>
    <thetext>Comment on attachment 381967
Patch

Clearing flags on attachment: 381967

Committed r251682: &lt;https://trac.webkit.org/changeset/251682&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1584719</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-10-28 16:24:56 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1584720</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-10-28 16:25:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/56689660&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>381967</attachid>
            <date>2019-10-25 14:30:29 -0700</date>
            <delta_ts>2019-10-28 16:24:54 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>1293</size>
            <attacher name="Nikita Vasilyev">nvasilyev</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJJbnNwZWN0b3JVSS9DaGFuZ2VMb2cgYi9Tb3VyY2UvV2Vi
SW5zcGVjdG9yVUkvQ2hhbmdlTG9nCmluZGV4IDJiNTA5NDY1NmZiLi4zNmIxYjMyNTBkOCAxMDA2
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L1VzZXJJbnRlcmZhY2UvVmlld3MvQ29sb3JTcXVhcmUuanMKQEAgLTE0
OSw2ICsxNDksOSBAQCBXSS5Db2xvclNxdWFyZSA9IGNsYXNzIENvbG9yU3F1YXJlCiAKICAgICBf
aGFuZGxlTW91c2Vkb3duKGV2ZW50KQogICAgIHsKKyAgICAgICAgaWYgKGV2ZW50LmJ1dHRvbiAh
PT0gMCB8fCBldmVudC5jdHJsS2V5KQorICAgICAgICAgICAgcmV0dXJuOworCiAgICAgICAgIHdp
bmRvdy5hZGRFdmVudExpc3RlbmVyKCJtb3VzZW1vdmUiLCB0aGlzLCB0cnVlKTsKICAgICAgICAg
d2luZG93LmFkZEV2ZW50TGlzdGVuZXIoIm1vdXNldXAiLCB0aGlzLCB0cnVlKTsKICAgICAgICAg
dGhpcy5fdXBkYXRlQ29sb3JGb3JNb3VzZUV2ZW50KGV2ZW50KTsK
</data>

          </attachment>
      

    </bug>

</bugzilla>