<?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>61504</bug_id>
          
          <creation_ts>2011-05-25 21:52:10 -0700</creation_ts>
          <short_desc>[Qt] Multiple drop events when doing DnD of images.</short_desc>
          <delta_ts>2011-06-02 07:45:29 -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>UI Events</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dawit A.">adawit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ademar</cc>
    
    <cc>aparna.nand</cc>
    
    <cc>ariya.hidayat</cc>
    
    <cc>ben</cc>
    
    <cc>commit-queue</cc>
    
    <cc>kling</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>410186</commentid>
    <comment_count>0</comment_count>
    <who name="Dawit A.">adawit</who>
    <bug_when>2011-05-25 21:52:10 -0700</bug_when>
    <thetext>Based on a downstream report, https://bugs.kde.org/show_bug.cgi?id=237759, dragging and dropping any image from any website using QtWebKit from the 2.2 branch produces multiple drop events. This can be reproduced using QtTestBrowser and visiting any site that contains an image. Though I highly doubt it, this issue could potentially be solved the patch that was proposed to fix bug# 58732, but was never landed in webkit ?? Dunno, but the issue is 100% perence reproducable for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>411349</commentid>
    <comment_count>1</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-05-27 05:31:57 -0700</bug_when>
    <thetext>Do we have a test case for this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>411896</commentid>
    <comment_count>2</comment_count>
      <attachid>95271</attachid>
    <who name="Dawit A.">adawit</who>
    <bug_when>2011-05-28 13:39:40 -0700</bug_when>
    <thetext>Created attachment 95271
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>411981</commentid>
    <comment_count>3</comment_count>
    <who name="Aparna Nandyal">aparna.nand</who>
    <bug_when>2011-05-29 10:45:10 -0700</bug_when>
    <thetext>Can you please give more clarity on steps to reproduce the problem? For example, I have opened QtTestBrowser and visited a site that has images. Am I expected to drag the image into some folder?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>411990</commentid>
    <comment_count>4</comment_count>
    <who name="Dawit A.">adawit</who>
    <bug_when>2011-05-29 11:46:10 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Can you please give more clarity on steps to reproduce the problem? For example, I have opened QtTestBrowser and visited a site that has images. Am I expected to drag the image into some folder?

Yes. There is no need to visit another site. Simply click on the attached test case file, then drag and drop the image to a folder of your choice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412299</commentid>
    <comment_count>5</comment_count>
    <who name="Aparna Nandyal">aparna.nand</who>
    <bug_when>2011-05-30 11:25:32 -0700</bug_when>
    <thetext>Finally able to reproduce the problem on trunk. Had problems seeing the bug in nautilus initially. Had to change the folder permissions to be able to see the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412332</commentid>
    <comment_count>6</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-05-30 12:53:59 -0700</bug_when>
    <thetext>This looks suspicious: &lt;http://trac.webkit.org/changeset/49201&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412541</commentid>
    <comment_count>7</comment_count>
    <who name="Aparna Nandyal">aparna.nand</who>
    <bug_when>2011-05-31 03:59:04 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; This looks suspicious: &lt;http://trac.webkit.org/changeset/49201&gt;

Your suspicion is right. The image url is getting appended twice in the above code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>413129</commentid>
    <comment_count>8</comment_count>
      <attachid>95546</attachid>
    <who name="Aparna Nandyal">aparna.nand</who>
    <bug_when>2011-05-31 21:49:34 -0700</bug_when>
    <thetext>Created attachment 95546
Patch v01 for review

The patch fixes problem which was caused by duplicate url entries.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414031</commentid>
    <comment_count>9</comment_count>
      <attachid>95546</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-06-02 04:42:36 -0700</bug_when>
    <thetext>Comment on attachment 95546
Patch v01 for review

r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414037</commentid>
    <comment_count>10</comment_count>
      <attachid>95546</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-06-02 05:11:02 -0700</bug_when>
    <thetext>Comment on attachment 95546
Patch v01 for review

Clearing flags on attachment: 95546

Committed r87897: &lt;http://trac.webkit.org/changeset/87897&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414038</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-06-02 05:11:07 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414062</commentid>
    <comment_count>12</comment_count>
    <who name="Ademar Reis">ademar</who>
    <bug_when>2011-06-02 06:10:46 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; (From update of attachment 95546 [details])
&gt; Clearing flags on attachment: 95546
&gt; 
&gt; Committed r87897: &lt;http://trac.webkit.org/changeset/87897&gt;

No tests? Maybe a test like the one from bug #61314 could be used?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414113</commentid>
    <comment_count>13</comment_count>
    <who name="Ademar Reis">ademar</who>
    <bug_when>2011-06-02 07:45:29 -0700</bug_when>
    <thetext>Revision r87897 cherry-picked into qtwebkit-2.2 with commit 11f8b63 &lt;http://gitorious.org/webkit/qtwebkit/commit/11f8b63&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>95271</attachid>
            <date>2011-05-28 13:39:40 -0700</date>
            <delta_ts>2011-05-28 13:39:40 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>test_case_qtwebkit_bug_61504.html</filename>
            <type>text/html</type>
            <size>153</size>
            <attacher name="Dawit A.">adawit</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8dGl0bGU+SW1hZ2UgRG5EIFRlc3QgQ2FzZTwvdGl0bGU+CjwvaGVhZD4K
PGJvZHk+CjxpbWcgc3JjPSJodHRwOi8vdHJhYy53ZWJraXQub3JnL2Nocm9tZS9zaXRlL2ljb24u
cG5nIiBhbHQ9IndlYmtpdCBpY29uIj4KPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>95546</attachid>
            <date>2011-05-31 21:49:34 -0700</date>
            <delta_ts>2011-06-02 05:11:02 -0700</delta_ts>
            <desc>Patch v01 for review</desc>
            <filename>patch_61504</filename>
            <type>text/plain</type>
            <size>1550</size>
            <attacher name="Aparna Nandyal">aparna.nand</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCBmMGIwOWI3Li44MDBmNDZhIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29y
ZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkNvcmU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