From c96c505cf293e9bf3eee3c173d141e9325ff6824 Mon Sep 17 00:00:00 2001 From: Richard Bloor Date: Mon, 20 Apr 2026 05:24:55 +1200 Subject: [PATCH 1/3] Add missing `PlatformInfo` values --- .../api/runtime/platformarch/index.md | 16 +++++++++++++--- .../api/runtime/platformnaclarch/index.md | 6 +++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformarch/index.md b/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformarch/index.md index 5f8b81dadff8aff..49719d165434518 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformarch/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformarch/index.md @@ -12,12 +12,22 @@ The machine's processor architecture. Values of this type are strings. Possible values are: +- `"aarch64"` + - : The platform is based on the ARM 64-bit architecture. - `"arm"` - - : The platform is based on arm architecture. + - : The platform is based on the ARM 32-bit architecture. +- `"arm64"` + - : The platform is based on the ARM 64-bit architecture. +- `"mips"` + - : The platform is based on the 32-bit MIPS instruction set architecture (ISA). +- `"mips64"` + - : The platform is based on the 64-bit MIPS instruction set architecture (ISA). +- `"riscv64"` + - : The platform is based on the 64-bit implementation of the RISC-V open-standard instruction set architecture (ISA). - `"x86-32"` - - : The platform is based on x86 32-bit architecture. + - : The platform is based on the x86 32-bit architecture. - `"x86-64"` - - : The platform is based on x86 64-bit architecture. + - : The platform is based on the x86 64-bit architecture. {{WebExtExamples}} diff --git a/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformnaclarch/index.md b/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformnaclarch/index.md index aba23b12ecd4ae7..868afb87d5ce42e 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformnaclarch/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformnaclarch/index.md @@ -14,15 +14,15 @@ The enumerated value representing the CPU instruction set architecture of Google ## Type - `ARM` - - : The string literal `"arm"`. Represents all versions of the ARM ISA, including all 32-bit and 64-bit variants. Equivalent to [`PlatformArch.arm`](/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/PlatformArch#arm) (32-bit variant) and `PlatformArch.arm64` combined into one value. + - : The string literal `"arm"`. Represents all versions of the ARM ISA, including all 32-bit and 64-bit variants. Equivalent to [`PlatformArch.arm`](/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/PlatformArch#arm) (32-bit variant) and [`PlatformArch.arm64`](/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/PlatformArch#arm64) combined into one value. - `X86_32` - : The string literal `"x86-32"`. Represents the 32-bit variant of the x86 architecture. Equivalent to [`PlatformArch.x86_32`](/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/PlatformArch#x86-32). - `X86_64` - : The string literal `"x86-64"`. Represents the 64-bit variant of the x86 architecture. Equivalent to [`PlatformArch.X86_64`](/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/PlatformArch#x86-64). - `MIPS` - - : The string literal `"mips"`. Represents the 32-bit variant of the MIPS ISA, which was never supported by official releases. Equivalent to `PlatformArch.mips`. + - : The string literal `"mips"`. Represents the 32-bit variant of the MIPS ISA, which was never supported by official releases. Equivalent to [`PlatformArch.mips`](/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/PlatformArch#mips). - `MIPS64` - - : The string literal `"mips64"`. Represents the 64-bit variant of the MIPS ISA, which was never supported by official releases. Equivalent to `PlatformArch.mips64`. + - : The string literal `"mips64"`. Represents the 64-bit variant of the MIPS ISA, which was never supported by official releases. Equivalent to [`PlatformArch.mips64`](/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/PlatformArch#xmips64). {{WebExtExamples}} From 3fc3a01201c40c5fb6494ac5be65e377f0caf49a Mon Sep 17 00:00:00 2001 From: Richard Bloor Date: Tue, 21 Apr 2026 05:35:59 +1200 Subject: [PATCH 2/3] Not regarding list completeness --- .../add-ons/webextensions/api/runtime/platformarch/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformarch/index.md b/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformarch/index.md index 49719d165434518..6ff5e3044df58da 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformarch/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformarch/index.md @@ -29,6 +29,9 @@ Values of this type are strings. Possible values are: - `"x86-64"` - : The platform is based on the x86 64-bit architecture. +> [!NOTE] +> This list may be incomplete. In particular, it may not reflect unofficial builds for other platforms. + {{WebExtExamples}} ## Browser compatibility From b7c9c51cff76cb144a7fee651a0ff4fae1c498c9 Mon Sep 17 00:00:00 2001 From: rebloor Date: Tue, 21 Apr 2026 05:38:42 +1200 Subject: [PATCH 3/3] Linter correction Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../add-ons/webextensions/api/runtime/platformarch/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformarch/index.md b/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformarch/index.md index 6ff5e3044df58da..69418fef85d5305 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformarch/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/runtime/platformarch/index.md @@ -23,7 +23,7 @@ Values of this type are strings. Possible values are: - `"mips64"` - : The platform is based on the 64-bit MIPS instruction set architecture (ISA). - `"riscv64"` - - : The platform is based on the 64-bit implementation of the RISC-V open-standard instruction set architecture (ISA). + - : The platform is based on the 64-bit implementation of the RISC-V open-standard instruction set architecture (ISA). - `"x86-32"` - : The platform is based on the x86 32-bit architecture. - `"x86-64"`