Firefox 94 release notes for developers
This article provides information about the changes in Firefox 94 that will affect developers. Firefox 94 was released on November 2nd, 2021
Changes for web developers
>HTML
No notable changes
CSS
No notable changes
JavaScript
No notable changes
APIs
- The
Window.structuredClone()andWorkerGlobalScope.structuredClone()function is now supported for copying complex JavaScript objects (Firefox bug 1722576).
DOM
- Developers can now provide a hint for the enter key label/icon used on virtual keyboards, using either
HTMLElement.enterkeyhintor the global attributeenterkeyhint(Firefox bug 1648332). - The
HTMLScriptElement.supports()static method is now supported. This provides a simple and unified method for feature checking whether a browser supports particular types of scripts, such as JavaScript modules or classic scripts (Firefox bug 1729239). - The
ShadowRoot.delegatesFocusproperty is now supported, allowing code to check whether thedelegatesFocusproperty was set when the shadow DOM was attached (Firefox bug 1413836).
WebDriver conformance (Marionette)
WebDriver:GetWindowHandleandWebDriver:GetWindowHandlesnow return handles for browser windows instead of tabs, when chrome scope is enabled (Firefox bug 1729291)
HTTP
- The
cachedirective of theClear-Site-Dataresponse header has been disabled by default. It can be enabled using the preferenceprivacy.clearsitedata.cache.enabled(Firefox bug 1729291).
Changes for add-on developers
- Support for
partitionKey, the first-party URL of a cookie when it's in storage that is partitioned by top-level site, is added tocookies.get,cookies.getAll,cookies.set,cookies.remove, andcookies.cookie. (Firefox bug 1669716) - When a context menu is activated,
menus.OnClickData.srcUrlreturns the raw value of thesrcattribute of the clicked element, instead of the current URL (after redirects). (Firefox bug 1659155)