Mail compose: right clicking an image attachment selects it
Pull request: https://github.com/WebKit/WebKit/pull/593
Committed r294113 (250494@main): <https://commits.webkit.org/250494@main> Reviewed commits have been landed. Closing PR #593 and removing active labels.
<rdar://problem/93189849>
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.
I see some discussion in the PR, so CC'ing folks who participated in it. That discussion doesn't appear to answer my question.
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't selected.
Re-opened since this is blocked by bug 240381