<?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>28381</bug_id>
          
          <creation_ts>2009-08-16 23:28:46 -0700</creation_ts>
          <short_desc>Can&apos;t setDragImage when dragging an image element</short_desc>
          <delta_ts>2023-04-11 21:26:08 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>UNCONFIRMED</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>0</everconfirmed>
          <reporter name="Francisco Tolmasky">tolmasky</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>akeerthi</cc>
    
    <cc>dtrebbien</cc>
    
    <cc>matiasnu</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>140671</commentid>
    <comment_count>0</comment_count>
      <attachid>34955</attachid>
    <who name="Francisco Tolmasky">tolmasky</who>
    <bug_when>2009-08-16 23:28:46 -0700</bug_when>
    <thetext>Created attachment 34955
Drag image, you won&apos;t get red div, add draggable=true, then you will.

When dragging an image element specifically, setDragImage is ignored unless draggable=&quot;true&quot; is set explicitly on the element. Every other element allows it as long as a parent has draggable set. FireFox also allows it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>911381</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Trebbien">dtrebbien</who>
    <bug_when>2013-07-24 11:53:13 -0700</bug_when>
    <thetext>This issue was recently fixed in Chrome:
http://code.google.com/p/chromium/issues/detail?id=259078

I am seeing this issue in WebKit nightly r153084 built on 24 July 2013.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1948029</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-04-11 15:17:13 -0700</bug_when>
    <thetext>Fixed in this commit - https://src.chromium.org/viewvc/blink?view=revision&amp;revision=154032

We still have this code - https://searchfox.org/wubkat/source/Source/WebCore/page/DragController.cpp#1033</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1948129</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-04-11 21:26:08 -0700</bug_when>
    <thetext>Using attached test case - into JSFiddle (with DOCTYPE) - https://jsfiddle.net/9ta5w4ok/show

In WebKit ToT (262855@main), I can only drag &quot;Google Image&quot; once after that it does not let me drag it (focus getting stuck), while moving red rect is no issue at all.

Chrome Canary 114 works fine and you can drag both &apos;rect&apos; and &apos;Google&apos; image as much as you want. In case of Firefox Nightly 114, when you drag &apos;Google&apos; image, you get &apos;red&apos; div and not &apos;Google&apos; image.

I think it should be &apos;UI Event&apos; bug rather than &apos;DOM&apos;. Tagging &apos;Aditya&apos; for any input.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>34955</attachid>
            <date>2009-08-16 23:28:46 -0700</date>
            <delta_ts>2009-08-16 23:28:46 -0700</delta_ts>
            <desc>Drag image, you won&apos;t get red div, add draggable=true, then you will.</desc>
            <filename>reduction1.html</filename>
            <type>text/plain</type>
            <size>425</size>
            <attacher name="Francisco Tolmasky">tolmasky</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8c2NyaXB0PgpmdW5jdGlvbiBvbkxvYWQoKQp7CiAgICBkb2N1bWVudC5h
ZGRFdmVudExpc3RlbmVyKCJkcmFnc3RhcnQiLCBmdW5jdGlvbihlKSB7IGUuZGF0YVRyYW5zZmVy
LnNldERyYWdJbWFnZShkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiZHJhZ2dlciIpLCAwLjAsIDAu
MCk7IH0sIGZhbHNlKTsKfQo8L3NjcmlwdD4KPC9oZWFkPgo8Ym9keSBvbmxvYWQgPSAib25Mb2Fk
KCk7IiBkcmFnZ2FibGUgPSAidHJ1ZSI+CjxpbWcgc3JjID0gImh0dHA6Ly93d3cuZ29vZ2xlLmNv
bS9pbnRsL2VuX0FMTC9pbWFnZXMvbG9nby5naWYiIGlkID0gImltYWdlIiA+CjxkaXYgaWQgPSAi
ZHJhZ2dlciIgc3R5bGUgPSAiYmFja2dyb3VuZDpyZWQ7IHdpZHRoOjEwMHB4OyBoZWlnaHQ6MTAw
cHgiPjwvZGl2Pgo8L2JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>