<?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>240315</bug_id>
          
          <creation_ts>2022-05-11 13:37:57 -0700</creation_ts>
          <short_desc>Mail compose: right clicking an image attachment selects it</short_desc>
          <delta_ts>2022-05-13 07:20:25 -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>WebKit Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></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>
          <dependson>240381</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kate Cheney">katherine_cheney</reporter>
          <assigned_to name="Kate Cheney">katherine_cheney</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>ap</cc>
    
    <cc>commit-queue</cc>
    
    <cc>rniwa</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1868209</commentid>
    <comment_count>0</comment_count>
    <who name="Kate Cheney">katherine_cheney</who>
    <bug_when>2022-05-11 13:37:57 -0700</bug_when>
    <thetext>Mail compose: right clicking an image attachment selects it</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868228</commentid>
    <comment_count>1</comment_count>
    <who name="Kate Cheney">katherine_cheney</who>
    <bug_when>2022-05-11 14:58:07 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/593</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868491</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-05-12 11:23:41 -0700</bug_when>
    <thetext>Committed r294113 (250494@main): &lt;https://commits.webkit.org/250494@main&gt;

Reviewed commits have been landed. Closing PR #593 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868492</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-05-12 11:24:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/93189849&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868609</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-05-12 18:14:01 -0700</bug_when>
    <thetext>What was the motivation for this change? AFAICT context click always selects its text target on macOS, and it also always selects an image in editable content. 

We had the same behavior as TextEdit, and no longer do.

Also, the commit message looks malformed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868610</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-05-12 18:16:30 -0700</bug_when>
    <thetext>I see some discussion in the PR, so CC&apos;ing folks who participated in it.

That discussion doesn&apos;t appear to answer my question.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868614</commentid>
    <comment_count>6</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2022-05-12 18:26:59 -0700</bug_when>
    <thetext>The motivation was to make right clicking an image in Mail compose *not* select the image. This is the behavior of legacy WebKit compose, and the behavior of WebKit2 compose (which selects images when right-clicking) is a regression.

I had incorrectly thought that this change was aligning us to AppKit (TextEdit/NSTextView) behavior. Upon further testing, this does not appear to be the case — when right clicking an image in TextEdit, the image is indeed selected, but the selection is painted *behind* the image rather than in the foreground, which makes it appear as if the image isn&apos;t selected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868745</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2022-05-13 07:20:25 -0700</bug_when>
    <thetext>Re-opened since this is blocked by bug 240381</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>