Skip to content

Commit 5d014ff

Browse files
authored
Merge branch 'main' into move/mathml
2 parents ad49c61 + 6b52c3a commit 5d014ff

File tree

58 files changed

+236
-150
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+236
-150
lines changed

files/en-us/mozilla/firefox/experimental_features/index.md

-40
Original file line numberDiff line numberDiff line change
@@ -1682,46 +1682,6 @@ Notifications have the [`requireInteraction`](/en-US/docs/Web/API/Notification/r
16821682
</tbody>
16831683
</table>
16841684

1685-
### SVG path API methods
1686-
1687-
The `SVGPathSegment` interface now supports the `getPathData()`, `setPathData()`, and `getPathSegmentAtLength()` methods. These methods provide a convenient way to work with SVG path data instead of parsing raw string data. ([Firefox bug 1934525](https://bugzil.la/1934525)).
1688-
1689-
<table>
1690-
<thead>
1691-
<tr>
1692-
<th>Release channel</th>
1693-
<th>Version added</th>
1694-
<th>Enabled by default?</th>
1695-
</tr>
1696-
</thead>
1697-
<tbody>
1698-
<tr>
1699-
<th>Nightly</th>
1700-
<td>136</td>
1701-
<td>Yes</td>
1702-
</tr>
1703-
<tr>
1704-
<th>Developer Edition</th>
1705-
<td>136</td>
1706-
<td>No</td>
1707-
</tr>
1708-
<tr>
1709-
<th>Beta</th>
1710-
<td>136</td>
1711-
<td>No</td>
1712-
</tr>
1713-
<tr>
1714-
<th>Release</th>
1715-
<td>136</td>
1716-
<td>No</td>
1717-
</tr>
1718-
<tr>
1719-
<th>Preference name</th>
1720-
<td colspan="2"><code>dom.svg.pathSegment.enabled</code></td>
1721-
</tr>
1722-
</tbody>
1723-
</table>
1724-
17251685
## Security and privacy
17261686

17271687
### Block plain text requests from Flash on encrypted pages

files/en-us/mozilla/firefox/releases/137/index.md

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ This article provides information about the changes in Firefox 137 that affect d
4747

4848
### APIs
4949

50+
- The {{domxref("SVGPathSegment/getPathData","getPathData()")}}, {{domxref("SVGPathSegment/setPathData","setPathData()")}}, and {{domxref("SVGPathSegment/getPathSegmentAtLength","getPathSegmentAtLength()")}} methods of the {{domxref("SVGPathSegment")}} interface are now supported. These methods provide a convenient way to work with SVG path data instead of parsing raw string data. ([Firefox bug 1945312](https://bugzil.la/1945312)).
51+
5052
#### DOM
5153

5254
#### Media, WebRTC, and Web Audio

files/en-us/web/api/gpuadapter/info/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ browser-compat: api.GPUAdapter.info
1313
The **`info`** read-only property of the
1414
{{domxref("GPUAdapter")}} interface returns a {{domxref("GPUAdapterInfo")}} object containing identifying information about the adapter.
1515

16-
The intention behind this property is to allow developers to request specific details about the user's GPU so that they can preemptively apply workarounds for GPU-specific bugs, or provide different codepaths to better suit different GPU architectures. Providing such information does present a security risk — it could be used for fingerprinting — therefore the information shared is to be kept at a minimum, and different browser vendors are likely to share different information types and granularities.
17-
1816
## Value
1917

2018
A {{domxref("GPUAdapterInfo")}} object instance.
2119

2220
## Examples
2321

22+
### Basic info usage
23+
2424
```js
2525
const adapter = await navigator.gpu.requestAdapter();
2626
if (!adapter) {

files/en-us/web/api/gpuadapterinfo/index.md

+26-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ browser-compat: api.GPUAdapterInfo
1111

1212
The **`GPUAdapterInfo`** interface of the {{domxref("WebGPU API", "WebGPU API", "", "nocode")}} contains identifying information about a {{domxref("GPUAdapter")}}.
1313

14-
A `GPUAdapterInfo` object instance is retrieved using the {{domxref("GPUAdapter.info")}} property.
14+
An adapter's `GPUAdapterInfo` can be retrieved using the {{domxref("GPUAdapter.info")}} property of the adapter itself, or the {{domxref("GPUDevice.adapterInfo")}} property of a device that originated from the adapter.
15+
16+
This object allows developers to access specific details about the user's GPU so that they can preemptively apply workarounds for GPU-specific bugs, or provide different codepaths to better suit different GPU architectures. Providing such information does present a security risk — it could be used for fingerprinting — therefore the information shared is kept at a minimum, and different browser vendors are likely to share different information types and granularities.
1517

1618
{{InheritanceDiagram}}
1719

@@ -28,6 +30,8 @@ A `GPUAdapterInfo` object instance is retrieved using the {{domxref("GPUAdapter.
2830

2931
## Examples
3032

33+
### Access GPUAdapterInfo via GPUAdapter.info
34+
3135
```js
3236
const adapter = await navigator.gpu.requestAdapter();
3337
if (!adapter) {
@@ -39,6 +43,27 @@ console.log(adapterInfo.vendor);
3943
console.log(adapterInfo.architecture);
4044
```
4145

46+
### Access GPUAdapterInfo via GPUDevice.adapterInfo
47+
48+
```js
49+
const adapter = await navigator.gpu.requestAdapter();
50+
if (!adapter) {
51+
throw Error("Couldn't request WebGPU adapter.");
52+
}
53+
54+
const myDevice = await adapter.requestDevice();
55+
56+
function optimizeForGpuDevice(device) {
57+
if (device.adapterInfo.vendor === "amd") {
58+
// Use AMD-specific optimizations
59+
} else if (device.adapterInfo.architecture.includes("turing")) {
60+
// Optimize for NVIDIA Turing architecture
61+
}
62+
}
63+
64+
optimizeForGpuDevice(myDevice);
65+
```
66+
4267
## Specifications
4368

4469
{{Specifications}}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
title: "GPUDevice: adapterInfo property"
3+
short-title: adapterInfo
4+
slug: Web/API/GPUDevice/adapterInfo
5+
page-type: web-api-instance-property
6+
status:
7+
- experimental
8+
browser-compat: api.GPUDevice.adapterInfo
9+
---
10+
11+
{{APIRef("WebGPU API")}}{{SeeCompatTable}}{{SecureContext_Header}}{{AvailableInWorkers}}
12+
13+
The **`adapterInfo`** read-only property of the
14+
{{domxref("GPUDevice")}} interface returns a {{domxref("GPUAdapterInfo")}} object containing identifying information about the device's originating adapter.
15+
16+
## Value
17+
18+
A {{domxref("GPUAdapterInfo")}} object instance.
19+
20+
## Examples
21+
22+
### Basic adapterInfo usage
23+
24+
```js
25+
const adapter = await navigator.gpu.requestAdapter();
26+
if (!adapter) {
27+
throw Error("Couldn't request WebGPU adapter.");
28+
}
29+
30+
const myDevice = await adapter.requestDevice();
31+
32+
function optimizeForGpuDevice(device) {
33+
if (device.adapterInfo.vendor === "amd") {
34+
// Use AMD-specific optimizations
35+
} else if (device.adapterInfo.architecture.includes("turing")) {
36+
// Optimize for NVIDIA Turing architecture
37+
}
38+
}
39+
40+
optimizeForGpuDevice(myDevice);
41+
```
42+
43+
## Specifications
44+
45+
{{Specifications}}
46+
47+
## Browser compatibility
48+
49+
{{Compat}}
50+
51+
## See also
52+
53+
- The [WebGPU API](/en-US/docs/Web/API/WebGPU_API)

files/en-us/web/api/gpudevice/index.md

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ A `GPUDevice` object is requested using the {{domxref("GPUAdapter.requestDevice(
1919

2020
_Inherits properties from its parent, {{DOMxRef("EventTarget")}}._
2121

22+
- {{domxref("GPUDevice.adapterInfo", "adapterInfo")}} {{Experimental_Inline}} {{ReadOnlyInline}}
23+
24+
- : A {{domxref("GPUAdapterInfo")}} object containing identifying information about the device's originating adapter.
25+
2226
- {{domxref("GPUDevice.features", "features")}} {{Experimental_Inline}} {{ReadOnlyInline}}
2327

2428
- : A {{domxref("GPUSupportedFeatures")}} object that describes additional functionality supported by the device.

files/en-us/web/api/gpusupportedlimits/index.md

+33-33
Original file line numberDiff line numberDiff line change
@@ -23,39 +23,39 @@ Given that different browsers will handle this differently and the tier values m
2323

2424
The following limits are represented by properties in a `GPUSupportedLimits` object. See the [Limits](https://gpuweb.github.io/gpuweb/#limits) section of the specification for detailed descriptions of what the limits relate to.
2525

26-
| Limit name | Default value |
27-
| ------------------------------------------- | ------------------------ |
28-
| `maxTextureDimension1D` | 8192 |
29-
| `maxTextureDimension2D` | 8192 |
30-
| `maxTextureDimension3D` | 2048 |
31-
| `maxTextureArrayLayers` | 256 |
32-
| `maxBindGroups` | 4 |
33-
| `maxBindingsPerBindGroup` | 640 |
34-
| `maxDynamicUniformBuffersPerPipelineLayout` | 8 |
35-
| `maxDynamicStorageBuffersPerPipelineLayout` | 4 |
36-
| `maxSampledTexturesPerShaderStage` | 16 |
37-
| `maxSamplersPerShaderStage` | 16 |
38-
| `maxStorageBuffersPerShaderStage` | 8 |
39-
| `maxStorageTexturesPerShaderStage` | 4 |
40-
| `maxUniformBuffersPerShaderStage` | 12 |
41-
| `maxUniformBufferBindingSize` | 65536 bytes |
42-
| `maxStorageBufferBindingSize` | 134217728 bytes (128 MB) |
43-
| `minUniformBufferOffsetAlignment` | 256 bytes |
44-
| `minStorageBufferOffsetAlignment` | 256 bytes |
45-
| `maxVertexBuffers` | 8 |
46-
| `maxBufferSize` | 268435456 bytes (256 MB) |
47-
| `maxVertexAttributes` | 16 |
48-
| `maxVertexBufferArrayStride` | 2048 bytes |
49-
| `maxInterStageShaderComponents` | 60 |
50-
| `maxInterStageShaderVariables` | 16 |
51-
| `maxColorAttachments` | 8 |
52-
| `maxColorAttachmentBytesPerSample` | 32 |
53-
| `maxComputeWorkgroupStorageSize` | 16384 bytes |
54-
| `maxComputeInvocationsPerWorkgroup` | 256 |
55-
| `maxComputeWorkgroupSizeX` | 256 |
56-
| `maxComputeWorkgroupSizeY` | 256 |
57-
| `maxComputeWorkgroupSizeZ` | 64 |
58-
| `maxComputeWorkgroupsPerDimension` | 65535 |
26+
| Limit name | Default value |
27+
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
28+
| `maxTextureDimension1D` | 8192 |
29+
| `maxTextureDimension2D` | 8192 |
30+
| `maxTextureDimension3D` | 2048 |
31+
| `maxTextureArrayLayers` | 256 |
32+
| `maxBindGroups` | 4 |
33+
| `maxBindingsPerBindGroup` | 640 |
34+
| `maxDynamicUniformBuffersPerPipelineLayout` | 8 |
35+
| `maxDynamicStorageBuffersPerPipelineLayout` | 4 |
36+
| `maxSampledTexturesPerShaderStage` | 16 |
37+
| `maxSamplersPerShaderStage` | 16 |
38+
| `maxStorageBuffersPerShaderStage` | 8 |
39+
| `maxStorageTexturesPerShaderStage` | 4 |
40+
| `maxUniformBuffersPerShaderStage` | 12 |
41+
| `maxUniformBufferBindingSize` | 65536 bytes |
42+
| `maxStorageBufferBindingSize` | 134217728 bytes (128 MB) |
43+
| `minUniformBufferOffsetAlignment` | 256 bytes |
44+
| `minStorageBufferOffsetAlignment` | 256 bytes |
45+
| `maxVertexBuffers` | 8 |
46+
| `maxBufferSize` | 268435456 bytes (256 MB) |
47+
| `maxVertexAttributes` | 16 |
48+
| `maxVertexBufferArrayStride` | 2048 bytes |
49+
| `maxInterStageShaderComponents` {{deprecated_inline}} {{non-standard_inline}} (use `maxInterStageShaderVariables` instead, see [deprecation notice](https://developer.chrome.com/blog/new-in-webgpu-133#deprecate_maxinterstageshadercomponents_limit) for more info) | 60 |
50+
| `maxInterStageShaderVariables` | 16 |
51+
| `maxColorAttachments` | 8 |
52+
| `maxColorAttachmentBytesPerSample` | 32 |
53+
| `maxComputeWorkgroupStorageSize` | 16384 bytes |
54+
| `maxComputeInvocationsPerWorkgroup` | 256 |
55+
| `maxComputeWorkgroupSizeX` | 256 |
56+
| `maxComputeWorkgroupSizeY` | 256 |
57+
| `maxComputeWorkgroupSizeZ` | 64 |
58+
| `maxComputeWorkgroupsPerDimension` | 65535 |
5959

6060
## Examples
6161

files/en-us/web/api/htmldialogelement/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ _Also inherits methods from its parent interface, {{domxref("HTMLElement")}}._
2929

3030
- {{domxref("HTMLDialogElement.close()")}}
3131
- : Closes the dialog. An optional string may be passed as an argument, updating the `returnValue` of the dialog.
32-
- {{domxref("HTMLDialogElement.requestClose()")}} {{experimental_inline}}
32+
- {{domxref("HTMLDialogElement.requestClose()")}}
3333
- : Requests to close the dialog. An optional string may be passed as an argument, updating the `returnValue` of the dialog.
3434
- {{domxref("HTMLDialogElement.show()")}}
3535
- : Displays the dialog modelessly, i.e. still allowing interaction with content outside of the dialog.

files/en-us/web/api/htmldialogelement/requestclose/index.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ title: "HTMLDialogElement: requestClose() method"
33
short-title: requestClose()
44
slug: Web/API/HTMLDialogElement/requestClose
55
page-type: web-api-instance-method
6-
status:
7-
- experimental
86
browser-compat: api.HTMLDialogElement.requestClose
97
---
108

11-
{{ APIRef("HTML DOM") }}{{SeeCompatTable}}
9+
{{ APIRef("HTML DOM") }}
1210

1311
The **`requestClose()`** method of the {{domxref("HTMLDialogElement")}} interface requests to close the {{htmlelement("dialog")}}.
1412
An optional string may be passed as an argument, updating the `returnValue` of the dialog.

0 commit comments

Comments
 (0)