WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
146458
[Streams API] Remove ReadableStream and Reader cancel() custom binding
https://bugs.webkit.org/show_bug.cgi?id=146458
Summary
[Streams API] Remove ReadableStream and Reader cancel() custom binding
youenn fablet
Reported
2015-06-30 09:40:43 PDT
We should remove as much custom binding as possible
Attachments
Patch
(8.29 KB, patch)
2015-07-01 01:56 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Using Default in IDL
(6.49 KB, patch)
2015-07-02 06:44 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch for landing
(11.04 KB, patch)
2015-07-02 23:31 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2015-07-01 01:56:49 PDT
Created
attachment 255911
[details]
Patch
youenn fablet
Comment 2
2015-07-02 06:44:51 PDT
Created
attachment 256007
[details]
Using Default in IDL
youenn fablet
Comment 3
2015-07-02 10:47:32 PDT
Comment on
attachment 256007
[details]
Using Default in IDL View in context:
https://bugs.webkit.org/attachment.cgi?id=256007&action=review
> Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:3246 > + push @optionalCallbackArguments, GenerateReturnParameters($function);
With the use of Default=Undefined, the binding generator changes are not needed anymore to support cancel custom removal. But they are still useful in theory, hence why I kept it in this patch. I can remove these changes if needed or add a specific binding expectation test for it.
Darin Adler
Comment 4
2015-07-02 15:05:26 PDT
Comment on
attachment 256007
[details]
Using Default in IDL View in context:
https://bugs.webkit.org/attachment.cgi?id=256007&action=review
> Source/WebCore/Modules/streams/ReadableStream.idl:35 > + [RaisesException] Promise cancel([Default=Undefined] optional any reason);
What default do we get if we don’t specify [Default=Undefined]? JavaScript null? C++ nullptr?
>> Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:3246 >> + push @optionalCallbackArguments, GenerateReturnParameters($function); > > With the use of Default=Undefined, the binding generator changes are not needed anymore to support cancel custom removal. > But they are still useful in theory, hence why I kept it in this patch. > I can remove these changes if needed or add a specific binding expectation test for it.
Definitely should add a bindings test for this if you are keeping it.
youenn fablet
Comment 5
2015-07-02 23:30:43 PDT
Comment on
attachment 256007
[details]
Using Default in IDL View in context:
https://bugs.webkit.org/attachment.cgi?id=256007&action=review
>> Source/WebCore/Modules/streams/ReadableStream.idl:35 >> + [RaisesException] Promise cancel([Default=Undefined] optional any reason); > > What default do we get if we don’t specify [Default=Undefined]? JavaScript null? C++ nullptr?
If no default is specified, the DOM class must provide methods with and without the argument, meaning in that case the two following methods: ReadableStream::cancel(JSPromiseDeferred*, ExceptionCode&); ReadableStream::cancel(JSC::JSValue, JSPromiseDeferred*, ExceptionCode&);
>>> Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:3246 >>> + push @optionalCallbackArguments, GenerateReturnParameters($function); >> >> With the use of Default=Undefined, the binding generator changes are not needed anymore to support cancel custom removal. >> But they are still useful in theory, hence why I kept it in this patch. >> I can remove these changes if needed or add a specific binding expectation test for it. > > Definitely should add a bindings test for this if you are keeping it.
OK
youenn fablet
Comment 6
2015-07-02 23:31:46 PDT
Created
attachment 256082
[details]
Patch for landing
WebKit Commit Bot
Comment 7
2015-07-03 00:29:08 PDT
Comment on
attachment 256082
[details]
Patch for landing Clearing flags on attachment: 256082 Committed
r186257
: <
http://trac.webkit.org/changeset/186257
>
WebKit Commit Bot
Comment 8
2015-07-03 00:29:11 PDT
All reviewed patches have been landed. Closing bug.
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