mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 10:57:34 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
a55674f653
89 changed files with 10466 additions and 916 deletions
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
typedef object JSON;
|
||||
typedef (ArrayBuffer or ArrayBufferView or Blob or FormData or USVString or URLSearchParams) BodyInit;
|
||||
typedef (Blob or BufferSource or FormData or URLSearchParams or USVString) BodyInit;
|
||||
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface Body {
|
||||
|
|
@ -24,3 +24,15 @@ interface Body {
|
|||
[Throws]
|
||||
Promise<USVString> text();
|
||||
};
|
||||
|
||||
// These are helper dictionaries for the parsing of a
|
||||
// getReader().read().then(data) parsing.
|
||||
// See more about how these 2 helpers are used in
|
||||
// dom/fetch/FetchStreamReader.cpp
|
||||
dictionary FetchReadableStreamReadDataDone {
|
||||
boolean done = false;
|
||||
};
|
||||
|
||||
dictionary FetchReadableStreamReadDataArray {
|
||||
Uint8Array value;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -294,7 +294,7 @@ partial interface Navigator {
|
|||
partial interface Navigator {
|
||||
[Throws, Pref="beacon.enabled"]
|
||||
boolean sendBeacon(DOMString url,
|
||||
optional (ArrayBufferView or Blob or DOMString or FormData)? data = null);
|
||||
optional BodyInit? data = null);
|
||||
};
|
||||
|
||||
partial interface Navigator {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@
|
|||
* https://fetch.spec.whatwg.org/#response-class
|
||||
*/
|
||||
|
||||
[Constructor(optional BodyInit? body, optional ResponseInit init),
|
||||
// This should be Constructor(optional BodyInit... but BodyInit doesn't include
|
||||
// ReadableStream yet because we don't want to expose the Streams API to Request.
|
||||
[Constructor(optional (Blob or BufferSource or FormData or URLSearchParams or ReadableStream or USVString) body, optional ResponseInit init),
|
||||
Exposed=(Window,Worker)]
|
||||
interface Response {
|
||||
[NewObject] static Response error();
|
||||
|
|
@ -30,6 +32,12 @@ interface Response {
|
|||
};
|
||||
Response implements Body;
|
||||
|
||||
// This should be part of Body but we don't want to expose body to request yet.
|
||||
partial interface Response {
|
||||
[GetterThrows, Func="nsContentUtils::StreamsEnabled"]
|
||||
readonly attribute ReadableStream? body;
|
||||
};
|
||||
|
||||
dictionary ResponseInit {
|
||||
unsigned short status = 200;
|
||||
ByteString statusText = "OK";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue