Bug 145299

Summary: [Streams API] Implement ReadableStreamReader.releaseLock
Product: WebKit Reporter: youenn fablet <youennf>
Component: WebCore Misc.Assignee: youenn fablet <youennf>
Severity: Normal CC: calvaris, commit-queue, darin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 138967    
Description Flags
Patch for landing
Patch for landing none

Description youenn fablet 2015-05-21 23:40:33 PDT
Implement https://streams.spec.whatwg.org/#reader-release-lock
Comment 1 youenn fablet 2015-06-16 10:08:37 PDT
Created attachment 254954 [details]
Comment 2 Darin Adler 2015-06-17 15:48:43 PDT
Comment on attachment 254954 [details]

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

> Source/WebCore/Modules/streams/ReadableStream.h:70
> +    bool hasReadPendingRequests() { return m_readRequests.size(); }

Often we use !isEmpty instead of size for such things. In theory isEmpty might be faster than !size.

> Source/WebCore/Modules/streams/ReadableStreamReader.h:36
> +#include "ExceptionCode.h"

If we need only the type for ExceptionCode, then we typically declare it with:

    typedef int ExceptionCode;

rather than including the header.
Comment 3 youenn fablet 2015-06-18 00:58:14 PDT
Created attachment 255096 [details]
Patch for landing
Comment 4 youenn fablet 2015-06-18 01:01:15 PDT
Created attachment 255097 [details]
Patch for landing
Comment 5 WebKit Commit Bot 2015-06-18 01:59:00 PDT
Comment on attachment 255097 [details]
Patch for landing

Clearing flags on attachment: 255097

Committed r185697: <http://trac.webkit.org/changeset/185697>
Comment 6 WebKit Commit Bot 2015-06-18 01:59:05 PDT
All reviewed patches have been landed.  Closing bug.