Skip to content

Commit 3a82350

Browse files
authored
Merge branch 'main' into referenceTarget
2 parents 648e483 + 07802de commit 3a82350

File tree

43 files changed

+5791
-252
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+5791
-252
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535
# MathML
3636
/files/en-us/web/mathml/ @mdn/mathml
3737

38-
# Templates and sidebars (rari)
38+
# L10n for Macros (rari)
3939
/files/jsondata/L10n-Template.json @mdn/engineering
40+
/files/jsondata/L10n-CSSFormalDefinitions.json @mdn/engineering
4041

4142
# ============================= CONTROL FILES ============================= #
4243
# The CODEOWNERS file must end with these matches: Any pull request changing

.vscode/cspell.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"ignorePaths": [
2929
".vscode/cspell.json",
3030
".vscode/extensions.json",
31-
".markdownlint-cli2.jsonc"
31+
".markdownlint-cli2.jsonc",
32+
"files/jsondata/L10n-*.json"
3233
],
3334
"ignoreRegExpList": [
3435
// macros

files/en-us/glossary/base64/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Browsers also natively provide two JavaScript functions for decoding and encodin
5656
> [!NOTE]
5757
> Base64 is a binary encoding rather than a text encoding, but `btoa` and `atob` were added to the web platform before it supported binary data types. As a result, the two functions use strings to represent binary data, with the {{glossary("code point")}} of each character representing the value of each byte. This has led to a common misconception that `btoa` can be used to encode arbitrary text data — for example, creating a Base64 `data:` URL of a text or HTML document.
5858
>
59-
> However, the byte-to-code-point correspondence only reliably holds true for code points up to `0x7f`. Furthermore, code points over `0xff` will cause `btoa` to throw an error due to exceeding the maximum value for 1 byte. The next section details how to work around this limitation when encoding arbitrary Unicode text.
59+
> However, the byte-to-code-point correspondence only reliably holds true for code points up to `0x7f`. Furthermore, code points over `0xff` will cause `btoa` to throw an error due to exceeding the maximum value for 1 byte. The {{domxref("Window.btoa()")}} "[Unicode strings](/en-US/docs/Web/API/Window/btoa#unicode_strings)" section details how to work around this limitation when encoding arbitrary Unicode text.
6060
6161
## See Also
6262

files/en-us/learn_web_development/core/scripting/build_your_own_function/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ On to the next parameter. This one is going to involve slightly more work — we
233233
1. First of all, download the icons needed for this exercise ([warning](https://github.com/mdn/learning-area/blob/main/javascript/building-blocks/functions/icons/warning.png) and [chat](https://github.com/mdn/learning-area/blob/main/javascript/building-blocks/functions/icons/chat.png)) from GitHub. Save them in a new folder called `icons` in the same location as your HTML file.
234234
235235
> [!NOTE]
236-
> The warning and chat icons were originally found on [iconfinder.com](https://www.iconfinder.com/), and designed by [Nazarrudin Ansyari](https://www.iconfinder.com/nazarr) — Thanks! (The actual icon pages were since moved or removed.)
236+
> The warning and chat icons were originally found on iconfinder.com, and designed by Nazarrudin Ansyari — Thanks! (The actual icon pages were since moved or removed.)
237237
238238
2. Next, find the CSS inside your HTML file. We'll make a few changes to make way for the icons. First, update the `.msgBox` width from:
239239

files/en-us/learn_web_development/core/scripting/debugging_javascript/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ There are a number of common JavaScript problems that you will want to be mindfu
6161
- Making sure [asynchronous operations](/en-US/docs/Learn_web_development/Extensions/Async_JS) have completed before trying to use the values they return. This usually means understanding how to use _promises_: using [`await`](/en-US/docs/Web/JavaScript/Reference/Operators/await) appropriately or running the code to handle the result of an asynchronous call in the promise's {{jsxref("Promise.then()", "then()")}} handler. See [How to use promises](/en-US/docs/Learn_web_development/Extensions/Async_JS/Promises) for an introduction to this topic.
6262

6363
> [!NOTE]
64-
> [Buggy JavaScript Code: The 10 Most Common Mistakes JavaScript Developers Make](https://www.toptal.com/javascript/10-most-common-javascript-mistakes) has some nice discussions of these common mistakes and more.
64+
> [Buggy JavaScript Code: The 10 Most Common Mistakes JavaScript Developers Make](https://www.toptal.com/developers/javascript/10-most-common-javascript-mistakes) has some nice discussions of these common mistakes and more.
6565
6666
## The Browser JavaScript console
6767

files/en-us/mdn/writing_guidelines/writing_style_guide/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,6 @@ If you have questions about usage and style not covered in this guide, we recomm
695695
If you're interested in improving your writing and editing skills, you may find the following resources to be helpful.
696696

697697
- [Common errors in English usage](https://brians.wsu.edu/common-errors-in-english-usage/) on brians.wsu.edu
698-
- [English grammar FAQ](https://websites.umich.edu/~jlawler/aue.html) on alt-usage-english.org
699698
- [English language and usage](https://english.stackexchange.com/) on english.stackexchange.com: Question and answer site for English language usage
700699
- [Merriam-Webster's Concise Dictionary of English Usage](https://books.google.com/books?id=UDIjAQAAIAAJ) on google.com/books (published 2002): Scholarly but user-friendly, evidence-based advice; very good for non-native speakers, especially for preposition usage
701700
- [On Writing Well](https://www.harpercollins.com/products/on-writing-well-william-zinsser) by William Zinsser on harpercollins.com (published 2016)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Next, create the "icons" directory inside the "buttons" directory, and save the
5454
!["32 pixel icon of a lined sheet of paper"](page-32.png)
5555

5656
> [!NOTE]
57-
> These icons are from the [bitsies!](https://www.iconfinder.com/iconsets/bitsies) iconset created by Recep Kütük.
57+
> These icons are from the "bitsies!" iconset on iconfinder.com created by Recep Kütük.
5858
5959
We have two icons so we can use the bigger one in high-density displays. The browser will take care of selecting the best icon for the current display.
6060

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ browser-compat: webextensions.api.menus.ItemType
66
sidebar: addonsidebar
77
---
88

9-
The type of menu item.
9+
The type of the menu item.
1010

1111
## Type
1212

1313
Values of this type are strings. Possible values are:
1414

15-
- normal
15+
- `normal`
1616
- : A menu item that just displays a label.
17-
- checkbox
17+
- `checkbox`
1818
- : A menu item that represents a binary state. It displays a checkmark next to the label. Clicking the item toggles the checkmark. The {{WebExtAPIRef("menus.onClicked")}} listener will be passed two extra properties: "checked", indicating whether the item is checked now, and "wasChecked", indicating whether the item was checked before the click event.
19-
- radio
19+
- `radio`
2020
- : A menu item that represents one of a group of choices. Just like a checkbox, this also displays a checkmark next to the label, and its {{WebExtAPIRef("menus.onClicked")}} listener is passed "checked" and "wasChecked". However, if you create more than one radio item, then the items function as a group of radio items: only one item in the group can be checked, and clicking an item makes it the checked item.
21-
- separator
21+
- `separator`
2222
- : A line separating a group of items.
2323

2424
{{WebExtExamples}}

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

Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The _scheme_ component may take one of two forms:
5454

5555
### host
5656

57-
The _host_ component may take one of three forms:
57+
The _host_ component may take one of these forms:
5858

5959
<table class="fullwidth-table standard-table">
6060
<thead>
@@ -69,17 +69,18 @@ The _host_ component may take one of three forms:
6969
<td>Any host.</td>
7070
</tr>
7171
<tr>
72-
<td><code>*.</code> followed by part of the hostname.</td>
73-
<td>The given host and any of its subdomains.</td>
72+
<td><code>*.</code> followed by part of the hostname, optionally, including a port.</td>
73+
<td>The given host (and port) and any of its subdomains.</td>
7474
</tr>
7575
<tr>
76-
<td>A complete hostname, without wildcards.</td>
77-
<td>Only the given host.</td>
76+
<td>A complete hostname, without wildcards, optionally, including a port.</td>
77+
<td>Only the host (and port).</td>
7878
</tr>
7979
</tbody>
8080
</table>
8181

82-
_host_ must not include a port number.
82+
> [!NOTE]
83+
> Firefox doesn't support the inclusion of a port number due to ([Firefox bug 1362809](https://bugzil.la/1362809)) and ([Firefox bug 1468162](https://bugzil.la/1468162)).
8384
8485
_host_ is optional only if the _scheme_ is "file".
8586

@@ -93,10 +94,7 @@ After that, it may subsequently contain any combination of the `*` wildcard and
9394

9495
The value for the _path_ matches against the string which is the URL path plus the [URL query string](https://en.wikipedia.org/wiki/Query_string). This includes the `?` between the two, if the query string is present in the URL. For example, if you want to match URLs on any domain where the URL path ends with `foo.bar`, then you need to use an array of Match Patterns like `["*://*/*foo.bar", "*://*/*foo.bar?*"]`. The `?*` is needed, rather than just `bar*`, in order to anchor the ending `*` as applying to the URL query string and not some portion of the URL path.
9596

96-
Neither the [URL fragment identifier](https://en.wikipedia.org/wiki/Fragment_identifier), nor the `#` which precedes it, are considered as part of the _path_.
97-
98-
> [!NOTE]
99-
> The path pattern string should not include a port number. Adding a port, as in: `http://localhost:1234/*` causes the match pattern to be ignored. However, `http://localhost:1234` will match with `http://localhost/*`.
97+
Neither the [URL fragment identifier](https://en.wikipedia.org/wiki/Fragment_identifier) nor the `#` that precedes it are considered as part of the _path_ and are ignored during pattern matching. A match pattern containing `#` will fail to match with any URL.
10098

10199
### \<all_urls>
102100

@@ -192,6 +190,22 @@ The special value `<all_urls>` matches all URLs under any of the supported schem
192190
</td>
193191
</tr>
194192
<tr>
193+
<tr>
194+
<td>
195+
<p><code>https://mozilla.org:8080/</code></p>
196+
<p>
197+
Match all HTTPS URLs that are hosted at "mozilla.org/" on port 8080.
198+
Note: Ports are supported in Chrome, not in Firefox.
199+
</p>
200+
</td>
201+
<td>
202+
<p><code>https://mozilla.org:8080/</code></p>
203+
</td>
204+
<td>
205+
<p><code>http://a.mozilla.org/</code><br />(unmatched host)</p>
206+
<p><code>http://mozilla.org:8081</code><br />(unmatched host)</p>
207+
</td>
208+
</tr>
195209
<td>
196210
<p><code>ftp://mozilla.org/</code></p>
197211
<p>Match only "ftp://mozilla.org/".</p>
@@ -323,47 +337,56 @@ The special value `<all_urls>` matches all URLs under any of the supported schem
323337
</tbody>
324338
</table>
325339

326-
### Invalid match patterns
340+
### Invalid or unmatched patterns
327341

328342
<table class="fullwidth-table standard-table">
329343
<thead>
330344
<tr>
331-
<th scope="col">Invalid pattern</th>
345+
<th scope="col">Pattern</th>
346+
<th scope="col">Issue</th>
332347
<th scope="col">Reason</th>
333348
</tr>
334349
</thead>
335350
<tbody>
336351
<tr>
337352
<td><code>resource://path/</code></td>
353+
<td>Invalid</td>
338354
<td>Unsupported scheme.</td>
339355
</tr>
340356
<tr>
341357
<td><code>https://mozilla.org</code></td>
358+
<td>Invalid</td>
342359
<td>No path.</td>
343360
</tr>
361+
<tr>
362+
<td><code>https://www.mozilla.org/#section1</code></td>
363+
<td>Unmatched</td>
364+
<td>Contains a reference fragment: the URL that the pattern is matched against has any reference fragment removed before matching.</td>
365+
</tr>
344366
<tr>
345367
<td><code>https://mozilla.*.org/</code></td>
368+
<td>Invalid</td>
346369
<td>"*" in host must be at the start.</td>
347370
</tr>
348371
<tr>
349372
<td><code>https://*zilla.org/</code></td>
373+
<td>Invalid</td>
350374
<td>"*" in host must be the only character or be followed by ".".</td>
351375
</tr>
352376
<tr>
353377
<td><code>http*://mozilla.org/</code></td>
378+
<td>Invalid</td>
354379
<td>"*" in scheme must be the only character.</td>
355380
</tr>
356-
<tr>
357-
<td><code>https://mozilla.org:80/</code></td>
358-
<td>Host must not include a port number.</td>
359-
</tr>
360381
<tr>
361382
<td><code>*://*</code></td>
383+
<td>Invalid</td>
362384
<td>Empty path: this should be <code>*://*/*</code>.</td>
363385
</tr>
364386
<tr>
365387
<td><code>file://*</code></td>
366-
<td>Empty path: this should be <code>file:///*</code>.</td>
388+
<td>Invalid</td>
389+
<td>Empty path: this should be <code>file:///*</code>. <code>file://*</code> is accepted when declared in <code>host_permissions</code> in Chrome, which auto-corrects the entry to <code>file:///*</code>.</td>
367390
</tr>
368391
</tbody>
369392
</table>

files/en-us/mozilla/firefox/releases/145/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Firefox 145 release notes for developers (Stable)
3-
short-title: Firefox 145 (Stable)
2+
title: Firefox 145 release notes for developers
3+
short-title: Firefox 145
44
slug: Mozilla/Firefox/Releases/145
5-
page-type: firefox-release-notes-active
5+
page-type: firefox-release-notes
66
sidebar: firefox
77
---
88

0 commit comments

Comments
 (0)