Skip to content

Commit d093679

Browse files
bershanskiyrebloor
andauthored
[WebExtensions] Deprecate runtime.PlatformInfo.nacl_arch (#43799)
* [WebExtensions] Deprecate runtime.PlatformInfo.nacl_arch Chromium is the only engine which supported Google Native Client (NaCl) and runtime.PlatformInfo.nacl_arch WebExtension API. Chromium removed NaCl and is currently in the process of removal of associated WebExtensions API remnants. Details: chromium/chromium@913e0c0 chromium/chromium@6e62e12 chromium/chromium@9b22796 * Revert to usual section title --------- Co-authored-by: rebloor <git@sherpa.co.nz>
1 parent b760560 commit d093679

3 files changed

Lines changed: 18 additions & 6 deletions

File tree

files/en-us/mozilla/add-ons/webextensions/api/runtime/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ It also provides messaging APIs enabling you to:
2626
- : Identifies the browser's processor architecture.
2727
- {{WebExtAPIRef("runtime.PlatformInfo")}}
2828
- : Contains information about the platform the browser is running on.
29-
- {{WebExtAPIRef("runtime.PlatformNaclArch")}}
30-
- : The native client architecture. This may be different from `PlatformArch` on some platforms.
29+
- {{WebExtAPIRef("runtime.PlatformNaclArch")}} {{deprecated_inline}}
30+
- : The deprecated enumeration value representing Google Native Client architecture. Consider migrating to `PlatformArch`, which is supported by Safari and Mozilla, and represents the true CPU architecture and conveys correct bitness information on ARM.
3131
- {{WebExtAPIRef("runtime.RequestUpdateCheckStatus")}}
3232
- : Result of a call to {{WebExtAPIRef("runtime.requestUpdateCheck()")}}.
3333
- {{WebExtAPIRef("runtime.OnInstalledReason")}}

files/en-us/mozilla/add-ons/webextensions/api/runtime/platforminfo/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Values of this type are objects, which contain the following properties:
1616
- : {{WebExtAPIRef('runtime.PlatformOs')}}. The platform's operating system.
1717
- `arch`
1818
- : {{WebExtAPIRef('runtime.PlatformArch')}}. The platform's processor architecture.
19-
- `nacl_arch`
20-
- : {{WebExtAPIRef('runtime.PlatformNaclArch')}}. The native client architecture. This may be different from `arch` on some platforms.
19+
- `nacl_arch` {{deprecated_inline}}
20+
- : {{WebExtAPIRef('runtime.PlatformNaclArch')}}. The Google Native Client architecture. Only Chromium-based browsers support this attribute, and Chromium is removing it. Consider migrating to `arch`, which contains equivalent information and is more descriptive on some platforms (ARM and RISC-V).
2121

2222
{{WebExtExamples}}
2323

files/en-us/mozilla/add-ons/webextensions/api/runtime/platformnaclarch/index.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,23 @@ browser-compat: webextensions.api.runtime.PlatformNaclArch
66
sidebar: addonsidebar
77
---
88

9-
The native client architecture. This may be different from arch on some platforms.
9+
> [!NOTE]
10+
> **This type is deprecated** in favor of {{WebExtAPIRef("runtime.PlatformArch")}}. `PlatformArch` is also available in {{WebExtAPIRef("runtime.PlatformInfo")}}, which you obtain using {{WebExtAPIRef("runtime.getPlatformInfo()")}}.
11+
12+
The enumerated value representing the CPU instruction set architecture of Google Native Client used by the browser. This enum is deprecated, following the removal of Google Native Client from Google Chrome. As of 2026, Chromium intends to remove this enum.
1013

1114
## Type
1215

13-
Values of this type are strings. Possible values are: `"arm"`, `"x86-32"`, `"x86-64"`.
16+
- `ARM`
17+
- : 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.
18+
- `X86_32`
19+
- : 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).
20+
- `X86_64`
21+
- : 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).
22+
- `MIPS`
23+
- : The string literal `"mips"`. Represents the 32-bit variant of the MIPS ISA, which was never supported by official releases. Equivalent to `PlatformArch.mips`.
24+
- `MIPS64`
25+
- : The string literal `"mips64"`. Represents the 64-bit variant of the MIPS ISA, which was never supported by official releases. Equivalent to `PlatformArch.mips64`.
1426

1527
{{WebExtExamples}}
1628

0 commit comments

Comments
 (0)