Skip to content

Commit

Permalink
Merge branch 'main' into http-headers-s
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmth authored Nov 26, 2024
2 parents 3cb5848 + 51cf085 commit 08aabfd
Show file tree
Hide file tree
Showing 13 changed files with 145 additions and 83 deletions.
40 changes: 40 additions & 0 deletions files/en-us/mozilla/firefox/experimental_features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,46 @@ Experimental features can be enabled or disabled using the [Firefox Configuratio
## HTML

### Autocorrection of editable text elements

The HTML [`autocorrect`](/en-US/docs/Web/HTML/Global_attributes/autocorrect) attribute (and correspoinding {{domxref("HTMLElement.autocorrect")}} property) allow autocompletion in editable text elements including: most kinds of text {{htmlelement("input")}} elements, {{htmlelement("textarea")}} elements, and elements that have the [`contenteditable`](/en-US/docs/Web/HTML/Global_attributes/contenteditable) attribute set ([Firefox bug 1725806](https://bugzil.la/1725806)).

<table>
<thead>
<tr>
<th>Release channel</th>
<th>Version added</th>
<th>Enabled by default?</th>
</tr>
</thead>
<tbody>
<tr>
<th>Nightly</th>
<td>134</td>
<td>Yes</td>
</tr>
<tr>
<th>Developer Edition</th>
<td>134</td>
<td>No</td>
</tr>
<tr>
<th>Beta</th>
<td>134</td>
<td>No</td>
</tr>
<tr>
<th>Release</th>
<td>134</td>
<td>No</td>
</tr>
<tr>
<th>Preference name</th>
<td colspan="2"><code>dom.forms.autocorrect</code></td>
</tr>
</tbody>
</table>

### Layout for input type="search"

Layout for `input type="search"` has been updated. This causes a search field to have a clear icon once someone starts typing in it, to match other browser implementations. (See [Firefox bug 558594](https://bugzil.la/558594) for more details.)
Expand Down
34 changes: 3 additions & 31 deletions files/en-us/mozilla/firefox/releases/133/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,17 @@ page-type: firefox-release-notes

{{FirefoxSidebar}}

This article provides information about the changes in Firefox 133 that affect developers. Firefox 133 is the current [Beta version of Firefox](https://www.mozilla.org/en-US/firefox/channel/desktop/#beta) and ships on [November 26, 2024](https://whattrainisitnow.com/release/?version=133).
This article provides information about the changes in Firefox 133 that affect developers. Firefox 133 was released on [November 26, 2024](https://whattrainisitnow.com/release/?version=133).

## Changes for web developers

### Developer Tools

### HTML

#### Removals
No notable changes

### CSS

#### Removals
No notable changes

### JavaScript

Expand All @@ -30,20 +28,6 @@ This article provides information about the changes in Firefox 133 that affect d
- {{jsxref("Uint8Array.prototype.setFromBase64()")}}, and {{jsxref("Uint8Array.prototype.setFromHex()")}} instance methods for populating an existing `Uint8Array` object with bytes from a base64- or hex-encoded string.
- {{jsxref("Uint8Array.prototype.toBase64()")}} and {{jsxref("Uint8Array.prototype.toHex()")}} instance methods, which return a base64- and hex- encoded string from the data in a `Uint8Array` object.

#### Removals

### SVG

#### Removals

### HTTP

#### Removals

### Security

#### Removals

### APIs

- The {{domxref('WorkerNavigator.permissions')}} property is now supported, allowing the [Permissions API](/en-US/docs/Web/API/Permissions_API) to be used in [workers](/en-US/docs/Web/API/Web_Workers_API) as well as the main window thread. ([Firefox bug 1193373](https://bugzil.la/1193373)).
Expand All @@ -60,19 +44,11 @@ This article provides information about the changes in Firefox 133 that affect d
- The {{domxref("ImageDecoder")}}, {{domxref("ImageTrackList")}}, and {{domxref("ImageTrack")}} interfaces of the [WebCodecs API](/en-US/docs/Web/API/WebCodecs_API) are now supported, enabling the decoding images from the main and worker threads. ([Firefox bug 1923755](https://bugzil.la/1923755)).
- The [`name`](/en-US/docs/Web/API/PerformanceNavigationTiming#performanceentry.name) property of `PerformanceNavigationTiming` now omits [text fragments](/en-US/docs/Web/URI/Fragment/Text_fragments) from the returned URL, matching the specification. This kind of {{domxref("PerformanceResourceTiming")}} object is returned by {{domxref("Performance.getEntries()")}} for entries with an {{domxref("PerformanceEntry/entryType", "entryType")}} of `navigation`. ([Firefox bug 1919565](https://bugzil.la/1919565)).

#### DOM

#### Media, WebRTC, and Web Audio

#### Removals

- The [`options.shadowRoots`](/en-US/docs/Web/API/Document/caretPositionFromPoint#shadowroots) argument for passing {{domxref("ShadowRoot")}} objects to the {{domxref('Document.caretPositionFromPoint()')}} method has been withdrawn from the release.
The feature can be tested in the Nightly release and is expected to re-release in future. ([Firefox bug 1914596](https://bugzil.la/1914596)).

### WebAssembly

#### Removals

### WebDriver conformance (WebDriver BiDi, Marionette)

#### WebDriver BiDi
Expand All @@ -94,10 +70,6 @@ This article provides information about the changes in Firefox 133 that affect d
- {{WebExtAPIRef("cookies.get")}} now orders cookies according to the [5.4 The Cookie Header section of the HTTP State Management Mechanism (RFC 6265)](https://datatracker.ietf.org/doc/html/rfc6265#section-5.4). This impacts call results when a cookie has variants with different path components. Previously, the earliest created cookie was matched by {{WebExtAPIRef("cookies.get")}}, {{WebExtAPIRef("cookies.remove")}}, {{WebExtAPIRef("cookies.set")}}, and {{WebExtAPIRef("cookies.getAll")}}. After this change, the cookie with the longest matching path is returned. ([Firefox bug 1798655](https://bugzil.la/1798655))
- Fixed a bug in the {{WebExtAPIRef("declarativeNetRequest")}} API that prevented rule registration after a browser restart ([Firefox bug 1921353](https://bugzil.la/1921353)). This bug affected extensions that rely on {{WebExtAPIRef("declarativeNetRequest.updateDynamicRules")}} or {{WebExtAPIRef("declarativeNetRequest.updateEnabledRulesets")}}. This fix has also been backported to Firefox ESR 128.5 and Firefox ESR 115.18.

### Removals

### Other

## Experimental web features

These features are newly shipped in Firefox 133 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.
Expand Down
5 changes: 4 additions & 1 deletion files/en-us/mozilla/firefox/releases/134/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: firefox-release-notes

{{FirefoxSidebar}}

This article provides information about the changes in Firefox 134 that affect developers. Firefox 134 is the current [Nightly version of Firefox](https://www.mozilla.org/en-US/firefox/channel/desktop/#nightly) and ships on [January 7, 2025](https://whattrainisitnow.com/release/?version=134).
This article provides information about the changes in Firefox 134 that affect developers. Firefox 134 is the current [Beta version of Firefox](https://www.mozilla.org/en-US/firefox/channel/desktop/#beta) and ships on [January 7, 2025](https://whattrainisitnow.com/release/?version=134).

## Changes for web developers

Expand Down Expand Up @@ -75,6 +75,9 @@ This article provides information about the changes in Firefox 134 that affect d

These features are newly shipped in Firefox 134 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.

- **`autocorrect`**: <code>dom.forms.autocorrect</code>.
The HTML [`autocorrect`](/en-US/docs/Web/HTML/Global_attributes/autocorrect) attribute and {{domxref("HTMLElement.autocorrect")}} property allow autocompletion in editable text elements, including: most kinds of text {{htmlelement("input")}} elements, {{htmlelement("textarea")}} elements, and elements that have the [`contenteditable`](/en-US/docs/Web/HTML/Global_attributes/contenteditable) attribute set ([Firefox bug 1725806](https://bugzil.la/1725806)).

## Older versions

{{Firefox_for_developers}}
71 changes: 71 additions & 0 deletions files/en-us/mozilla/firefox/releases/135/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
title: Firefox 135 for developers
slug: Mozilla/Firefox/Releases/135
page-type: firefox-release-notes
---

{{FirefoxSidebar}}

This article provides information about the changes in Firefox 135 that affect developers. Firefox 135 is the current [Nightly version of Firefox](https://www.mozilla.org/en-US/firefox/channel/desktop/#nightly) and ships on [February 4, 2025](https://whattrainisitnow.com/release/?version=135).

## Changes for web developers

### Developer Tools

### HTML

#### Removals

### CSS

#### Removals

### JavaScript

#### Removals

### SVG

#### Removals

### HTTP

#### Removals

### Security

#### Removals

### APIs

#### DOM

#### Media, WebRTC, and Web Audio

#### Removals

### WebAssembly

#### Removals

### WebDriver conformance (WebDriver BiDi, Marionette)

#### General

#### WebDriver BiDi

#### Marionette

## Changes for add-on developers

### Removals

### Other

## Experimental web features

These features are newly shipped in Firefox 134 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.

## Older versions

{{Firefox_for_developers}}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ page-type: guide

{{DefaultAPISidebar("XMLHttpRequest API")}}

## Receiving binary data

The `responseType` property of the XMLHttpRequest object can be set to change the expected response type from the server. Possible values are the empty string (default), `"arraybuffer"`, `"blob"`, `"document"`, `"json"`, and `"text"`. The `response` property will contain the entity body according to `responseType`, as an `ArrayBuffer`, `Blob`, `Document`, `JSON`, or string. This is `null` if the request is not complete or was not successful.

This example reads an image as a binary file and creates an 8-bit unsigned integer array from the raw bytes. Note that this will not decode the image and read the pixels. You will need a [png decoding library](https://github.com/foliojs/png.js) for that.
This example reads an image as a binary file and creates an 8-bit unsigned integer array from the raw bytes. Note that this will not decode the image and read the pixels. This can be done with the {{domxref("ImageDecoder")}} interface.

```js
const req = new XMLHttpRequest();
Expand Down Expand Up @@ -43,33 +45,6 @@ req.onload = (event) => {
req.send();
```

## Receiving binary data in older browsers

The `loadBinaryResource()` function shown below loads binary data from the specified URL, returning it to the caller.

```js
function loadBinaryResource(url) {
const req = new XMLHttpRequest();
req.open("GET", url, false);

// XHR binary charset opt by Marcus Granado 2006 [http://mgran.blogspot.com]
req.overrideMimeType("text/plain; charset=x-user-defined");
req.send(null);
return req.status === 200 ? req.responseText : "";
}
```

The magic happens in the `overrideMimeType` function, which forces the browser to treat it as plain text, using a user-defined character set. This tells the browser not to parse it, and to let the bytes pass through unprocessed.

```js
const fileStream = loadBinaryResource(url);
const lowestByte = fileStream.charCodeAt(x) & 0xff; // throw away high-order byte (f7)
```

The example above fetches the byte at offset `x` within the loaded binary data. The valid range for `x` is from 0 to `fileStream.length-1`.

See [downloading binary streams with XMLHttpRequest](https://web.archive.org/web/20071103070418/http://mgran.blogspot.com/2006/08/downloading-binary-streams-with.html) for a detailed explanation.

## Sending binary data

The `send` method of the XMLHttpRequest has been extended to enable easy transmission of binary data by accepting an [`ArrayBuffer`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer), {{domxref("Blob")}}, or {{domxref("File")}} object.
Expand Down
6 changes: 3 additions & 3 deletions files/en-us/web/css/@media/prefers-reduced-data/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ In this example the `montserrat-regular.woff2` font file will neither be preload
local("Montserrat Regular"),
local("Montserrat-Regular"),
url("fonts/montserrat-regular.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
U+2215, U+FEFF, U+FFFD;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
U+2212, U+2215, U+FEFF, U+FFFD;
}
}

Expand Down
6 changes: 5 additions & 1 deletion files/en-us/web/css/css_compositing_and_blending/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ In this example, each box has a border, two striped background images, and a sol
div {
width: 200px;
height: 200px;
background-image: repeating-linear-gradient(45deg, red 0 15px, pink 15px 30px),
background-image: repeating-linear-gradient(
45deg,
red 0 15px,
pink 15px 30px
),
repeating-linear-gradient(-45deg, blue 0 15px, lightblue 15px 30px);
background-size: 150px 150px;
background-repeat: no-repeat;
Expand Down
13 changes: 2 additions & 11 deletions files/en-us/web/svg/attribute/stop-color/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@ You can use this attribute with the following SVG elements:
<tr>
<th scope="row">Value</th>
<td>
<code>currentcolor</code> |
{{cssxref("color_value", "&lt;color&gt;")}}
<code
><a href="/en-US/docs/Web/SVG/Content_type#icccolor"
>&#x3C;icccolor></a
></code
>
</td>
</tr>
<tr>
Expand All @@ -46,12 +40,8 @@ You can use this attribute with the following SVG elements:
</tbody>
</table>

- `currentcolor`
- : This keyword denotes the current fill color and can be specified in the same manner as within a [`<paint>`](/en-US/docs/Web/SVG/Content_type#paint) specification for the {{SVGAttr("fill")}} and {{SVGAttr("stroke")}} attributes.
- `<color>`
- [`<color>`](/en-US/docs/Web/SVG/Content_type#color)
- : This value indicates a color value.
- `<icccolor>`
- : This value refers to an ICC color profile.

## Specifications

Expand All @@ -63,4 +53,5 @@ You can use this attribute with the following SVG elements:

## See also

- CSS {{cssxref("stop-color")}} property
- {{SVGAttr("stop-opacity")}}
1 change: 1 addition & 0 deletions files/en-us/web/svg/attribute/stop-opacity/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ You can use this attribute with the following SVG elements:

## See also

- CSS {{cssxref("stop-opacity")}} property
- {{SVGAttr("stop-color")}}
- {{SVGAttr("opacity")}}
- {{SVGAttr("fill-opacity")}}
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/svg/element/stop/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ svg {
_Value type_: [**\<number>**](/en-US/docs/Web/SVG/Content_type#number)|[**\<percentage>**](/en-US/docs/Web/SVG/Content_type#percentage); _Default value_: `0`; _Animatable_: **yes**
- {{SVGAttr("stop-color")}}
- : This attribute defines the color of the gradient stop. It can be used as a CSS property.
_Value type_: `currentcolor`|[**\<color>**](/en-US/docs/Web/SVG/Content_type#color)|[**\<icccolor>**](/en-US/docs/Web/SVG/Content_type#icccolor); _Default value_: `black`; _Animatable_: **yes**
_Value type_: [**\<color>**](/en-US/docs/Web/SVG/Content_type#color); _Default value_: `black`; _Animatable_: **yes**
- {{SVGAttr("stop-opacity")}}
- : This attribute defines the opacity of the gradient stop. It can be used as a CSS property.
_Value type_: [**\<opacity>**](/en-US/docs/Web/SVG/Content_type#opacity_value); _Default value_: `1`; _Animatable_: **yes**
_Value type_: [**\<opacity-value>**](/en-US/docs/Web/SVG/Content_type#opacity_value); _Default value_: `1`; _Animatable_: **yes**

## Usage context

Expand Down
7 changes: 6 additions & 1 deletion files/jsondata/SVGData.json
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,12 @@
"categories": ["gradientElement"],
"content": {
"description": "anyNumberOfElementsAnyOrder",
"elements": ["&lt;animate&gt;", "&lt;set&gt;"]
"elements": [
"&lt;animate&gt;",
"&lt;script&gt;",
"&lt;set&gt;",
"&lt;style&gt;"
]
},
"attributes": [
"coreAttributes",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"lint-staged": "15.2.10",
"markdownlint-cli2": "0.15.0",
"markdownlint-rule-search-replace": "1.2.0",
"prettier": "3.3.3"
"prettier": "3.4.1"
},
"devDependencies": {
"jest": "^29.7.0"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6974,10 +6974,10 @@ prepend-http@^2.0.0:
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
integrity sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==

prettier@3.3.3:
version "3.3.3"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105"
integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==
prettier@3.4.1:
version "3.4.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.4.1.tgz#e211d451d6452db0a291672ca9154bc8c2579f7b"
integrity sha512-G+YdqtITVZmOJje6QkXQWzl3fSfMxFwm1tjTyo9exhkmWSqC4Yhd1+lug++IlR2mvRVAxEDDWYkQdeSztajqgg==

pretty-format@^29.7.0:
version "29.7.0"
Expand Down

0 comments on commit 08aabfd

Please sign in to comment.