From 471b14cd668df10e0bd59c69725e3cc1cb69f09c Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 23 Feb 2024 10:48:39 +1100 Subject: [PATCH] FF124 ExperFeatures - Growable SharedArrayBuffer & Resizable ArrayBuffer (#32355) * FF124 ExprFeat: SharedArrayBuffer growable * FF124 ExprFeat: ArrayBuffer resizable * FF124 Relnote - addn of expr features for growable * Update files/en-us/mozilla/firefox/experimental_features/index.md --- .../firefox/experimental_features/index.md | 86 +++++++++++++++++++ .../mozilla/firefox/releases/124/index.md | 14 +++ 2 files changed, 100 insertions(+) diff --git a/files/en-us/mozilla/firefox/experimental_features/index.md b/files/en-us/mozilla/firefox/experimental_features/index.md index faa2e3f6b8902ac..7da591397c8e52a 100644 --- a/files/en-us/mozilla/firefox/experimental_features/index.md +++ b/files/en-us/mozilla/firefox/experimental_features/index.md @@ -1006,6 +1006,92 @@ This enables splitting a string into meaningful items (graphemes, words or sente +### SharedArrayBuffer is growable + +The {{jsxref("SharedArrayBuffer")}} is now growable using the {{jsxref("SharedArrayBuffer.prototype.grow()")}} method. +The maximum allowed size of the buffer is specified using the `options.maxByteLength` parameter to the [`SharedArrayBuffer()` constructor](/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/SharedArrayBuffer#maxbytelength). +The {{jsxref("SharedArrayBuffer.prototype.growable")}} and {{jsxref("SharedArrayBuffer.prototype.maxByteLength")}} properties indicate whether the buffer can be grow, and its maximum allowed size, respectively. +([Firefox bug 1842773](https://bugzil.la/1842773)). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Release channelVersion addedEnabled by default?
Nightly124No
Developer Edition124No
Beta124No
Release124No
Preference namejavascript.options.experimental.sharedarraybuffer_growable
+ +### ArrayBuffer is resizable + +The {{jsxref("ArrayBuffer")}} can now be resized using the {{jsxref("ArrayBuffer.prototype.resize()")}} method. +The maximum allowed size of the buffer is specified using the `options.maxByteLength` parameter to the [`ArrayBuffer()` constructor](/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/ArrayBuffer#maxbytelength). +The {{jsxref("ArrayBuffer.prototype.resizable")}} and {{jsxref("ArrayBuffer.prototype.maxByteLength")}} properties indicate whether the buffer can be resized, and its maximum allowed size, respectively. +([Firefox bug 1842773](https://bugzil.la/1842773).) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Release channelVersion addedEnabled by default?
Nightly124No
Developer Edition124No
Beta124No
Release124No
Preference namejavascript.options.experimental.arraybuffer_resizable
+ ## APIs ### Graphics: Canvas, WebGL, and WebGPU diff --git a/files/en-us/mozilla/firefox/releases/124/index.md b/files/en-us/mozilla/firefox/releases/124/index.md index eaad303b7757857..4d64808d867c9cc 100644 --- a/files/en-us/mozilla/firefox/releases/124/index.md +++ b/files/en-us/mozilla/firefox/releases/124/index.md @@ -66,6 +66,20 @@ This article provides information about the changes in Firefox 124 that affect d These features are newly shipped in Firefox 124 but are disabled by default. To experiment with them, search for the appropriate preference on the `about:config` page and set it to `true`. You can find more such features on the [Experimental features](/en-US/docs/Mozilla/Firefox/Experimental_features) page. +- **Growable `SharedArrayBuffer`:** `javascript.options.experimental.sharedarraybuffer_growable`. + + The {{jsxref("SharedArrayBuffer")}} is now growable using the {{jsxref("SharedArrayBuffer.prototype.grow()")}} method. + The maximum allowed size of the buffer is specified using the `options.maxByteLength` parameter to the [`SharedArrayBuffer()` constructor](/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/SharedArrayBuffer#maxbytelength). + The {{jsxref("SharedArrayBuffer.prototype.growable")}} and {{jsxref("SharedArrayBuffer.prototype.maxByteLength")}} properties indicate whether the buffer can be grow, and its maximum allowed size, respectively. + ([Firefox bug 1842773](https://bugzil.la/1842773).) + +- **Resizable `ArrayBuffer`:** `javascript.options.experimental.arraybuffer_resizable`. + + The {{jsxref("ArrayBuffer")}} can now be resized using the {{jsxref("ArrayBuffer.prototype.resize()")}} method. + The maximum allowed size of the buffer is specified using the `options.maxByteLength` parameter to the [`ArrayBuffer()` constructor](/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/ArrayBuffer#maxbytelength). + The {{jsxref("ArrayBuffer.prototype.resizable")}} and {{jsxref("ArrayBuffer.prototype.maxByteLength")}} properties indicate whether the buffer can be resized, and its maximum allowed size, respectively. + ([Firefox bug 1842773](https://bugzil.la/1842773).) + ## Older versions {{Firefox_for_developers(123)}}