<?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>58732</bug_id>
          
          <creation_ts>2011-04-16 11:05:04 -0700</creation_ts>
          <short_desc>[Qt] Unable to DnD content in certain websites</short_desc>
          <delta_ts>2014-02-03 03:17:32 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Aparna Nandyal">aparna.nand</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>eric</cc>
    
    <cc>ossy</cc>
    
    <cc>yael</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>387264</commentid>
    <comment_count>0</comment_count>
    <who name="Aparna Nandyal">aparna.nand</who>
    <bug_when>2011-04-16 11:05:04 -0700</bug_when>
    <thetext>Steps to reproduce:
1. Open QtTestBrowser
2. Launch http://www.webreference.com/programming/javascript/dragdropie/Example2.htm or http://html5demos.com/drag-anything
3. Try to drag and drop content as mentioned

Expected results: 
It works as mentioned in the website

Actual result:
undefined is shown instead of dropped content.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>387271</commentid>
    <comment_count>1</comment_count>
    <who name="Aparna Nandyal">aparna.nand</who>
    <bug_when>2011-04-16 11:24:28 -0700</bug_when>
    <thetext>Analysis:
Refer http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dnd 

As per the document, when getData is called:
If format equals &quot;text&quot;, change it to &quot;text/plain&quot;.
If format equals &quot;url&quot;, change it to &quot;text/uri-list&quot;

Few other webkit ports like Win, chromium adhere to this. 

That is when setData is used with say text/plain or text/uri-list and getData is called with text or url (or vice versa), DnD fails. In the current code, it does not recognize &quot;text&quot; = &quot;text/plain&quot; and &quot;url&quot; = &quot;text/uri-list&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>387279</commentid>
    <comment_count>2</comment_count>
      <attachid>89930</attachid>
    <who name="Aparna Nandyal">aparna.nand</who>
    <bug_when>2011-04-16 12:37:44 -0700</bug_when>
    <thetext>Created attachment 89930
Patch for review

Fixes the problem. Qt DnD has a problem hence unable to write an auto test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>387823</commentid>
    <comment_count>3</comment_count>
      <attachid>89930</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-04-18 10:03:50 -0700</bug_when>
    <thetext>Comment on attachment 89930
Patch for review

I&apos;m sure this is testable.  Do we have tests which cover this?  If not, we need to add some.  If we do, we should be updating the expected results.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>387824</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-04-18 10:04:40 -0700</bug_when>
    <thetext>Can you please refernece the Qt DnD bug in your ChangeLog if you&apos;re prevented in adding tests by it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>388426</commentid>
    <comment_count>5</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2011-04-19 05:27:38 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Can you please refernece the Qt DnD bug in your ChangeLog if you&apos;re prevented in adding tests by it?

It isn&apos;t a Qt bug that prevents us from using auto tests for DnD.
I tried to explain the issue in https://bugs.webkit.org/show_bug.cgi?id=31332#c7 and you can see some more discussion in that bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>975199</commentid>
    <comment_count>6</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2014-02-03 03:17:32 -0800</bug_when>
    <thetext>=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>89930</attachid>
            <date>2011-04-16 12:37:44 -0700</date>
            <delta_ts>2011-04-18 10:03:50 -0700</delta_ts>
            <desc>Patch for review</desc>
            <filename>patch_58732</filename>
            <type>text/plain</type>
            <size>0</size>
            <attacher name="Aparna Nandyal">aparna.nand</attacher>
            
              <data encoding="base64"></data>
<flag name="review"
          id="82647"
          type_id="1"
          status="-"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>