<?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>279406</bug_id>
          
          <creation_ts>2024-09-09 20:01:46 -0700</creation_ts>
          <short_desc>Remove Quirk shouldAvoidPastingImagesAsWebContent for mail.yahoo.*</short_desc>
          <delta_ts>2025-10-08 20:32:21 -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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://mail.yahoo.com/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>212544</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Karl Dubost">karlcow</reporter>
          <assigned_to name="Karl Dubost">karlcow</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2058823</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-09-09 20:01:46 -0700</bug_when>
    <thetext>A Quirk was created to make it possible to copy an image in Safari and paste it in a New mail context in mail.yahoo.com
  Bug 212544 or rdar://63511613


Steps To Reproduce:
1. Copy any image in Safari
2. Go to mail.yahoo.com and sign in with a personal or test account
3. Compose an email
4. Paste the image in the body

Results:
Expected: I should see the image pasted in the mail compose view


Different results currently depending on the platform. 

# On iPad with Quirks enabled

It copies the URI of the image in the body with this markup.

  &lt;div&gt;&lt;a href=&quot;https://www.operacity.jp/contents/storage/images/exhibition/2023/302/5.jpg&quot; 
          rel=&quot;nofollow&quot;   
          target=&quot;_blank&quot;&gt;https://www.operacity.jp/contents/storage/images/exhibition/2023/302/5.jpg&lt;/a&gt;&lt;br&gt;
  &lt;/div&gt;


# On iPad with Quirks disabled

It copies a blank area for the image.

  &lt;div&gt;&lt;img width=&quot;750&quot; height=&quot;759&quot;&gt;&lt;br&gt;&lt;/div&gt;



# On Desktop with/without the quirk 

&lt;div dir=&quot;ltr&quot; data-setdir=&quot;false&quot;&gt;
  &lt;span&gt;&lt;/span&gt;
  &lt;img data-id=&quot;&lt;f3a265cd-20ec-89fc-6342-eebea8be85bd@yahoo.com&gt;&quot; 
       title=&quot;Image en ligne&quot; 
       alt=&quot;Image en ligne&quot; 
       src=&quot;blob:https://mail.yahoo.com/01bce205-702b-4446-b646-05d2a37420f0&quot; 
       class=&quot;yahoo-inline-image&quot; 
       draggable=&quot;false&quot; 
       style=&quot;max-width: 800px; width: 100%;&quot;&gt;&lt;br&gt;
&lt;/div&gt;


# On iPhone with the Quirks Enabled

A blank area like the iPad. 



The current Quirk is not working as it should. It can be removed or updated.
It should be diagnosed again to understand what is happening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2058824</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-09-09 20:02:08 -0700</bug_when>
    <thetext>&lt;rdar://problem/135633486&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2149600</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2025-10-08 19:21:01 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/52039</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2149619</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-10-08 20:32:19 -0700</bug_when>
    <thetext>Committed 301245@main (1349bcd71c79): &lt;https://commits.webkit.org/301245@main&gt;

Reviewed commits have been landed. Closing PR #52039 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>