Bug 175474 - Replace DATA_TRANSFER_ITEMS by a runtime flag and add a stub implementation
Summary: Replace DATA_TRANSFER_ITEMS by a runtime flag and add a stub implementation
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords: InRadar
Depends on:
Blocks: 170449
  Show dependency treegraph
 
Reported: 2017-08-11 00:24 PDT by Ryosuke Niwa
Modified: 2017-08-12 15:14 PDT (History)
4 users (show)

See Also:


Attachments
Patch (102.33 KB, patch)
2017-08-11 01:10 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff
Added an IDL test (108.60 KB, patch)
2017-08-11 10:50 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff
Patch for landing (96.68 KB, patch)
2017-08-12 14:47 PDT, Ryosuke Niwa
rniwa: commit-queue+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2017-08-11 00:24:36 PDT
Replace the build flag for dataTransfer.items by a runtime flag and add stub implementation to make it compile.
Comment 1 Radar WebKit Bug Importer 2017-08-11 00:46:54 PDT
<rdar://problem/33844628>
Comment 2 Ryosuke Niwa 2017-08-11 01:10:50 PDT
Created attachment 317921 [details]
Patch
Comment 3 Wenson Hsieh 2017-08-11 02:00:29 PDT
Comment on attachment 317921 [details]
Patch

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

LGTM with some minor comments. This might need a wk2r+ as well. Can we also write a quick LayoutTest to check that we can reference items on a DataTransfer?

> ChangeLog:4
> +        https://bugs.webkit.org/show_bug.cgi?id=175474

If there's a corresponding radar, let's include it in the ChangeLogs.

> Source/WebCore/WebCore.xcodeproj/project.pbxproj:-18606
> -				51F175001F358B3600C74950 /* JSServiceWorkerUpdateViaCache.cpp */,

Are these changes intended?

> Source/WebCore/dom/DataTransferItemList.h:49
> +    { }

Nit - most other classes in WebCore use a style like:

{
}

in the constructor, even when the constructor is empty.
Comment 4 Ryosuke Niwa 2017-08-11 10:48:30 PDT
(In reply to Wenson Hsieh from comment #3)
> Comment on attachment 317921 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=317921&action=review
> 
> LGTM with some minor comments. This might need a wk2r+ as well. Can we also
> write a quick LayoutTest to check that we can reference items on a
> DataTransfer?

I was gonna say W3C surely has a test for this but they don't :( Adding a new IDL test.

> > ChangeLog:4
> > +        https://bugs.webkit.org/show_bug.cgi?id=175474
> 
> If there's a corresponding radar, let's include it in the ChangeLogs.

Added. But it doesn't really matter at this point in time since bug URL is enough to find the radar. It only starts to matter with changes that get merged into branches, or near the branching points. I guess I'm gonna stop importing to radar now that all closed bugs will create a radar automatically after the fact.

> > Source/WebCore/WebCore.xcodeproj/project.pbxproj:-18606
> > -				51F175001F358B3600C74950 /* JSServiceWorkerUpdateViaCache.cpp */,
> 
> Are these changes intended?

Well, it's expected that these changes happen now that webkit-patch auto sorts xcodeproj files.

> > Source/WebCore/dom/DataTransferItemList.h:49
> > +    { }
> 
> Nit - most other classes in WebCore use a style like:
> 
> {
> }
> 
> in the constructor, even when the constructor is empty.

Fixed.
Comment 5 Ryosuke Niwa 2017-08-11 10:50:16 PDT
Created attachment 317936 [details]
Added an IDL test
Comment 6 Wenson Hsieh 2017-08-11 12:49:04 PDT
Comment on attachment 317936 [details]
Added an IDL test

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

> Source/WebCore/dom/DataTransferItem.cpp:46
> +

Nit - Extra newline here.
Comment 7 Ryosuke Niwa 2017-08-12 14:47:09 PDT
Created attachment 318000 [details]
Patch for landing
Comment 8 Ryosuke Niwa 2017-08-12 15:14:55 PDT
Committed r220627: <http://trac.webkit.org/changeset/220627>