Changeset 50888 in webkit


Ignore:
Timestamp:
Nov 12, 2009 11:21:52 AM (15 years ago)
Author:
dbates@webkit.org
Message:

2009-11-12 Daniel Bates <dbates@webkit.org>

Reviewed by Darin Adler.

https://bugs.webkit.org/show_bug.cgi?id=30291

Fixes an issue where the returned drop effect is incorrect when
effectAllowed == "uninitialized".

According to section 7.9.2 of the HTML 5 spec.
<http://dev.w3.org/html5/spec/Overview.html#the-dragevent-and-datatransfer-interfaces>
when effectAllowed = "uninitialized" the resulting dropEffect should be the
user-specified dropEffect (i.e. "copy", "move", "link") and "none" for any
other case.


No test cases are included because we have an existing test case from
bug #24731.

  • dom/Clipboard.cpp: (WebCore::dragOpFromIEOp): Added case for op == "uninitialized".

2009-11-12 Daniel Bates <dbates@webkit.org>

Reviewed by Darin Adler.

https://bugs.webkit.org/show_bug.cgi?id=30291

Rebased results for existing test case fast/events/drag-and-drop.html
from bug #24731.

Now, we can run the part of the test when effectAllowed == "uninitialized".

  • fast/events/drag-and-drop-expected.txt: Rebased results.
  • fast/events/drag-and-drop.html: Removed notice about this bug (#30291).
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r50883 r50888  
     12009-11-12  Daniel Bates  <dbates@webkit.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=30291
     6
     7        Rebased results for existing test case fast/events/drag-and-drop.html
     8        from bug #24731.
     9
     10        Now, we can run the part of the test when effectAllowed == "uninitialized".
     11
     12        * fast/events/drag-and-drop-expected.txt: Rebased results.
     13        * fast/events/drag-and-drop.html: Removed notice about this bug (#30291).
     14
    1152009-11-12  Chris Fleizach  <cfleizach@apple.com>
    216
  • trunk/LayoutTests/fast/events/drag-and-drop-expected.txt

    r50866 r50888  
    11This test checks that drag-and-drop support works and conforms to the HTML 5 specification.
    22For each effectAllowed, iterates through the possible dropEffects: none, copy, move, link, dummy.
    3 
    4 Note, this test fails when effectAllowed == "uninitialized" because this effect has not been implemented yet (see bug #30291).
    53
    64On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
     
    119
    1210PASS event.dataTransfer.dropEffect is "none"
    13 FAIL event.dataTransfer.dropEffect should be copy. Was none.
    14 FAIL event.dataTransfer.dropEffect should be move. Was none.
    15 FAIL event.dataTransfer.dropEffect should be link. Was none.
     11PASS event.dataTransfer.dropEffect is "copy"
     12PASS event.dataTransfer.dropEffect is "move"
     13PASS event.dataTransfer.dropEffect is "link"
    1614PASS event.dataTransfer.dropEffect is "none"
    1715
  • trunk/LayoutTests/fast/events/drag-and-drop.html

    r50866 r50888  
    177177    <script>
    178178        description("This test checks that drag-and-drop support works and conforms to the HTML 5 specification.<br/>" +
    179                     "For each effectAllowed, iterates through the possible dropEffects: none, copy, move, link, dummy.<br/><br/>" +
    180                     "Note, this test fails when effectAllowed == &quot;uninitialized&quot; because this effect has not been " +
    181                     "implemented yet (see bug #30291).");
     179                    "For each effectAllowed, iterates through the possible dropEffects: none, copy, move, link, dummy.");
    182180        var successfullyParsed = true;
    183181    </script>
  • trunk/WebCore/ChangeLog

    r50886 r50888  
     12009-11-12  Daniel Bates  <dbates@webkit.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=30291
     6
     7        Fixes an issue where the returned drop effect is incorrect when
     8        effectAllowed == "uninitialized".
     9
     10        According to section 7.9.2 of the HTML 5 spec.
     11        <http://dev.w3.org/html5/spec/Overview.html#the-dragevent-and-datatransfer-interfaces>
     12        when effectAllowed = "uninitialized" the resulting dropEffect should be the
     13        user-specified dropEffect (i.e. "copy", "move", "link") and "none" for any
     14        other case.
     15       
     16        No test cases are included because we have an existing test case from
     17        bug #24731.
     18
     19        * dom/Clipboard.cpp:
     20        (WebCore::dragOpFromIEOp): Added case for op == "uninitialized".
     21
    1222009-11-12  Pavel Feldman  <pfeldman@chromium.org>
    223
  • trunk/WebCore/dom/Clipboard.cpp

    r48321 r50888  
    5656{
    5757    // yep, it's really just this fixed set
     58    if (op == "uninitialized")
     59        return DragOperationEvery;
    5860    if (op == "none")
    5961        return DragOperationNone;
Note: See TracChangeset for help on using the changeset viewer.