Bug 178005

Summary: [Readable Streams API] Implement canCloseOrEnqueue
Product: WebKit Reporter: Romain Bellessort <romain.wkt>
Component: WebCore Misc.Assignee: Romain Bellessort <romain.wkt>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, calvaris, commit-queue, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews114 for mac-elcapitan
none
Patch
none
Patch none

Description Romain Bellessort 2017-10-06 02:59:52 PDT
Implement readabelStreamDefaultControllerCanCloseOrEnqueue function, which has been added to the spec to factorize similar tests that were made at multiple places.
Comment 1 Romain Bellessort 2017-10-06 03:48:21 PDT
Created attachment 323007 [details]
Patch
Comment 2 Build Bot 2017-10-06 05:16:19 PDT
Comment on attachment 323007 [details]
Patch

Attachment 323007 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/4780230

New failing tests:
workers/wasm-hashset.html
Comment 3 Build Bot 2017-10-06 05:16:20 PDT
Created attachment 323009 [details]
Archive of layout-test-results from ews114 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 4 Romain Bellessort 2017-10-06 06:01:30 PDT
Created attachment 323011 [details]
Patch
Comment 5 youenn fablet 2017-10-06 08:33:02 PDT
Comment on attachment 323011 [details]
Patch

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

This sound ok to me.
We loose some precision in the exception messages but I guess this is ok.

> Source/WebCore/Modules/streams/ReadableStreamInternals.js:547
> +    return false;

Maybe we can write this as a one liner?
Comment 6 Romain Bellessort 2017-10-09 01:33:19 PDT
Created attachment 323162 [details]
Patch
Comment 7 Romain Bellessort 2017-10-09 05:27:07 PDT
(In reply to youenn fablet from comment #5)
> Comment on attachment 323011 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=323011&action=review
> 
> This sound ok to me.
> We loose some precision in the exception messages but I guess this is ok.
> 
> > Source/WebCore/Modules/streams/ReadableStreamInternals.js:547
> > +    return false;
> 
> Maybe we can write this as a one liner?

Thanks, I've changed that in the committed patch.
Comment 8 WebKit Commit Bot 2017-10-09 05:53:14 PDT
Comment on attachment 323162 [details]
Patch

Clearing flags on attachment: 323162

Committed r223044: <http://trac.webkit.org/changeset/223044>
Comment 9 WebKit Commit Bot 2017-10-09 05:53:16 PDT
All reviewed patches have been landed.  Closing bug.
Comment 10 Radar WebKit Bug Importer 2017-10-09 05:53:37 PDT
<rdar://problem/34884312>