WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
165218
[WebIDL] Remove custom bindings for File and Blob constructors
https://bugs.webkit.org/show_bug.cgi?id=165218
Summary
[WebIDL] Remove custom bindings for File and Blob constructors
Sam Weinig
Reported
2016-11-30 13:53:37 PST
[WebIDL] Remove custom bindings for File and Blob constructors
Attachments
Patch
(71.74 KB, patch)
2016-11-30 13:59 PST
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
Patch
(78.22 KB, patch)
2016-11-30 14:17 PST
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
Patch
(78.34 KB, patch)
2016-11-30 14:21 PST
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
Patch
(78.47 KB, patch)
2016-11-30 15:19 PST
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews123 for ios-simulator-wk2
(18.40 MB, application/zip)
2016-11-30 16:27 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews107 for mac-yosemite-wk2
(1.00 MB, application/zip)
2016-11-30 16:29 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews115 for mac-yosemite
(1.56 MB, application/zip)
2016-11-30 16:54 PST
,
Build Bot
no flags
Details
Patch
(108.32 KB, patch)
2016-11-30 17:37 PST
,
Sam Weinig
darin
: review+
Details
Formatted Diff
Diff
Show Obsolete
(7)
View All
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2016-11-30 13:59:17 PST
Created
attachment 295763
[details]
Patch
WebKit Commit Bot
Comment 2
2016-11-30 14:01:01 PST
Attachment 295763
[details]
did not pass style-queue: ERROR: Source/WebCore/fileapi/Blob.h:103: The parameter name "propertyBag" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 28 files If any of these errors are false positives, please file a bug against check-webkit-style.
Sam Weinig
Comment 3
2016-11-30 14:17:47 PST
Created
attachment 295768
[details]
Patch
WebKit Commit Bot
Comment 4
2016-11-30 14:20:21 PST
Attachment 295768
[details]
did not pass style-queue: ERROR: Source/WebCore/fileapi/Blob.h:103: The parameter name "propertyBag" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 31 files If any of these errors are false positives, please file a bug against check-webkit-style.
Sam Weinig
Comment 5
2016-11-30 14:21:48 PST
Created
attachment 295769
[details]
Patch
Sam Weinig
Comment 6
2016-11-30 15:19:41 PST
Created
attachment 295778
[details]
Patch
Build Bot
Comment 7
2016-11-30 16:27:23 PST
Comment on
attachment 295778
[details]
Patch
Attachment 295778
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/2597808
New failing tests: imported/w3c/web-platform-tests/fetch/api/basic/request-headers.html fast/files/blob-constructor.html fast/files/file-constructor.html imported/w3c/web-platform-tests/fetch/api/basic/request-headers-worker.html http/tests/fetch/fetch-as-blob-worker.html http/tests/fetch/fetch-as-blob.html
Build Bot
Comment 8
2016-11-30 16:27:26 PST
Created
attachment 295785
[details]
Archive of layout-test-results from ews123 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 9
2016-11-30 16:29:01 PST
Comment on
attachment 295778
[details]
Patch
Attachment 295778
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/2597839
New failing tests: imported/w3c/web-platform-tests/fetch/api/basic/request-headers.html fast/files/blob-constructor.html fast/files/file-constructor.html imported/w3c/web-platform-tests/fetch/api/basic/request-headers-worker.html http/tests/fetch/fetch-as-blob-worker.html http/tests/fetch/fetch-as-blob.html
Build Bot
Comment 10
2016-11-30 16:29:03 PST
Created
attachment 295786
[details]
Archive of layout-test-results from ews107 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 11
2016-11-30 16:54:44 PST
Comment on
attachment 295778
[details]
Patch
Attachment 295778
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/2597926
New failing tests: imported/w3c/web-platform-tests/fetch/api/basic/request-headers.html fast/files/blob-constructor.html fast/files/file-constructor.html imported/w3c/web-platform-tests/fetch/api/basic/request-headers-worker.html http/tests/fetch/fetch-as-blob-worker.html http/tests/fetch/fetch-as-blob.html
Build Bot
Comment 12
2016-11-30 16:54:47 PST
Created
attachment 295791
[details]
Archive of layout-test-results from ews115 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews115 Port: mac-yosemite Platform: Mac OS X 10.10.5
Sam Weinig
Comment 13
2016-11-30 17:37:22 PST
Created
attachment 295797
[details]
Patch
Darin Adler
Comment 14
2016-11-30 20:30:56 PST
Comment on
attachment 295797
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=295797&action=review
> Source/WebCore/fileapi/Blob.h:37 > #include <wtf/RefCounted.h>
No need for RefCounted.h once we include URL.h.
> Source/WebCore/fileapi/Blob.h:39 > #include <wtf/text/WTFString.h>
No need for WTFString.h once we include URL.h.
> Source/WebCore/fileapi/Blob.h:44 > +};
No need for a semicolon here.
> Source/WebCore/fileapi/BlobBuilder.cpp:73 > + CString utf8Text = UTF8Encoding().encode(text, EntitiesForUnencodables);
Don’t we have a better way to convert to UTF-8? Annoying to have to use a CString.
> Source/WebCore/fileapi/BlobBuilder.h:51 > + void append(RefPtr<JSC::ArrayBuffer>&&); > void append(RefPtr<JSC::ArrayBufferView>&&); > + void append(RefPtr<Blob>&&);
Why RefPtr&& instead of const RefPtr& for these? Separately, why can’t these just take raw pointers instead?
> Source/WebCore/fileapi/File.idl:35 > Exposed=(Window), > JSGenerateToNativeObject, > JSGenerateToJSObject, > ExportMacro=WEBCORE_EXPORT, > - CustomConstructor(sequence<any> fileBits, DOMString fileName, optional FilePropertyBag options), > + Constructor(sequence<BlobPart> fileBits, USVString fileName, optional FilePropertyBag options),
Normally we sort extended attributes alphabetically.
Sam Weinig
Comment 15
2016-12-01 10:05:19 PST
Committed
r209184
: <
http://trac.webkit.org/changeset/209184
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug