Backed out changeset c5467bc3fb5a (bug 1755335) for causing bustage in WritableStreamDefaultWriter.cpp CLOSED TREE

This commit is contained in:
Noemi Erli 2022-02-15 02:28:30 +02:00
Родитель cc71fae01f
Коммит dde4c6d4c6
18 изменённых файлов: 187 добавлений и 485 удалений

Просмотреть файл

@ -1,60 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/dom/TransformStream.h"
#include "mozilla/dom/WritableStream.h"
#include "mozilla/dom/ReadableStream.h"
#include "mozilla/dom/TransformStreamBinding.h"
#include "mozilla/dom/TransformerBinding.h"
#include "mozilla/dom/StreamUtils.h"
#include "nsWrapperCache.h"
namespace mozilla::dom {
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(TransformStream, mGlobal)
NS_IMPL_CYCLE_COLLECTING_ADDREF(TransformStream)
NS_IMPL_CYCLE_COLLECTING_RELEASE(TransformStream)
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(TransformStream)
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
NS_INTERFACE_MAP_ENTRY(nsISupports)
NS_INTERFACE_MAP_END
TransformStream::TransformStream(nsIGlobalObject* aGlobal) : mGlobal(aGlobal) {
mozilla::HoldJSObjects(this);
}
TransformStream::~TransformStream() { mozilla::DropJSObjects(this); }
JSObject* TransformStream::WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) {
return TransformStream_Binding::Wrap(aCx, this, aGivenProto);
}
// https://streams.spec.whatwg.org/#ts-constructor
already_AddRefed<TransformStream> TransformStream::Constructor(
const GlobalObject& aGlobal,
const Optional<JS::Handle<JSObject*>>& aTransformer,
const QueuingStrategy& aWritableStrategy,
const QueuingStrategy& aReadableStrategy, ErrorResult& aRv) {
nsCOMPtr<nsIGlobalObject> global = do_QueryInterface(aGlobal.GetAsSupports());
RefPtr<TransformStream> transformStream = new TransformStream(global);
return transformStream.forget();
}
already_AddRefed<ReadableStream> TransformStream::GetReadable(
ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
return nullptr;
}
already_AddRefed<WritableStream> TransformStream::GetWritable(
ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
return nullptr;
}
} // namespace mozilla::dom

Просмотреть файл

@ -1,58 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef DOM_STREAMS_TRANSFORMSTREAM_H_
#define DOM_STREAMS_TRANSFORMSTREAM_H_
#include "TransformStreamDefaultController.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/QueuingStrategyBinding.h"
#include "mozilla/dom/TransformerBinding.h"
#include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h"
#ifndef MOZ_DOM_STREAMS
# error "Shouldn't be compiling with this header without MOZ_DOM_STREAMS set"
#endif
namespace mozilla::dom {
class WritableStream;
class ReadableStream;
class TransformStream final : public nsISupports, public nsWrapperCache {
public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(TransformStream)
protected:
~TransformStream();
explicit TransformStream(nsIGlobalObject* aGlobal);
public:
nsIGlobalObject* GetParentObject() const { return mGlobal; }
JSObject* WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) override;
// WebIDL methods
// TODO: Mark as MOZ_CAN_RUN_SCRIPT when IDL constructors can be (bug 1749042)
MOZ_CAN_RUN_SCRIPT_BOUNDARY static already_AddRefed<TransformStream>
Constructor(const GlobalObject& aGlobal,
const Optional<JS::Handle<JSObject*>>& aTransformer,
const QueuingStrategy& aWritableStrategy,
const QueuingStrategy& aReadableStrategy, ErrorResult& aRv);
already_AddRefed<ReadableStream> GetReadable(ErrorResult& aRv);
already_AddRefed<WritableStream> GetWritable(ErrorResult& aRv);
private:
nsCOMPtr<nsIGlobalObject> mGlobal;
};
} // namespace mozilla::dom
#endif // DOM_STREAMS_TRANSFORMSTREAM_H_

Просмотреть файл

@ -1,65 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/dom/TransformStreamDefaultController.h"
#include "mozilla/dom/TransformStream.h"
#include "mozilla/dom/TransformStreamDefaultControllerBinding.h"
#include "nsWrapperCache.h"
namespace mozilla::dom {
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(TransformStreamDefaultController, mGlobal)
NS_IMPL_CYCLE_COLLECTING_ADDREF(TransformStreamDefaultController)
NS_IMPL_CYCLE_COLLECTING_RELEASE(TransformStreamDefaultController)
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(TransformStreamDefaultController)
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
NS_INTERFACE_MAP_ENTRY(nsISupports)
NS_INTERFACE_MAP_END
TransformStreamDefaultController::TransformStreamDefaultController(
nsIGlobalObject* aGlobal)
: mGlobal(aGlobal) {
mozilla::HoldJSObjects(this);
}
TransformStreamDefaultController::~TransformStreamDefaultController() {
mozilla::DropJSObjects(this);
}
JSObject* TransformStreamDefaultController::WrapObject(
JSContext* aCx, JS::Handle<JSObject*> aGivenProto) {
return TransformStreamDefaultController_Binding::Wrap(aCx, this, aGivenProto);
}
Nullable<double> TransformStreamDefaultController::GetDesiredSize() const {
// Step 1. Let readableController be
// this.[[stream]].[[readable]].[[controller]].
// TODO
// Step 2. Return !
// ReadableStreamDefaultControllerGetDesiredSize(readableController).
// TODO
return 0;
}
void TransformStreamDefaultController::Enqueue(JSContext* aCx,
JS::Handle<JS::Value> aChunk,
ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
}
void TransformStreamDefaultController::Error(JSContext* aCx,
JS::Handle<JS::Value> aError,
ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
}
void TransformStreamDefaultController::Terminate(ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
}
} // namespace mozilla::dom

Просмотреть файл

@ -1,53 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef DOM_STREAMS_TRANSFORMSTREAMDEFAULTCONTROLLER_H_
#define DOM_STREAMS_TRANSFORMSTREAMDEFAULTCONTROLLER_H_
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/QueuingStrategyBinding.h"
#include "mozilla/dom/TransformerBinding.h"
#include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h"
#ifndef MOZ_DOM_STREAMS
# error "Shouldn't be compiling with this header without MOZ_DOM_STREAMS set"
#endif
namespace mozilla::dom {
class TransformStream;
class TransformStreamDefaultController final : public nsISupports,
public nsWrapperCache {
public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(TransformStreamDefaultController)
explicit TransformStreamDefaultController(nsIGlobalObject* aGlobal);
protected:
~TransformStreamDefaultController();
public:
nsIGlobalObject* GetParentObject() const { return mGlobal; }
JSObject* WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) override;
Nullable<double> GetDesiredSize() const;
void Enqueue(JSContext* aCx, JS::Handle<JS::Value> aChunk, ErrorResult& aRv);
void Error(JSContext* aCx, JS::Handle<JS::Value> aError, ErrorResult& aRv);
void Terminate(ErrorResult& aRv);
private:
nsCOMPtr<nsIGlobalObject> mGlobal;
};
} // namespace mozilla::dom
#endif // DOM_STREAMS_TRANSFORMSTREAMDEFAULTCONTROLLER_H_

Просмотреть файл

@ -13,6 +13,7 @@
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/QueuingStrategyBinding.h"
#include "mozilla/dom/WritableStream.h"
#include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h"
@ -24,7 +25,6 @@
namespace mozilla::dom {
class Promise;
class WritableStream;
class WritableStreamDefaultWriter final : public nsISupports,
public nsWrapperCache {

Просмотреть файл

@ -26,8 +26,6 @@ EXPORTS.mozilla.dom += [
"ReadRequest.h",
"StreamUtils.h",
"TeeState.h",
"TransformStream.h",
"TransformStreamDefaultController.h",
"UnderlyingSinkCallbackHelpers.h",
"UnderlyingSourceCallbackHelpers.h",
"WritableStream.h",
@ -48,8 +46,6 @@ UNIFIED_SOURCES += [
"ReadableStreamTee.cpp",
"StreamUtils.cpp",
"TeeState.cpp",
"TransformStream.cpp",
"TransformStreamDefaultController.cpp",
"UnderlyingSinkCallbackHelpers.cpp",
"UnderlyingSourceCallbackHelpers.cpp",
"WritableStream.cpp",

Просмотреть файл

@ -1,21 +0,0 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* https://streams.spec.whatwg.org/#ts-class-definition
*/
[Exposed=(Window,Worker,Worklet),
//Transferable See Bug 1734240
Pref="dom.streams.transform_streams.enabled"]
interface TransformStream {
[Throws]
constructor(optional object transformer,
optional QueuingStrategy writableStrategy = {},
optional QueuingStrategy readableStrategy = {});
[GetterThrows /* skeleton only */] readonly attribute ReadableStream readable;
[GetterThrows /* skeleton only */] readonly attribute WritableStream writable;
};

Просмотреть файл

@ -1,17 +0,0 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* https://streams.spec.whatwg.org/#ts-default-controller-class-definition
*/
[Exposed=(Window,Worker,Worklet),
Pref="dom.streams.transform_streams.enabled"]
interface TransformStreamDefaultController {
readonly attribute unrestricted double? desiredSize;
[Throws] void enqueue(optional any chunk);
[Throws] void error(optional any reason);
[Throws] void terminate();
};

Просмотреть файл

@ -1,21 +0,0 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* https://streams.spec.whatwg.org/#transformer-api
*/
[GenerateInit]
dictionary Transformer {
TransformerStartCallback start;
TransformerTransformCallback transform;
TransformerFlushCallback flush;
any readableType;
any writableType;
};
callback TransformerStartCallback = any (TransformStreamDefaultController controller);
callback TransformerFlushCallback = Promise<void> (TransformStreamDefaultController controller);
callback TransformerTransformCallback = Promise<void> (any chunk, TransformStreamDefaultController controller);

Просмотреть файл

@ -1022,9 +1022,6 @@ if CONFIG["MOZ_DOM_STREAMS"]:
"ReadableStreamBYOBRequest.webidl",
"ReadableStreamDefaultController.webidl",
"ReadableStreamDefaultReader.webidl",
"Transformer.webidl",
"TransformStream.webidl",
"TransformStreamDefaultController.webidl",
"UnderlyingSink.webidl",
"UnderlyingSource.webidl",
"WritableStream.webidl",

Просмотреть файл

@ -3610,6 +3610,7 @@
value: false
mirror: always
# DON'T enable, there are known issues!
- name: dom.streams.byte_streams.enabled
type: RelaxedAtomicBool
value: false
@ -3620,11 +3621,6 @@
value: false
mirror: always
- name: dom.streams.transform_streams.enabled
type: RelaxedAtomicBool
value: false
mirror: always
# For area and anchor elements with target=_blank and no rel set to
# opener/noopener.
- name: dom.targetBlankNoOpener.enabled

Просмотреть файл

@ -1 +1 @@
prefs: [javascript.options.streams:true,dom.streams.readable_stream_default_controller.enabled:true,dom.streams.readable_stream_default_reader.enabled:true,dom.streams.byte_streams.enabled:true,dom.streams.writable_streams.enabled:true,dom.streams.transform_streams.enabled:true]
prefs: [javascript.options.streams:true,dom.streams.readable_stream_default_controller.enabled:true,dom.streams.readable_stream_default_reader.enabled:true,dom.streams.byte_streams.enabled:true,dom.streams.writable_streams.enabled:true]

Просмотреть файл

@ -23,8 +23,7 @@
if not domstreams: FAIL
[TransformStream interface object length]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableByteStreamController interface object name]
expected:
@ -58,8 +57,7 @@
if not domstreams: FAIL
[Stringification of new TransformStream()]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBReader interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -97,8 +95,7 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface object]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: operation abort(optional any)]
expected:
@ -128,12 +125,10 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: attribute desiredSize]
expected:
if not domstreams: FAIL
expected: FAIL
[TransformStreamDefaultController interface: existence and properties of interface object]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBReader interface: operation read(ArrayBufferView)]
expected:
@ -213,8 +208,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBRequest interface: self.readableStreamByobRequest must inherit property "respond(unsigned long long)" with the proper type]
expected:
@ -260,8 +254,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: attribute ready]
expected:
@ -297,8 +290,7 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object's "constructor" property]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBRequest interface: existence and properties of interface prototype object]
expected:
@ -329,8 +321,7 @@
if not domstreams: FAIL
[TransformStream interface object name]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBReader interface: existence and properties of interface prototype object's @@unscopables property]
expected:
@ -353,8 +344,7 @@
if not domstreams: FAIL
[TransformStream interface: attribute writable]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -373,8 +363,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation enqueue(optional any)]
expected:
if not domstreams: FAIL
expected: FAIL
[Stringification of self.readableByteStreamController]
expected:
@ -385,8 +374,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object's @@unscopables property]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableByteStreamController interface: self.readableByteStreamController must inherit property "byobRequest" with the proper type]
expected:
@ -431,12 +419,10 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object]
expected:
if not domstreams: FAIL
expected: FAIL
[TransformStream must be primary interface of new TransformStream()]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBRequest interface: attribute view]
expected:
@ -463,8 +449,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface object length]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter must be primary interface of (new WritableStream()).getWriter()]
expected:
@ -479,8 +464,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface object name]
expected:
if not domstreams: FAIL
expected: FAIL
[Stringification of self.writableStreamDefaultController]
expected:
@ -499,12 +483,10 @@
if not domstreams: FAIL
[TransformStream interface: new TransformStream() must inherit property "writable" with the proper type]
expected:
if not domstreams: FAIL
expected: FAIL
[TransformStream interface: existence and properties of interface prototype object's @@unscopables property]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: (new WritableStream()).getWriter() must inherit property "releaseLock()" with the proper type]
expected:
@ -539,8 +521,7 @@
if not domstreams: FAIL
[TransformStream interface: new TransformStream() must inherit property "readable" with the proper type]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -562,8 +543,7 @@
if not domstreams: FAIL
[TransformStream interface: attribute readable]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultController interface object name]
expected:
@ -574,8 +554,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation error(optional any)]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: attribute closed]
expected:
@ -622,8 +601,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation terminate()]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStream interface: async iterable<any>]
expected: FAIL
@ -694,8 +672,7 @@
if not domstreams: FAIL
[TransformStream interface object length]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableByteStreamController interface object name]
expected:
@ -729,8 +706,7 @@
if not domstreams: FAIL
[Stringification of new TransformStream()]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBReader interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -768,8 +744,7 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface object]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: operation abort(optional any)]
expected:
@ -799,12 +774,10 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: attribute desiredSize]
expected:
if not domstreams: FAIL
expected: FAIL
[TransformStreamDefaultController interface: existence and properties of interface object]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBReader interface: operation read(ArrayBufferView)]
expected:
@ -884,8 +857,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBRequest interface: self.readableStreamByobRequest must inherit property "respond(unsigned long long)" with the proper type]
expected:
@ -931,8 +903,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: attribute ready]
expected:
@ -968,8 +939,7 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object's "constructor" property]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBRequest interface: existence and properties of interface prototype object]
expected:
@ -1000,8 +970,7 @@
if not domstreams: FAIL
[TransformStream interface object name]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBReader interface: existence and properties of interface prototype object's @@unscopables property]
expected:
@ -1024,8 +993,7 @@
if not domstreams: FAIL
[TransformStream interface: attribute writable]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -1044,8 +1012,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation enqueue(optional any)]
expected:
if not domstreams: FAIL
expected: FAIL
[Stringification of self.readableByteStreamController]
expected:
@ -1056,8 +1023,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object's @@unscopables property]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableByteStreamController interface: self.readableByteStreamController must inherit property "byobRequest" with the proper type]
expected:
@ -1102,12 +1068,10 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object]
expected:
if not domstreams: FAIL
expected: FAIL
[TransformStream must be primary interface of new TransformStream()]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBRequest interface: attribute view]
expected:
@ -1134,8 +1098,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface object length]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter must be primary interface of (new WritableStream()).getWriter()]
expected:
@ -1150,8 +1113,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface object name]
expected:
if not domstreams: FAIL
expected: FAIL
[Stringification of self.writableStreamDefaultController]
expected:
@ -1170,12 +1132,10 @@
if not domstreams: FAIL
[TransformStream interface: new TransformStream() must inherit property "writable" with the proper type]
expected:
if not domstreams: FAIL
expected: FAIL
[TransformStream interface: existence and properties of interface prototype object's @@unscopables property]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: (new WritableStream()).getWriter() must inherit property "releaseLock()" with the proper type]
expected:
@ -1210,8 +1170,7 @@
if not domstreams: FAIL
[TransformStream interface: new TransformStream() must inherit property "readable" with the proper type]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -1233,8 +1192,7 @@
if not domstreams: FAIL
[TransformStream interface: attribute readable]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultController interface object name]
expected:
@ -1245,8 +1203,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation error(optional any)]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: attribute closed]
expected:
@ -1293,8 +1250,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation terminate()]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStream interface: async iterable<any>]
expected: FAIL
@ -1365,8 +1321,7 @@
if not domstreams: FAIL
[TransformStream interface object length]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableByteStreamController interface object name]
expected:
@ -1400,8 +1355,7 @@
if not domstreams: FAIL
[Stringification of new TransformStream()]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBReader interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -1439,8 +1393,7 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface object]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: operation abort(optional any)]
expected:
@ -1470,12 +1423,10 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: attribute desiredSize]
expected:
if not domstreams: FAIL
expected: FAIL
[TransformStreamDefaultController interface: existence and properties of interface object]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBReader interface: operation read(ArrayBufferView)]
expected:
@ -1555,8 +1506,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBRequest interface: self.readableStreamByobRequest must inherit property "respond(unsigned long long)" with the proper type]
expected:
@ -1602,8 +1552,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: attribute ready]
expected:
@ -1639,8 +1588,7 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object's "constructor" property]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBRequest interface: existence and properties of interface prototype object]
expected:
@ -1671,8 +1619,7 @@
if not domstreams: FAIL
[TransformStream interface object name]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBReader interface: existence and properties of interface prototype object's @@unscopables property]
expected:
@ -1695,8 +1642,7 @@
if not domstreams: FAIL
[TransformStream interface: attribute writable]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -1715,8 +1661,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation enqueue(optional any)]
expected:
if not domstreams: FAIL
expected: FAIL
[Stringification of self.readableByteStreamController]
expected:
@ -1727,8 +1672,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object's @@unscopables property]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableByteStreamController interface: self.readableByteStreamController must inherit property "byobRequest" with the proper type]
expected:
@ -1773,12 +1717,10 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object]
expected:
if not domstreams: FAIL
expected: FAIL
[TransformStream must be primary interface of new TransformStream()]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBRequest interface: attribute view]
expected:
@ -1805,8 +1747,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface object length]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter must be primary interface of (new WritableStream()).getWriter()]
expected:
@ -1821,8 +1762,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface object name]
expected:
if not domstreams: FAIL
expected: FAIL
[Stringification of self.writableStreamDefaultController]
expected:
@ -1841,12 +1781,10 @@
if not domstreams: FAIL
[TransformStream interface: new TransformStream() must inherit property "writable" with the proper type]
expected:
if not domstreams: FAIL
expected: FAIL
[TransformStream interface: existence and properties of interface prototype object's @@unscopables property]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: (new WritableStream()).getWriter() must inherit property "releaseLock()" with the proper type]
expected:
@ -1881,8 +1819,7 @@
if not domstreams: FAIL
[TransformStream interface: new TransformStream() must inherit property "readable" with the proper type]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -1904,8 +1841,7 @@
if not domstreams: FAIL
[TransformStream interface: attribute readable]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultController interface object name]
expected:
@ -1916,8 +1852,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation error(optional any)]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: attribute closed]
expected:
@ -1964,8 +1899,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation terminate()]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStream interface: async iterable<any>]
expected: FAIL
@ -2036,8 +1970,7 @@
if not domstreams: FAIL
[TransformStream interface object length]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableByteStreamController interface object name]
expected:
@ -2071,8 +2004,7 @@
if not domstreams: FAIL
[Stringification of new TransformStream()]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBReader interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -2110,8 +2042,7 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface object]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: operation abort(optional any)]
expected:
@ -2141,12 +2072,10 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: attribute desiredSize]
expected:
if not domstreams: FAIL
expected: FAIL
[TransformStreamDefaultController interface: existence and properties of interface object]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBReader interface: operation read(ArrayBufferView)]
expected:
@ -2226,8 +2155,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBRequest interface: self.readableStreamByobRequest must inherit property "respond(unsigned long long)" with the proper type]
expected:
@ -2273,8 +2201,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: attribute ready]
expected:
@ -2310,8 +2237,7 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object's "constructor" property]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBRequest interface: existence and properties of interface prototype object]
expected:
@ -2342,8 +2268,7 @@
if not domstreams: FAIL
[TransformStream interface object name]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBReader interface: existence and properties of interface prototype object's @@unscopables property]
expected:
@ -2366,8 +2291,7 @@
if not domstreams: FAIL
[TransformStream interface: attribute writable]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamDefaultController interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -2386,8 +2310,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation enqueue(optional any)]
expected:
if not domstreams: FAIL
expected: FAIL
[Stringification of self.readableByteStreamController]
expected:
@ -2398,8 +2321,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: existence and properties of interface prototype object's @@unscopables property]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableByteStreamController interface: self.readableByteStreamController must inherit property "byobRequest" with the proper type]
expected:
@ -2444,12 +2366,10 @@
if not domstreams: FAIL
[TransformStream interface: existence and properties of interface prototype object]
expected:
if not domstreams: FAIL
expected: FAIL
[TransformStream must be primary interface of new TransformStream()]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStreamBYOBRequest interface: attribute view]
expected:
@ -2476,8 +2396,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface object length]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter must be primary interface of (new WritableStream()).getWriter()]
expected:
@ -2492,8 +2411,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface object name]
expected:
if not domstreams: FAIL
expected: FAIL
[Stringification of self.writableStreamDefaultController]
expected:
@ -2512,12 +2430,10 @@
if not domstreams: FAIL
[TransformStream interface: new TransformStream() must inherit property "writable" with the proper type]
expected:
if not domstreams: FAIL
expected: FAIL
[TransformStream interface: existence and properties of interface prototype object's @@unscopables property]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: (new WritableStream()).getWriter() must inherit property "releaseLock()" with the proper type]
expected:
@ -2552,8 +2468,7 @@
if not domstreams: FAIL
[TransformStream interface: new TransformStream() must inherit property "readable" with the proper type]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: existence and properties of interface prototype object's "constructor" property]
expected:
@ -2575,8 +2490,7 @@
if not domstreams: FAIL
[TransformStream interface: attribute readable]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultController interface object name]
expected:
@ -2587,8 +2501,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation error(optional any)]
expected:
if not domstreams: FAIL
expected: FAIL
[WritableStreamDefaultWriter interface: attribute closed]
expected:
@ -2635,8 +2548,7 @@
if not domstreams: FAIL
[TransformStreamDefaultController interface: operation terminate()]
expected:
if not domstreams: FAIL
expected: FAIL
[ReadableStream interface: async iterable<any>]
expected: FAIL

Просмотреть файл

@ -5,6 +5,9 @@
[TransformStream errors thrown in flush put the writable and readable in an errored state]
expected: FAIL
[errored TransformStream should not enqueue new chunks]
expected: FAIL
[TransformStream transformer.start() rejected promise should error the stream]
expected: FAIL
@ -64,6 +67,9 @@
[TransformStream errors thrown in flush put the writable and readable in an errored state]
expected: FAIL
[errored TransformStream should not enqueue new chunks]
expected: FAIL
[TransformStream transformer.start() rejected promise should error the stream]
expected: FAIL
@ -123,6 +129,9 @@
[TransformStream errors thrown in flush put the writable and readable in an errored state]
expected: FAIL
[errored TransformStream should not enqueue new chunks]
expected: FAIL
[TransformStream transformer.start() rejected promise should error the stream]
expected: FAIL
@ -182,6 +191,9 @@
[TransformStream errors thrown in flush put the writable and readable in an errored state]
expected: FAIL
[errored TransformStream should not enqueue new chunks]
expected: FAIL
[TransformStream transformer.start() rejected promise should error the stream]
expected: FAIL

Просмотреть файл

@ -1,4 +1,10 @@
[general.any.sharedworker.html]
[TransformStream can be constructed with a transform function]
expected: FAIL
[TransformStream can be constructed with no transform function]
expected: FAIL
[TransformStream writable starts in the writable state]
expected: FAIL
@ -44,9 +50,15 @@
[closing the writable should close the readable when there are no queued chunks, even with backpressure]
expected: FAIL
[enqueue() should throw after controller.terminate()]
expected: FAIL
[enqueue() should throw after readable.cancel()]
expected: FAIL
[controller.terminate() should do nothing the second time it is called]
expected: FAIL
[terminate() should do nothing after readable.cancel()]
expected: FAIL
@ -64,6 +76,12 @@
[general.any.html]
[TransformStream can be constructed with a transform function]
expected: FAIL
[TransformStream can be constructed with no transform function]
expected: FAIL
[TransformStream writable starts in the writable state]
expected: FAIL
@ -109,9 +127,15 @@
[closing the writable should close the readable when there are no queued chunks, even with backpressure]
expected: FAIL
[enqueue() should throw after controller.terminate()]
expected: FAIL
[enqueue() should throw after readable.cancel()]
expected: FAIL
[controller.terminate() should do nothing the second time it is called]
expected: FAIL
[terminate() should do nothing after readable.cancel()]
expected: FAIL
@ -129,6 +153,12 @@
[general.any.worker.html]
[TransformStream can be constructed with a transform function]
expected: FAIL
[TransformStream can be constructed with no transform function]
expected: FAIL
[TransformStream writable starts in the writable state]
expected: FAIL
@ -174,9 +204,15 @@
[closing the writable should close the readable when there are no queued chunks, even with backpressure]
expected: FAIL
[enqueue() should throw after controller.terminate()]
expected: FAIL
[enqueue() should throw after readable.cancel()]
expected: FAIL
[controller.terminate() should do nothing the second time it is called]
expected: FAIL
[terminate() should do nothing after readable.cancel()]
expected: FAIL
@ -194,6 +230,12 @@
[general.any.serviceworker.html]
[TransformStream can be constructed with a transform function]
expected: FAIL
[TransformStream can be constructed with no transform function]
expected: FAIL
[TransformStream writable starts in the writable state]
expected: FAIL
@ -239,9 +281,15 @@
[closing the writable should close the readable when there are no queued chunks, even with backpressure]
expected: FAIL
[enqueue() should throw after controller.terminate()]
expected: FAIL
[enqueue() should throw after readable.cancel()]
expected: FAIL
[controller.terminate() should do nothing the second time it is called]
expected: FAIL
[terminate() should do nothing after readable.cancel()]
expected: FAIL

Просмотреть файл

@ -1,18 +1,30 @@
[patched-global.any.html]
[TransformStream constructor should not call setters for highWaterMark or size]
expected: FAIL
[TransformStream should use the original value of ReadableStream and WritableStream]
expected: FAIL
[patched-global.any.worker.html]
[TransformStream constructor should not call setters for highWaterMark or size]
expected: FAIL
[TransformStream should use the original value of ReadableStream and WritableStream]
expected: FAIL
[patched-global.any.serviceworker.html]
[TransformStream constructor should not call setters for highWaterMark or size]
expected: FAIL
[TransformStream should use the original value of ReadableStream and WritableStream]
expected: FAIL
[patched-global.any.sharedworker.html]
[TransformStream constructor should not call setters for highWaterMark or size]
expected: FAIL
[TransformStream should use the original value of ReadableStream and WritableStream]
expected: FAIL

Просмотреть файл

@ -20,6 +20,9 @@
[writableStrategy highWaterMark should be converted to a number]
expected: FAIL
[readableStrategy highWaterMark should be converted to a number]
expected: FAIL
[a bad readableStrategy size function should cause writer.write() to reject on an identity transform]
expected: FAIL
@ -49,6 +52,9 @@
[writableStrategy highWaterMark should be converted to a number]
expected: FAIL
[readableStrategy highWaterMark should be converted to a number]
expected: FAIL
[a bad readableStrategy size function should cause writer.write() to reject on an identity transform]
expected: FAIL
@ -78,6 +84,9 @@
[writableStrategy highWaterMark should be converted to a number]
expected: FAIL
[readableStrategy highWaterMark should be converted to a number]
expected: FAIL
[a bad readableStrategy size function should cause writer.write() to reject on an identity transform]
expected: FAIL
@ -107,6 +116,9 @@
[writableStrategy highWaterMark should be converted to a number]
expected: FAIL
[readableStrategy highWaterMark should be converted to a number]
expected: FAIL
[a bad readableStrategy size function should cause writer.write() to reject on an identity transform]
expected: FAIL

Просмотреть файл

@ -5,6 +5,9 @@
[controller.terminate() should prevent remaining chunks from being processed]
expected: FAIL
[controller.enqueue() should throw after controller.terminate()]
expected: FAIL
[controller.error() after controller.terminate() with queued chunk should error the readable]
expected: FAIL
@ -22,6 +25,9 @@
[controller.terminate() should prevent remaining chunks from being processed]
expected: FAIL
[controller.enqueue() should throw after controller.terminate()]
expected: FAIL
[controller.error() after controller.terminate() with queued chunk should error the readable]
expected: FAIL
@ -39,6 +45,9 @@
[controller.terminate() should prevent remaining chunks from being processed]
expected: FAIL
[controller.enqueue() should throw after controller.terminate()]
expected: FAIL
[controller.error() after controller.terminate() with queued chunk should error the readable]
expected: FAIL
@ -56,6 +65,9 @@
[controller.terminate() should prevent remaining chunks from being processed]
expected: FAIL
[controller.enqueue() should throw after controller.terminate()]
expected: FAIL
[controller.error() after controller.terminate() with queued chunk should error the readable]
expected: FAIL