Skip to content

Commit d3cb416

Browse files
authored
Merge branch 'microsoft:main' into add_autocomplete_html_attribute
2 parents dd6c06d + 2d110ad commit d3cb416

15 files changed

+1462
-3367
lines changed

SECURITY.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.8 BLOCK -->
2+
3+
## Security
4+
5+
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
6+
7+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
8+
9+
## Reporting Security Issues
10+
11+
**Please do not report security vulnerabilities through public GitHub issues.**
12+
13+
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
14+
15+
If you prefer to submit without logging in, send email to [[email protected]](mailto:[email protected]). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
16+
17+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
18+
19+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20+
21+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22+
* Full paths of source file(s) related to the manifestation of the issue
23+
* The location of the affected source code (tag/branch/commit or direct URL)
24+
* Any special configuration required to reproduce the issue
25+
* Step-by-step instructions to reproduce the issue
26+
* Proof-of-concept or exploit code (if possible)
27+
* Impact of the issue, including how an attacker might exploit the issue
28+
29+
This information will help us triage your report more quickly.
30+
31+
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
32+
33+
## Preferred Languages
34+
35+
We prefer all communications to be in English.
36+
37+
## Policy
38+
39+
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
40+
41+
<!-- END MICROSOFT SECURITY.MD BLOCK -->

baselines/audioworklet.generated.d.ts

+32-14
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ interface TextDecoderOptions {
124124
}
125125

126126
interface TextEncoderEncodeIntoResult {
127-
read?: number;
128-
written?: number;
127+
read: number;
128+
written: number;
129129
}
130130

131131
interface Transformer<I = any, O = any> {
@@ -223,7 +223,7 @@ interface AbortSignal extends EventTarget {
223223
declare var AbortSignal: {
224224
prototype: AbortSignal;
225225
new(): AbortSignal;
226-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort) */
226+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
227227
abort(reason?: any): AbortSignal;
228228
};
229229

@@ -265,6 +265,7 @@ interface AudioWorkletProcessorImpl extends AudioWorkletProcessor {
265265
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
266266
*/
267267
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
268+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */
268269
readonly highWaterMark: number;
269270
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */
270271
readonly size: QueuingStrategySize<ArrayBufferView>;
@@ -281,7 +282,7 @@ interface CompressionStream extends GenericTransformStream {
281282

282283
declare var CompressionStream: {
283284
prototype: CompressionStream;
284-
new(format: string): CompressionStream;
285+
new(format: CompressionFormat): CompressionStream;
285286
};
286287

287288
/**
@@ -290,6 +291,7 @@ declare var CompressionStream: {
290291
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
291292
*/
292293
interface CountQueuingStrategy extends QueuingStrategy {
294+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */
293295
readonly highWaterMark: number;
294296
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */
295297
readonly size: QueuingStrategySize;
@@ -400,7 +402,7 @@ interface DecompressionStream extends GenericTransformStream {
400402

401403
declare var DecompressionStream: {
402404
prototype: DecompressionStream;
403-
new(format: string): DecompressionStream;
405+
new(format: CompressionFormat): DecompressionStream;
404406
};
405407

406408
/**
@@ -1009,10 +1011,14 @@ interface URL {
10091011
declare var URL: {
10101012
prototype: URL;
10111013
new(url: string | URL, base?: string | URL): URL;
1014+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
1015+
canParse(url: string | URL, base?: string): boolean;
10121016
};
10131017

10141018
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
10151019
interface URLSearchParams {
1020+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */
1021+
readonly size: number;
10161022
/**
10171023
* Appends a specified key/value pair as a new search parameter.
10181024
*
@@ -1024,7 +1030,7 @@ interface URLSearchParams {
10241030
*
10251031
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
10261032
*/
1027-
delete(name: string): void;
1033+
delete(name: string, value?: string): void;
10281034
/**
10291035
* Returns the first value associated to the given search parameter.
10301036
*
@@ -1042,7 +1048,7 @@ interface URLSearchParams {
10421048
*
10431049
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
10441050
*/
1045-
has(name: string): boolean;
1051+
has(name: string, value?: string): boolean;
10461052
/**
10471053
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
10481054
*
@@ -1080,6 +1086,7 @@ interface WritableStream<W = any> {
10801086
readonly locked: boolean;
10811087
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */
10821088
abort(reason?: any): Promise<void>;
1089+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */
10831090
close(): Promise<void>;
10841091
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */
10851092
getWriter(): WritableStreamDefaultWriter<W>;
@@ -1190,16 +1197,16 @@ declare namespace WebAssembly {
11901197
};
11911198

11921199
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global) */
1193-
interface Global {
1200+
interface Global<T extends ValueType = ValueType> {
11941201
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/value) */
1195-
value: any;
1202+
value: ValueTypeMap[T];
11961203
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Global/valueOf) */
1197-
valueOf(): any;
1204+
valueOf(): ValueTypeMap[T];
11981205
}
11991206

12001207
var Global: {
12011208
prototype: Global;
1202-
new(descriptor: GlobalDescriptor, v?: any): Global;
1209+
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
12031210
};
12041211

12051212
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance) */
@@ -1276,9 +1283,9 @@ declare namespace WebAssembly {
12761283
new(descriptor: TableDescriptor, value?: any): Table;
12771284
};
12781285

1279-
interface GlobalDescriptor {
1286+
interface GlobalDescriptor<T extends ValueType = ValueType> {
12801287
mutable?: boolean;
1281-
value: ValueType;
1288+
value: T;
12821289
}
12831290

12841291
interface MemoryDescriptor {
@@ -1304,19 +1311,29 @@ declare namespace WebAssembly {
13041311
maximum?: number;
13051312
}
13061313

1314+
interface ValueTypeMap {
1315+
anyfunc: Function;
1316+
externref: any;
1317+
f32: number;
1318+
f64: number;
1319+
i32: number;
1320+
i64: bigint;
1321+
v128: never;
1322+
}
1323+
13071324
interface WebAssemblyInstantiatedSource {
13081325
instance: Instance;
13091326
module: Module;
13101327
}
13111328

13121329
type ImportExportKind = "function" | "global" | "memory" | "table";
13131330
type TableKind = "anyfunc" | "externref";
1314-
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
13151331
type ExportValue = Function | Global | Memory | Table;
13161332
type Exports = Record<string, ExportValue>;
13171333
type ImportValue = ExportValue | number;
13181334
type Imports = Record<string, ModuleImports>;
13191335
type ModuleImports = Record<string, ImportValue>;
1336+
type ValueType = keyof ValueTypeMap;
13201337
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/compile) */
13211338
function compile(bytes: BufferSource): Promise<Module>;
13221339
/** [MDN Reference](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/instantiate) */
@@ -1390,5 +1407,6 @@ type ReadableStreamController<T> = ReadableStreamDefaultController<T> | Readable
13901407
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
13911408
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
13921409
type Transferable = MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
1410+
type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
13931411
type ReadableStreamReaderMode = "byob";
13941412
type ReadableStreamType = "bytes";

0 commit comments

Comments
 (0)