files/en-us/mozilla/firefox/releases/131/index.md
This article provides information about the changes in Firefox 131 that affect developers. Firefox 131 was released on October 1, 2024.
inset-area CSS property has been renamed to {{CSSXRef("position-area")}} in preparation for further implementation of Anchor Positioning. Currently, this property is only used internally for parsing values. The Anchor Positioning features are being progressively rolled out behind a preference. (Firefox bug 1909358 and Firefox bug 1838746).Array-like operations on iterators without having to create intermediate Array objects. They can also be used with very large data sets where creating an intermediate Array would not even be possible. For more information, see Iterator helper methods in the Iterator interface. (Firefox bug 1896390).SameSite=None must now also include the Secure attribute. This ensures that cookies set with SameSite=None are only ever sent over HTTPS channels. In addition, since Firefox interprets an unspecified SameSite value as SameSite=None, cookies that don't specify SameSite will have the same restriction. (Firefox bug 1909673).partitioned directive of the {{HTTPHeader("Set-Cookie")}} HTTP header. When set, cookies have separate storage for each top-level site and can only be read within the same top-level site they were set on and its subdomains. This blocks cross-site tracking while still enabling legitimate uses of third-party cookies, such as persisting state of embedded maps or chat widgets across different subdomains of a site. (Firefox bug 1908160).shadowRoots property of the newly added options argument. (Firefox bug 1914596).exnref can now be used to help with exception handling between WebAssembly and JavaScript in both directions. (Firefox bug 1908375).keyUp and keyDown actions will no longer accept multiple characters for the value. (Firefox bug 1910352).network.continueResponse command:
statusCode (e.g., 200, 304) and reasonPhrase (e.g., "OK", "Not modified") arguments. (Firefox bug 1913737).browsingContext.navigate command will now return if the wait argument is none and a beforeunload prompt is triggered. (Firefox bug 1763134).browsingContext.navigate command will return an unknown error in all cases where a navigation failure occurs, as required by the specification. (Firefox bug 1905083).session.new command will no longer include the unhandledPromptBehavior capability in its response if it was not specified by the client as an argument. (Firefox bug 1909455).openerTabId is changed through tabs.update() (Firefox bug 1409262).openerTabId set to -1 to clear openerTabId (Firefox bug 1409262).These features are newly shipped in Firefox 131 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 page.
Regular expression (?ims-ims:...) modifiers: javascript.options.experimental.regexp_modifiers.
The (?ims-ims:...) regular expression modifiers allow you to make changes that take effect only in a specific part of a regex pattern. (Firefox bug 1899813).
Permissions for microphone and camera: permissions.media.query.enabled.
The microphone and camera permissions can now be used in the {{domxref("Permissions.query()")}} method to test whether access to the corresponding hardware has been granted, denied, or still requires user approval. (Firefox bug 1609427 and Firefox bug 1915222).