<?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>33697</bug_id>
          
          <creation_ts>2010-01-14 16:37:22 -0800</creation_ts>
          <short_desc>dragOpFromIEOp(&quot;move&quot;) returns DragOperationGeneric instead of DragOperationMove</short_desc>
          <delta_ts>2010-03-25 01:46:53 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>1</everconfirmed>
          <reporter name="Brian Weinstein">bweinstein</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aroben</cc>
    
    <cc>dbates</cc>
    
    <cc>oliver</cc>
    
    <cc>tony</cc>
    
    <cc>yael</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>181001</commentid>
    <comment_count>0</comment_count>
    <who name="Brian Weinstein">bweinstein</who>
    <bug_when>2010-01-14 16:37:22 -0800</bug_when>
    <thetext>dragOpFromIEOp(&quot;move&quot;) returns DragOperationGeneric instead of DragOperationMove. This doesn&apos;t make any sense.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201207</commentid>
    <comment_count>1</comment_count>
      <attachid>51012</attachid>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-03-18 00:46:40 -0700</bug_when>
    <thetext>Created attachment 51012
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201211</commentid>
    <comment_count>2</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-03-18 00:49:35 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; dragOpFromIEOp(&quot;move&quot;) returns DragOperationGeneric instead of
&gt; DragOperationMove. This doesn&apos;t make any sense.

This is causing fast/events/drag-and-drop.html to fail on Chromium.  The test tries to set a dropEffect of &apos;move&apos;, but no operation occurs because the source operation mask doesn&apos;t include generic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201212</commentid>
    <comment_count>3</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-03-18 00:50:31 -0700</bug_when>
    <thetext>Also, as far as I can tell, this code hasn&apos;t changed since the initial commit:
http://trac.webkit.org/changeset/6779</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201263</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-03-18 06:22:16 -0700</bug_when>
    <thetext>How do we know this won&apos;t cause any regressions in interacting with the rest of the OS? Your patch doesn&apos;t mention what effect this will have on platforms that *do* have a concept of a &quot;generic&quot; operation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201275</commentid>
    <comment_count>5</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-03-18 07:11:51 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; How do we know this won&apos;t cause any regressions in interacting with the rest of
&gt; the OS? Your patch doesn&apos;t mention what effect this will have on platforms that
&gt; *do* have a concept of a &quot;generic&quot; operation.

The layout tests pass on mac and manual testing seems to confirm that nothing has regressed.  Is there some other way for me to test for regressions (manual or automated tests)?  I&apos;m happy to write additional tests if you have some suggestions on areas that might not be well covered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201297</commentid>
    <comment_count>6</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-03-18 08:05:13 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; How do we know this won&apos;t cause any regressions in interacting with the rest of
&gt; &gt; the OS? Your patch doesn&apos;t mention what effect this will have on platforms that
&gt; &gt; *do* have a concept of a &quot;generic&quot; operation.
&gt; 
&gt; The layout tests pass on mac and manual testing seems to confirm that nothing
&gt; has regressed.  Is there some other way for me to test for regressions (manual
&gt; or automated tests)?  I&apos;m happy to write additional tests if you have some
&gt; suggestions on areas that might not be well covered.

Have you tried the case mentioned in &lt;http://trac.webkit.org/changeset/3400&gt;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201311</commentid>
    <comment_count>7</comment_count>
      <attachid>51012</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-03-18 08:29:57 -0700</bug_when>
    <thetext>Comment on attachment 51012
Patch

&gt; +        Covered by existing tests (fast/events/drag-and-drop.html).

If this change is covered by those tests, why aren&apos;t the tests failing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201577</commentid>
    <comment_count>8</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-03-18 14:51:04 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (From update of attachment 51012 [details])
&gt; &gt; +        Covered by existing tests (fast/events/drag-and-drop.html).
&gt; 
&gt; If this change is covered by those tests, why aren&apos;t the tests failing?

The win port is passing because it converts generic into move:
http://trac.webkit.org/browser/trunk/WebKit/win/WebView.cpp#L4861

gkt and qt skip this test and this test is failing on the chromium ports.  If you prefer, I can make the chromium ports convert generic to move, but I imagine qt and gtk will have to do the same.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201682</commentid>
    <comment_count>9</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-03-18 19:23:30 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Have you tried the case mentioned in &lt;http://trac.webkit.org/changeset/3400&gt;?

Yes, I am still able to drag text from Safari to Terminal.  Note that I haven&apos;t removed Generic, I just added Move.

Let me know if this isn&apos;t a patch you want to take and I&apos;ll just work around the problem in WebKit/chromium/ like the code in WebKit/win/.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>203866</commentid>
    <comment_count>10</comment_count>
      <attachid>51012</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-03-25 00:33:35 -0700</bug_when>
    <thetext>Comment on attachment 51012
Patch

This looks sane to me.   Doesn&apos;t this also require changes to test_expectations now that that&apos;s in webkit.org?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>203870</commentid>
    <comment_count>11</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-03-25 00:36:48 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; (From update of attachment 51012 [details])
&gt; This looks sane to me.   Doesn&apos;t this also require changes to test_expectations
&gt; now that that&apos;s in webkit.org?

It does.  I will rev the patch in https://bugs.webkit.org/show_bug.cgi?id=36484 which will include the test_expectations change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>203918</commentid>
    <comment_count>12</comment_count>
      <attachid>51012</attachid>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-03-25 01:46:44 -0700</bug_when>
    <thetext>Comment on attachment 51012
Patch

Clearing flags on attachment: 51012

Committed r56513: &lt;http://trac.webkit.org/changeset/56513&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>203919</commentid>
    <comment_count>13</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-03-25 01:46:53 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>51012</attachid>
            <date>2010-03-18 00:46:40 -0700</date>
            <delta_ts>2010-03-25 01:46:44 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-33697-20100318164638.patch</filename>
            <type>text/plain</type>
            <size>2581</size>
            <attacher name="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