Commit 1b90c2f0 authored by Adam Rice's avatar Adam Rice Committed by Chromium LUCI CQ

Remove runtime flag for readable byte streams

They are now enabled by default.

BUG=614302

Change-Id: Ied5e70e3bd6405e296d9b6fa0fccec5beb9ce1aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2643419
Auto-Submit: Adam Rice <ricea@chromium.org>
Reviewed-by: default avatarYoichi Osato <yoichio@chromium.org>
Reviewed-by: default avatarYutaka Hirano <yhirano@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845959}
parent 47348743
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
// https://streams.spec.whatwg.org/#rbs-controller-class-definition // https://streams.spec.whatwg.org/#rbs-controller-class-definition
[ [
Exposed=(Window,Worker,Worklet), Exposed=(Window,Worker,Worklet)
RuntimeEnabled=ReadableByteStream
] interface ReadableByteStreamController { ] interface ReadableByteStreamController {
readonly attribute ReadableStreamBYOBRequest? byobRequest; readonly attribute ReadableStreamBYOBRequest? byobRequest;
readonly attribute double? desiredSize; readonly attribute double? desiredSize;
......
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
#include "third_party/blink/renderer/platform/heap/persistent.h" #include "third_party/blink/renderer/platform/heap/persistent.h"
#include "third_party/blink/renderer/platform/heap/visitor.h" #include "third_party/blink/renderer/platform/heap/visitor.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h" #include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/wtf/assertions.h" #include "third_party/blink/renderer/platform/wtf/assertions.h"
#include "third_party/blink/renderer/platform/wtf/deque.h" #include "third_party/blink/renderer/platform/wtf/deque.h"
...@@ -1416,11 +1415,6 @@ void ReadableStream::InitInternal(ScriptState* script_state, ...@@ -1416,11 +1415,6 @@ void ReadableStream::InitInternal(ScriptState* script_state,
// 6. If typeString is "bytes", // 6. If typeString is "bytes",
if (type_string == V8AtomicString(isolate, "bytes")) { if (type_string == V8AtomicString(isolate, "bytes")) {
if (!RuntimeEnabledFeatures::ReadableByteStreamEnabled()) {
exception_state.ThrowRangeError("bytes type is not yet implemented");
return;
}
UseCounter::Count(ExecutionContext::From(script_state), UseCounter::Count(ExecutionContext::From(script_state),
WebFeature::kReadableStreamWithByteSource); WebFeature::kReadableStreamWithByteSource);
......
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
// https://streams.spec.whatwg.org/#byob-reader-class-definition // https://streams.spec.whatwg.org/#byob-reader-class-definition
[ [
Exposed=(Window,Worker,Worklet), Exposed=(Window,Worker,Worklet)
RuntimeEnabled=ReadableByteStream
] interface ReadableStreamBYOBReader { ] interface ReadableStreamBYOBReader {
[CallWith=ScriptState, RaisesException] constructor(ReadableStream stream); [CallWith=ScriptState, RaisesException] constructor(ReadableStream stream);
......
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
// https://streams.spec.whatwg.org/#readablestreambyobrequest // https://streams.spec.whatwg.org/#readablestreambyobrequest
[ [
Exposed=(Window,Worker,Worklet), Exposed=(Window,Worker,Worklet)
RuntimeEnabled=ReadableByteStream
] interface ReadableStreamBYOBRequest { ] interface ReadableStreamBYOBRequest {
[RaisesException] readonly attribute ArrayBufferView? view; [RaisesException] readonly attribute ArrayBufferView? view;
......
...@@ -1660,10 +1660,6 @@ ...@@ -1660,10 +1660,6 @@
// Enabled when blink::features::kRawClipboard is enabled. // Enabled when blink::features::kRawClipboard is enabled.
name: "RawClipboard", name: "RawClipboard",
}, },
{
name: "ReadableByteStream",
status: "stable",
},
{ {
name: "RemotePlayback", name: "RemotePlayback",
status: "stable", status: "stable",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment