Bug 74834

Summary: Update dropzone implementation per spec update
Product: WebKit Reporter: Yael <yael>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ojan, tony, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch.
tony: review+, tony: commit-queue-
Patch for landing none

Description Yael 2011-12-18 19:22:24 PST
Per https://bugs.webkit.org/show_bug.cgi?id=58210#c43 the spec has changed, so the webkit implementation needs an update.
Comment 1 Yael 2011-12-18 19:32:43 PST
Created attachment 119802 [details]
Patch

Update support for dropzone attribute to use file: and string: instead of f: and s:.
Comment 2 Kenneth Rohde Christiansen 2011-12-19 01:02:41 PST
Comment on attachment 119802 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=119802&action=review

> Source/WebCore/ChangeLog:11
> +        Update support for dropzone attribute to use file: and string: instead of f: and s:. 
> +
> +        No new tests. Existing tests over this and were updated.
> +

Maybe you should say what spec this is part of?
Comment 3 Yael 2011-12-19 06:34:28 PST
Created attachment 119858 [details]
Patch.

Added link to the spec.
Comment 4 Tony Chang 2011-12-19 10:25:17 PST
Comment on attachment 119858 [details]
Patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=119858&action=review

> Source/WebCore/dom/Clipboard.cpp:213
> +    if (keyword.length() > 5 && keyword.startsWith("file:"))

Nit: startsWith will check the length for you so you can remove the length() > 5 check.

> Source/WebCore/dom/Clipboard.cpp:216
> +    if (keyword.length() > 7 && keyword.startsWith("string:"))

Remove the length() > 7 check.
Comment 5 Yael 2011-12-19 16:20:22 PST
Created attachment 119942 [details]
Patch for landing

Thanks for the review, Tony :)
Comment 6 WebKit Review Bot 2011-12-19 21:27:14 PST
Comment on attachment 119942 [details]
Patch for landing

Clearing flags on attachment: 119942

Committed r103303: <http://trac.webkit.org/changeset/103303>
Comment 7 WebKit Review Bot 2011-12-19 21:27:18 PST
All reviewed patches have been landed.  Closing bug.
Comment 8 Tony Chang 2012-01-03 14:21:50 PST
*** Bug 75495 has been marked as a duplicate of this bug. ***