Changeset 49203 in webkit


Ignore:
Timestamp:
Oct 6, 2009 12:14:39 PM (15 years ago)
Author:
dbates@webkit.org
Message:

2009-10-06 Daniel Bates <dbates@webkit.org>

Reviewed by Eric Seidel.

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


Fixes an issue where the Mac build does return the correct drop effect
with respect to the HTML 5 specification when effectAllowed == "none".


Currently, when effectAllowed == "none" and dropEffect == "copy" or
dropEffect == "move" the resulting drop effect is "copy" and "move",
respectively. However, the HTML 5 specification states that regardless
of the specified dropEffect, when effectAllowed == "none" the resulting
drop effect should be "none".

  • WebView/WebHTMLView.mm: (-[WebHTMLView draggingSourceOperationMaskForLocal:]):

2009-10-06 Daniel Bates <dbates@webkit.org>

Reviewed by Eric Seidel.

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


Tests that drag-and-drop returns dropEffect = "none" when
effectAllowed == "none", regardless of the user-specified
drop effect.

  • fast/events/drag-and-drop-none-expected.txt: Added.
  • fast/events/drag-and-drop-none.html: Added.
  • platform/win/Skipped: This test does not work under Windows. We need the fix for bug #24731.
Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r49199 r49203  
     12009-10-06  Daniel Bates  <dbates@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=30107
     6       
     7        Tests that drag-and-drop returns dropEffect = "none" when
     8        effectAllowed == "none", regardless of the user-specified
     9        drop effect.
     10
     11        * fast/events/drag-and-drop-none-expected.txt: Added.
     12        * fast/events/drag-and-drop-none.html: Added.
     13        * platform/win/Skipped: This test does not work under
     14        Windows. We need the fix for bug #24731.
     15
    1162009-10-06  Kent Tamura  <tkent@chromium.org>
    217
  • trunk/LayoutTests/platform/win/Skipped

    r49045 r49203  
    105105fast/events/drag-in-frames.html
    106106fast/events/standalone-image-drag-to-editable.html
     107
     108# Windows drag-and-drop does not work correctly (https://bugs.webkit.org/show_bug.cgi?id=24731)
     109fast/events/drag-and-drop-none.html
    107110
    108111# <rdar://problem/5643675> window.scrollTo scrolls a window with no scrollbars
  • trunk/WebKit/mac/ChangeLog

    r49190 r49203  
     12009-10-06  Daniel Bates  <dbates@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=30107
     6       
     7        Fixes an issue where the Mac build does return the correct drop effect
     8        with respect to the HTML 5 specification when effectAllowed == "none".
     9       
     10        Currently, when effectAllowed == "none" and dropEffect == "copy" or
     11        dropEffect == "move" the resulting drop effect is "copy" and "move",
     12        respectively. However, the HTML 5 specification states that regardless
     13        of the specified dropEffect, when effectAllowed == "none" the resulting
     14        drop effect should be "none".
     15
     16        * WebView/WebHTMLView.mm:
     17        (-[WebHTMLView draggingSourceOperationMaskForLocal:]):
     18
    1192009-10-06  Pavel Feldman  <pfeldman@chromium.org>
    220
  • trunk/WebKit/mac/WebView/WebHTMLView.mm

    r48526 r49203  
    34263426        return NSDragOperationNone;
    34273427
    3428     // FIXME: Why do we override the source provided operation here?  Why not in DragController::startDrag
    3429     if (page->dragController()->sourceDragOperation() == DragOperationNone)
    3430         return NSDragOperationGeneric | NSDragOperationCopy;
    3431 
    34323428    return (NSDragOperation)page->dragController()->sourceDragOperation();
    34333429}
Note: See TracChangeset for help on using the changeset viewer.