Bug 1759605 - Expose missing ReadableStream interfaces (as defined by WebIDL) r=saschanaz,webidl,smaug

Differential Revision: https://phabricator.services.mozilla.com/D141126
This commit is contained in:
Matthew Gaudet 2022-03-16 15:28:03 +00:00
parent 9085e70b83
commit 4186ebdfcc
5 changed files with 33 additions and 12 deletions

View File

@ -62,8 +62,6 @@ var ecmaGlobals = [
"BigInt",
"BigInt64Array",
"BigUint64Array",
{ name: "ByteLengthQueuingStrategy", optional: true },
{ name: "CountQueuingStrategy", optional: true },
"DataView",
"Date",
"Error",
@ -87,7 +85,6 @@ var ecmaGlobals = [
"Promise",
"Proxy",
"RangeError",
{ name: "ReadableStream", optional: true },
"ReferenceError",
"Reflect",
"RegExp",
@ -124,6 +121,8 @@ var interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
"BroadcastChannel",
// IMPORTANT: Do not change this list without review from a DOM peer!
"ByteLengthQueuingStrategy",
// IMPORTANT: Do not change this list without review from a DOM peer!
"Cache",
// IMPORTANT: Do not change this list without review from a DOM peer!
"CacheStorage",
@ -134,6 +133,8 @@ var interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
"CloseEvent",
// IMPORTANT: Do not change this list without review from a DOM peer!
"CountQueuingStrategy",
// IMPORTANT: Do not change this list without review from a DOM peer!
"Crypto",
// IMPORTANT: Do not change this list without review from a DOM peer!
"CustomEvent",
@ -262,6 +263,12 @@ var interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "PushSubscriptionOptions" },
// IMPORTANT: Do not change this list without review from a DOM peer!
"ReadableStream",
// IMPORTANT: Do not change this list without review from a DOM peer!
"ReadableStreamDefaultController",
// IMPORTANT: Do not change this list without review from a DOM peer!
"ReadableStreamDefaultReader",
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "Report", nightly: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ReportBody", nightly: true },

View File

@ -90,8 +90,6 @@ var ecmaGlobals = [
{ name: "BigInt64Array", insecureContext: true },
{ name: "BigUint64Array", insecureContext: true },
{ name: "Boolean", insecureContext: true },
{ name: "ByteLengthQueuingStrategy", insecureContext: true },
{ name: "CountQueuingStrategy", insecureContext: true },
{ name: "DataView", insecureContext: true },
{ name: "Date", insecureContext: true },
{ name: "Error", insecureContext: true },
@ -115,7 +113,6 @@ var ecmaGlobals = [
{ name: "Promise", insecureContext: true },
{ name: "Proxy", insecureContext: true },
{ name: "RangeError", insecureContext: true },
{ name: "ReadableStream", insecureContext: true },
{ name: "ReferenceError", insecureContext: true },
{ name: "Reflect", insecureContext: true },
{ name: "RegExp", insecureContext: true },
@ -228,6 +225,8 @@ var interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "BroadcastChannel", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ByteLengthQueuingStrategy", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "Cache", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "CacheStorage", insecureContext: true },
@ -264,6 +263,8 @@ var interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ConvolverNode", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "CountQueuingStrategy", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "Credential" },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "CredentialsContainer" },
@ -947,6 +948,12 @@ var interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "Range", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ReadableStream", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ReadableStreamDefaultController", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ReadableStreamDefaultReader", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "Report", insecureContext: true, nightly: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ReportBody", insecureContext: true, nightly: true },

View File

@ -68,8 +68,6 @@ var ecmaGlobals = [
{ name: "BigInt64Array", insecureContext: true },
{ name: "BigUint64Array", insecureContext: true },
{ name: "Boolean", insecureContext: true },
{ name: "ByteLengthQueuingStrategy", insecureContext: true },
{ name: "CountQueuingStrategy", insecureContext: true },
{ name: "DataView", insecureContext: true },
{ name: "Date", insecureContext: true },
{ name: "Error", insecureContext: true },
@ -95,7 +93,6 @@ var ecmaGlobals = [
{ name: "Promise", insecureContext: true },
{ name: "Proxy", insecureContext: true },
{ name: "RangeError", insecureContext: true },
{ name: "ReadableStream", insecureContext: true },
{ name: "ReferenceError", insecureContext: true },
{ name: "Reflect", insecureContext: true },
{ name: "RegExp", insecureContext: true },
@ -133,12 +130,16 @@ var interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "BroadcastChannel", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ByteLengthQueuingStrategy", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "Cache", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "CacheStorage", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "CloseEvent", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "CountQueuingStrategy", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "Crypto", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "CustomEvent", insecureContext: true },
@ -262,6 +263,12 @@ var interfaceNamesInGlobalScope = [
insecureContext: true,
},
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ReadableStream", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ReadableStreamDefaultController", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ReadableStreamDefaultReader", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "Report", nightly: true, insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ReportBody", nightly: true, insecureContext: true },

View File

@ -3655,12 +3655,12 @@
# interfaces from the global until later.
- name: dom.streams.readable_stream_default_controller.enabled
type: RelaxedAtomicBool
value: false
value: true
mirror: always
- name: dom.streams.readable_stream_default_reader.enabled
type: RelaxedAtomicBool
value: false
value: true
mirror: always
- name: dom.streams.byte_streams.enabled

View File

@ -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, dom.streams.pipeTo.enabled:true]
prefs: [javascript.options.streams:true, dom.streams.byte_streams.enabled:true, dom.streams.writable_streams.enabled:true, dom.streams.transform_streams.enabled:true, dom.streams.pipeTo.enabled:true]