Bug 1272697 - Part 3: Implement ReadableStream and associated classes in the JS engine. r=shu

MozReview-Commit-ID: E4uux96ed2m
This commit is contained in:
Till Schneidereit 2017-01-31 14:34:55 +01:00
Родитель dec687b07c
Коммит 8b46f09d1c
261 изменённых файлов: 5391 добавлений и 3808 удалений

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

@ -29,6 +29,8 @@ var ecmaGlobals =
"ArrayBuffer",
"Atomics",
"Boolean",
{name: "ByteLengthQueuingStrategy", disabled: !SpecialPowers.Cu.getJSTestingFunctions().streamsAreEnabled()},
{name: "CountQueuingStrategy", disabled: !SpecialPowers.Cu.getJSTestingFunctions().streamsAreEnabled()},
"DataView",
"Date",
"Error",
@ -55,6 +57,7 @@ var ecmaGlobals =
"Promise",
"Proxy",
"RangeError",
{name: "ReadableStream", disabled: !SpecialPowers.Cu.getJSTestingFunctions().streamsAreEnabled()},
"ReferenceError",
"Reflect",
"RegExp",

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

@ -27,6 +27,8 @@ var ecmaGlobals =
"ArrayBuffer",
"Atomics",
"Boolean",
{name: "ByteLengthQueuingStrategy", optional: true},
{name: "CountQueuingStrategy", optional: true},
"DataView",
"Date",
"Error",
@ -50,6 +52,7 @@ var ecmaGlobals =
"Promise",
"Proxy",
"RangeError",
{name: "ReadableStream", optional: true},
"ReferenceError",
"Reflect",
"RegExp",

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

@ -27,6 +27,8 @@ var ecmaGlobals =
"ArrayBuffer",
"Atomics",
"Boolean",
{name: "ByteLengthQueuingStrategy", optional: true},
{name: "CountQueuingStrategy", optional: true},
"DataView",
"Date",
"Error",
@ -50,6 +52,7 @@ var ecmaGlobals =
"Promise",
"Proxy",
"RangeError",
{name: "ReadableStream", optional: true},
"ReferenceError",
"Reflect",
"RegExp",

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

@ -36,6 +36,19 @@ def js_disable_shell(value):
set_config('JS_DISABLE_SHELL', js_disable_shell)
# Enable SpiderMonkey's WHATWG Streams implementation
# ===================================================
js_option('--enable-streams', default=True,
help='Expose WHATWG Streams')
@depends('--enable-streams')
def enable_streams(value):
if value:
return True
set_config('ENABLE_STREAMS', enable_streams)
set_define('ENABLE_STREAMS', enable_streams)
# SpiderMonkey as a shared library, and how its symbols are exported
# ==================================================================

4960
js/src/builtin/Stream.cpp Normal file

Разница между файлами не показана из-за своего большого размера Загрузить разницу

119
js/src/builtin/Stream.h Normal file
Просмотреть файл

@ -0,0 +1,119 @@
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* 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 builtin_Stream_h
#define builtin_Stream_h
#include "vm/NativeObject.h"
namespace js {
class AutoSetNewObjectMetadata;
class ReadableStream : public NativeObject
{
public:
static ReadableStream* createDefaultStream(JSContext* cx, HandleValue underlyingSource,
HandleValue size, HandleValue highWaterMark);
static ReadableStream* createByteStream(JSContext* cx, HandleValue underlyingSource,
HandleValue highWaterMark);
inline bool readable() const;
inline bool closed() const;
inline bool errored() const;
inline bool disturbed() const;
enum State {
Readable = 1 << 0,
Closed = 1 << 1,
Errored = 1 << 2,
Disturbed = 1 << 3
};
private:
static ReadableStream* createStream(JSContext* cx);
public:
static bool constructor(JSContext* cx, unsigned argc, Value* vp);
static const ClassSpec classSpec_;
static const Class class_;
static const ClassSpec protoClassSpec_;
static const Class protoClass_;
};
class ReadableStreamDefaultReader : public NativeObject
{
public:
static bool constructor(JSContext* cx, unsigned argc, Value* vp);
static const ClassSpec classSpec_;
static const Class class_;
static const ClassSpec protoClassSpec_;
static const Class protoClass_;
};
class ReadableStreamBYOBReader : public NativeObject
{
public:
static bool constructor(JSContext* cx, unsigned argc, Value* vp);
static const ClassSpec classSpec_;
static const Class class_;
static const ClassSpec protoClassSpec_;
static const Class protoClass_;
};
class ReadableStreamDefaultController : public NativeObject
{
public:
static bool constructor(JSContext* cx, unsigned argc, Value* vp);
static const ClassSpec classSpec_;
static const Class class_;
static const ClassSpec protoClassSpec_;
static const Class protoClass_;
};
class ReadableByteStreamController : public NativeObject
{
public:
static bool constructor(JSContext* cx, unsigned argc, Value* vp);
static const ClassSpec classSpec_;
static const Class class_;
static const ClassSpec protoClassSpec_;
static const Class protoClass_;
};
class ReadableStreamBYOBRequest : public NativeObject
{
public:
static bool constructor(JSContext* cx, unsigned argc, Value* vp);
static const ClassSpec classSpec_;
static const Class class_;
static const ClassSpec protoClassSpec_;
static const Class protoClass_;
};
class ByteLengthQueuingStrategy : public NativeObject
{
public:
static bool constructor(JSContext* cx, unsigned argc, Value* vp);
static const ClassSpec classSpec_;
static const Class class_;
static const ClassSpec protoClassSpec_;
static const Class protoClass_;
};
class CountQueuingStrategy : public NativeObject
{
public:
static bool constructor(JSContext* cx, unsigned argc, Value* vp);
static const ClassSpec classSpec_;
static const Class class_;
static const ClassSpec protoClassSpec_;
static const Class protoClass_;
};
} // namespace js
#endif /* builtin_Stream_h */

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

@ -1713,6 +1713,14 @@ RejectPromise(JSContext* cx, unsigned argc, Value* vp)
return result;
}
static bool
StreamsAreEnabled(JSContext* cx, unsigned argc, Value* vp)
{
CallArgs args = CallArgsFromVp(argc, vp);
args.rval().setBoolean(cx->compartment()->creationOptions().getStreamsEnabled());
return true;
}
static unsigned finalizeCount = 0;
static void
@ -4523,6 +4531,10 @@ JS_FN_HELP("rejectPromise", RejectPromise, 2, 0,
"rejectPromise(promise, reason)",
" Reject a Promise by calling the JSAPI function JS::RejectPromise."),
JS_FN_HELP("streamsAreEnabled", StreamsAreEnabled, 0, 0,
"streamsAreEnabled()",
" Returns a boolean indicating whether WHATWG Streams are enabled for the current compartment."),
JS_FN_HELP("makeFinalizeObserver", MakeFinalizeObserver, 0, 0,
"makeFinalizeObserver()",
" Get a special object whose finalization increases the counter returned\n"

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

@ -603,3 +603,30 @@ MSG_DEF(JSMSG_FOR_AWAIT_NOT_OF, 0, JSEXN_SYNTAXERR, "'for await' loop sho
MSG_DEF(JSMSG_NOT_AN_ASYNC_GENERATOR, 0, JSEXN_TYPEERR, "Not an async generator")
MSG_DEF(JSMSG_NOT_AN_ASYNC_ITERATOR, 0, JSEXN_TYPEERR, "Not an async from sync iterator")
MSG_DEF(JSMSG_GET_ASYNC_ITER_RETURNED_PRIMITIVE, 0, JSEXN_TYPEERR, "[Symbol.asyncIterator]() returned a non-object value")
// ReadableStream
MSG_DEF(JSMSG_READABLESTREAM_UNDERLYINGSOURCE_TYPE_WRONG,0, JSEXN_RANGEERR,"'underlyingSource.type' must be \"bytes\" or undefined.")
MSG_DEF(JSMSG_READABLESTREAM_INVALID_READER_MODE, 0, JSEXN_RANGEERR,"'mode' must be \"byob\" or undefined.")
MSG_DEF(JSMSG_NUMBER_MUST_BE_FINITE_NON_NEGATIVE, 1, JSEXN_RANGEERR, "'{0}' must be a finite, non-negative number.")
MSG_DEF(JSMSG_READABLEBYTESTREAMCONTROLLER_INVALID_BYTESWRITTEN, 0, JSEXN_RANGEERR, "'bytesWritten' exceeds remaining length.")
MSG_DEF(JSMSG_READABLEBYTESTREAMCONTROLLER_INVALID_VIEW_SIZE, 0, JSEXN_RANGEERR, "view size does not match requested data.")
MSG_DEF(JSMSG_READABLEBYTESTREAMCONTROLLER_INVALID_VIEW_OFFSET, 0, JSEXN_RANGEERR, "view offset does not match requested position.")
MSG_DEF(JSMSG_READABLESTREAM_NOT_LOCKED, 1, JSEXN_TYPEERR, "The ReadableStream method '{0}' may only be called on a locked stream.")
MSG_DEF(JSMSG_READABLESTREAM_LOCKED, 0, JSEXN_TYPEERR, "A Reader may only be created for an unlocked ReadableStream.")
MSG_DEF(JSMSG_READABLESTREAM_NOT_BYTE_STREAM_CONTROLLER, 0, JSEXN_TYPEERR, "ReadableStream.getReader('byob') requires a ReadableByteStreamController.")
MSG_DEF(JSMSG_READABLESTREAM_CONTROLLER_SET, 0, JSEXN_TYPEERR, "The ReadableStream already has a controller defined.")
MSG_DEF(JSMSG_READABLESTREAMREADER_NOT_OWNED, 1, JSEXN_TYPEERR, "The ReadableStream reader method '{0}' may only be called on a reader owned by a stream.")
MSG_DEF(JSMSG_READABLESTREAMREADER_NOT_EMPTY, 1, JSEXN_TYPEERR, "The ReadableStream reader method '{0}' may not be called on a reader with read requests.")
MSG_DEF(JSMSG_READABLESTREAMBYOBREADER_READ_EMPTY_VIEW, 0, JSEXN_TYPEERR, "ReadableStreamBYOBReader.read() was passed an empty TypedArrayBuffer view.")
MSG_DEF(JSMSG_READABLESTREAMREADER_RELEASED, 0, JSEXN_TYPEERR, "The ReadableStream reader was released.")
MSG_DEF(JSMSG_READABLESTREAMCONTROLLER_CLOSED, 1, JSEXN_TYPEERR, "The ReadableStream controller method '{0}' called on a stream already closing.")
MSG_DEF(JSMSG_READABLESTREAMCONTROLLER_NOT_READABLE, 1, JSEXN_TYPEERR, "The ReadableStream controller method '{0}' may only be called on a stream in the 'readable' state.")
MSG_DEF(JSMSG_READABLEBYTESTREAMCONTROLLER_BAD_CHUNKSIZE,0, JSEXN_RANGEERR, "ReadableByteStreamController requires a positive integer or undefined for 'autoAllocateChunkSize'.")
MSG_DEF(JSMSG_READABLEBYTESTREAMCONTROLLER_BAD_CHUNK, 0, JSEXN_TYPEERR, "ReadableByteStreamController passed a bad chunk.")
MSG_DEF(JSMSG_READABLEBYTESTREAMCONTROLLER_CLOSE_PENDING_PULL, 0, JSEXN_TYPEERR, "The ReadableByteStreamController cannot be closed while the buffer is being filled.")
MSG_DEF(JSMSG_READABLESTREAMBYOBREQUEST_NO_CONTROLLER, 1, JSEXN_TYPEERR, "ReadableStreamBYOBRequest method '{0}' called on a request with no controller.")
MSG_DEF(JSMSG_READABLESTREAMBYOBREQUEST_RESPOND_CLOSED, 0, JSEXN_TYPEERR, "ReadableStreamBYOBRequest method 'respond' called with non-zero number of bytes with a closed controller.")
MSG_DEF(JSMSG_READABLESTREAM_METHOD_NOT_IMPLEMENTED, 1, JSEXN_TYPEERR, "ReadableStream method {0} not yet implemented")
// Other Stream-related
MSG_DEF(JSMSG_STREAM_INVALID_HIGHWATERMARK, 0, JSEXN_RANGEERR, "'highWaterMark' must be a non-negative, non-NaN number.")

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

@ -2107,6 +2107,12 @@ JS_IsArrayBufferViewObject(JSObject* obj);
extern JS_FRIEND_API(uint32_t)
JS_GetArrayBufferViewByteLength(JSObject* obj);
/**
* More generic name for JS_GetTypedArrayByteOffset to cover DataViews as well
*/
extern JS_FRIEND_API(uint32_t)
JS_GetArrayBufferViewByteOffset(JSObject* obj);
/*
* Return a pointer to the start of the data referenced by a typed array. The
* data is still owned by the typed array, and should not be modified on

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

@ -1118,6 +1118,12 @@ static const JSFunctionSpec number_methods[] = {
JS_FS_END
};
bool
js::IsInteger(const Value& val)
{
return val.isInt32() ||
(mozilla::IsFinite(val.toDouble()) && JS::ToInteger(val.toDouble()) == val.toDouble());
}
static const JSFunctionSpec number_static_methods[] = {
JS_SELF_HOSTED_FN("isFinite", "Number_isFinite", 1,0),

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

@ -81,6 +81,10 @@ Int32ToString(JSContext* cx, int32_t i);
extern JSAtom*
Int32ToAtom(JSContext* cx, int32_t si);
// ES6 15.7.3.12
extern bool
IsInteger(const Value& val);
/*
* Convert an integer or double (contained in the given value) to a string and
* append to the given buffer.

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

@ -61,6 +61,12 @@
#define IF_SAB(real,imaginary) imaginary
#endif
#ifdef ENABLE_STREAMS
#define IF_STREAMS(real,imaginary) real
#else
#define IF_STREAMS(real,imaginary) imaginary
#endif
#define JS_FOR_PROTOTYPES(real,imaginary) \
imaginary(Null, 0, InitNullClass, dummy) \
real(Object, 1, InitViaClassSpec, OCLASP(Plain)) \
@ -112,12 +118,23 @@ IF_SIMD(real,imaginary)(SIMD, 45, InitSimdClass, OCLASP(Si
real(TypedArray, 47, InitViaClassSpec, &js::TypedArrayObject::sharedTypedArrayPrototypeClass) \
IF_SAB(real,imaginary)(Atomics, 48, InitAtomicsClass, OCLASP(Atomics)) \
real(SavedFrame, 49, InitViaClassSpec, &js::SavedFrame::class_) \
real(WebAssembly, 50, InitWebAssemblyClass, CLASP(WebAssembly)) \
imaginary(WasmModule, 51, dummy, dummy) \
imaginary(WasmInstance, 52, dummy, dummy) \
imaginary(WasmMemory, 53, dummy, dummy) \
imaginary(WasmTable, 54, dummy, dummy) \
real(Promise, 55, InitViaClassSpec, OCLASP(Promise)) \
real(Promise, 50, InitViaClassSpec, OCLASP(Promise)) \
IF_STREAMS(real,imaginary) (ReadableStream, 51, InitViaClassSpec, &js::ReadableStream::class_) \
IF_STREAMS(real,imaginary) (ReadableStreamDefaultReader, 52, InitViaClassSpec, &js::ReadableStreamDefaultReader::class_) \
IF_STREAMS(real,imaginary) (ReadableStreamBYOBReader, 53, InitViaClassSpec, &js::ReadableStreamBYOBReader::class_) \
IF_STREAMS(real,imaginary) (ReadableStreamDefaultController, 54, InitViaClassSpec, &js::ReadableStreamDefaultController::class_) \
IF_STREAMS(real,imaginary) (ReadableByteStreamController, 55, InitViaClassSpec, &js::ReadableByteStreamController::class_) \
IF_STREAMS(real,imaginary) (ReadableStreamBYOBRequest, 56, InitViaClassSpec, &js::ReadableStreamBYOBRequest::class_) \
imaginary(WritableStream, 57, dummy, dummy) \
imaginary(WritableStreamDefaultWriter, 58, dummy, dummy) \
imaginary(WritableStreamDefaultController, 59, dummy, dummy) \
real(ByteLengthQueuingStrategy, 60, InitViaClassSpec, &js::ByteLengthQueuingStrategy::class_) \
real(CountQueuingStrategy, 61, InitViaClassSpec, &js::CountQueuingStrategy::class_) \
real(WebAssembly, 62, InitWebAssemblyClass, CLASP(WebAssembly)) \
imaginary(WasmModule, 63, dummy, dummy) \
imaginary(WasmInstance, 64, dummy, dummy) \
imaginary(WasmMemory, 65, dummy, dummy) \
imaginary(WasmTable, 66, dummy, dummy) \
#define JS_FOR_EACH_PROTOTYPE(macro) JS_FOR_PROTOTYPES(macro,macro)

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

@ -157,6 +157,7 @@ UNIFIED_SOURCES += [
'builtin/Reflect.cpp',
'builtin/ReflectParse.cpp',
'builtin/SIMD.cpp',
'builtin/Stream.cpp',
'builtin/SymbolObject.cpp',
'builtin/TestingFunctions.cpp',
'builtin/TypedObject.cpp',

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

@ -1876,6 +1876,17 @@ JS_GetArrayBufferViewByteLength(JSObject* obj)
: obj->as<TypedArrayObject>().byteLength();
}
JS_FRIEND_API(uint32_t)
JS_GetArrayBufferViewByteOffset(JSObject* obj)
{
obj = CheckedUnwrap(obj);
if (!obj)
return 0;
return obj->is<DataViewObject>()
? obj->as<DataViewObject>().byteOffset()
: obj->as<TypedArrayObject>().byteOffset();
}
JS_FRIEND_API(JSObject*)
JS_GetObjectAsArrayBufferView(JSObject* obj, uint32_t* length, bool* isSharedMemory, uint8_t** data)
{

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

@ -36,6 +36,7 @@
macro(AsyncGeneratorFunction, AsyncGeneratorFunction, "AsyncGeneratorFunction") \
macro(AsyncWrapped, AsyncWrapped, "AsyncWrapped") \
macro(async, async, "async") \
macro(autoAllocateChunkSize, autoAllocateChunkSize, "autoAllocateChunkSize") \
macro(await, await, "await") \
macro(Bool8x16, Bool8x16, "Bool8x16") \
macro(Bool16x8, Bool16x8, "Bool16x8") \
@ -47,6 +48,7 @@
macro(buffer, buffer, "buffer") \
macro(builder, builder, "builder") \
macro(by, by, "by") \
macro(byob, byob, "byob") \
macro(byteAlignment, byteAlignment, "byteAlignment") \
macro(byteLength, byteLength, "byteLength") \
macro(byteOffset, byteOffset, "byteOffset") \
@ -57,6 +59,7 @@
macro(callee, callee, "callee") \
macro(caller, caller, "caller") \
macro(callFunction, callFunction, "callFunction") \
macro(cancel, cancel, "cancel") \
macro(case, case_, "case") \
macro(caseFirst, caseFirst, "caseFirst") \
macro(catch, catch_, "catch") \
@ -164,6 +167,7 @@
macro(has, has, "has") \
macro(hasOwn, hasOwn, "hasOwn") \
macro(hasOwnProperty, hasOwnProperty, "hasOwnProperty") \
macro(highWaterMark, highWaterMark, "highWaterMark") \
macro(hour, hour, "hour") \
macro(if, if_, "if") \
macro(ignoreCase, ignoreCase, "ignoreCase") \
@ -229,6 +233,7 @@
macro(minusSign, minusSign, "minusSign") \
macro(minute, minute, "minute") \
macro(missingArguments, missingArguments, "missingArguments") \
macro(mode, mode, "mode") \
macro(module, module, "module") \
macro(Module, Module, "Module") \
macro(ModuleDeclarationInstantiation, ModuleDeclarationInstantiation, "ModuleDeclarationInstantiation") \
@ -282,6 +287,7 @@
macro(percentSign, percentSign, "percentSign") \
macro(plusSign, plusSign, "plusSign") \
macro(public, public_, "public") \
macro(pull, pull, "pull") \
macro(preventExtensions, preventExtensions, "preventExtensions") \
macro(private, private_, "private") \
macro(promise, promise, "promise") \
@ -327,6 +333,7 @@
macro(StarGeneratorNext, StarGeneratorNext, "StarGeneratorNext") \
macro(StarGeneratorReturn, StarGeneratorReturn, "StarGeneratorReturn") \
macro(StarGeneratorThrow, StarGeneratorThrow, "StarGeneratorThrow") \
macro(start, start, "start") \
macro(startTimestamp, startTimestamp, "startTimestamp") \
macro(state, state, "state") \
macro(static, static_, "static") \

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

@ -27,6 +27,7 @@
#include "builtin/Promise.h"
#include "builtin/RegExp.h"
#include "builtin/SelfHostingDefines.h"
#include "builtin/Stream.h"
#include "builtin/SymbolObject.h"
#include "builtin/TypedObject.h"
#include "builtin/WeakMapObject.h"
@ -100,18 +101,25 @@ GlobalObject::skipDeselectedConstructor(JSContext* cx, JSProtoKey key)
if (key == JSProto_WebAssembly)
return !wasm::HasSupport(cx);
#ifdef ENABLE_SHARED_ARRAY_BUFFER
// Return true if the given constructor has been disabled at run-time.
switch (key) {
#if defined(ENABLE_SHARED_ARRAY_BUFFER)
case JSProto_Atomics:
case JSProto_SharedArrayBuffer:
return !cx->compartment()->creationOptions().getSharedMemoryAndAtomicsEnabled();
#endif
#if defined(ENABLE_STREAMS)
case JSProto_ReadableStream:
case JSProto_ReadableStreamDefaultReader:
case JSProto_ReadableStreamBYOBReader:
case JSProto_ReadableStreamDefaultController:
case JSProto_ReadableByteStreamController:
case JSProto_ReadableStreamBYOBRequest:
return !cx->compartment()->creationOptions().getStreamsEnabled();
#endif
default:
return false;
}
#else
return false;
#endif
}
/* static */ bool

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

@ -33,6 +33,7 @@
#include "builtin/RegExp.h"
#include "builtin/SelfHostingDefines.h"
#include "builtin/SIMD.h"
#include "builtin/Stream.h"
#include "builtin/TypedObject.h"
#include "builtin/WeakSetObject.h"
#include "gc/Marking.h"
@ -67,7 +68,6 @@ using JS::AutoCheckCannotGC;
using mozilla::IsInRange;
using mozilla::Maybe;
using mozilla::PodMove;
using mozilla::Maybe;
static void
selfHosting_WarningReporter(JSContext* cx, JSErrorReport* report)
@ -2441,6 +2441,9 @@ static const JSFunctionSpec intrinsic_functions[] = {
JS_FN("CallWeakSetMethodIfWrapped",
CallNonGenericSelfhostedMethod<Is<WeakSetObject>>, 2, 0),
JS_FN("IsReadableStreamBYOBRequest",
intrinsic_IsInstanceOfBuiltin<ReadableStreamBYOBRequest>, 1, 0),
// See builtin/TypedObject.h for descriptors of the typedobj functions.
JS_FN("NewOpaqueTypedObject", js::NewOpaqueTypedObject, 1, 0),
JS_FN("NewDerivedTypedObject", js::NewDerivedTypedObject, 3, 0),

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

@ -1,8 +1,5 @@
[setrequestheader-content-type.htm]
type: testharness
[ReadableStream request respects setRequestHeader("")]
expected: FAIL
[ReadableStream request with under type sends no Content-Type without setRequestHeader() call]
expected: FAIL

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

@ -2,4 +2,4 @@
type: reftest
expected:
if os == "win": FAIL
if os == "linux": FAIL
if os == "linux": FAIL

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

@ -1,3 +0,0 @@
[focus-within-008.html]
type: reftest
disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1377588

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

@ -1,3 +0,0 @@
[object-fit-cover-svg-004e.html]
type: reftest
disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1381855

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

@ -1,3 +0,0 @@
[object-fit-cover-svg-004o.html]
type: reftest
disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1381855

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

@ -8,3 +8,4 @@
if (os == "win") and (version == "10.0.15063"): https://bugzilla.mozilla.org/show_bug.cgi?id=1383056
expected:
if (os == "win") and (version == "10.0.15063"): FAIL

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

@ -14,3 +14,4 @@
expected:
if stylo: PASS
FAIL

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

@ -33,12 +33,6 @@
[Consume response's body: from stream with correct multipart type to formData]
expected: FAIL
[Consume response's body: from stream without correct multipart type to formData (error case)]
expected: FAIL
[Consume response's body: from stream with correct urlencoded type to formData]
expected: FAIL
[Consume response's body: from stream without correct urlencoded type to formData (error case)]
expected: FAIL

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

@ -971,3 +971,4 @@
[iframe.allowUserMedia: IDL set to object "test-valueOf"]
expected: FAIL

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

@ -5,3 +5,4 @@
[Stringification of window.document]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is omitted when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an http\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an https\n sub-resource via img-tag using the attr-referrer\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an https\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is cross-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with keep-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is stripped-referrer when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with no-redirect and when\n the target request is same-origin.]
expected: FAIL

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

@ -2,3 +2,4 @@
type: testharness
[The referrer URL is origin when a\n document served over http requires an http\n sub-resource via img-tag using the http-rp\n delivery method with swap-origin-redirect and when\n the target request is same-origin.]
expected: FAIL

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше