2009-11-12 Daniel Bates <dbates@webkit.org>
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Nov 2009 19:21:52 +0000 (19:21 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Nov 2009 19:21:52 +0000 (19:21 +0000)
commit067b174a2cf90f64224fe44aee4ca11fdac9ab6c
tree52ea1e983735ebb3bac52784902c6e58c3b0082d
parent7c86a12603e20584f90be45eeefc55b94554a98d
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).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@50888 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/drag-and-drop-expected.txt
LayoutTests/fast/events/drag-and-drop.html
WebCore/ChangeLog
WebCore/dom/Clipboard.cpp