Skip to content

FF142 Relnote: URL Pattern API #40632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hamishwillee
Copy link
Collaborator

FF142 adds support for the URL Pattern API in https://bugzilla.mozilla.org/show_bug.cgi?id=1731418

This adds a release note and some minor corrections to current Web API template style.

Related work can be tracked in #40474

@hamishwillee hamishwillee requested review from a team as code owners August 5, 2025 04:17
@hamishwillee hamishwillee requested review from sideshowbarker and pepelsbey and removed request for a team August 5, 2025 04:17
@github-actions github-actions bot added Content:WebAPI Web API docs Content:Firefox Content in the Mozilla/Firefox subtree size/m [PR only] 51-500 LoC changed labels Aug 5, 2025

## Interfaces

The URL Pattern API only has a single related interface:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI not useful or in template.

@@ -55,6 +55,26 @@ new URLPattern(input, baseURL, options)
- The given `input` is relative, but no `baseURL` is provided to form a complete absolute URL.
- A `baseURL` is provided, and input is an absolute pattern or a structured object.

## Description
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is rename and move of the "Usage notes" section - Description is the preferred name for this in template

@@ -381,7 +375,7 @@ console.log(pattern.test("https://example.com/foo/bar")); // true

console.log(pattern.test({ hostname: "cdn.example.com" })); // true

console.log(pattern.test("custom-protocol://example.com/other/path?q=1")); // false
console.log(pattern.test("custom-protocol://example.com/other/path?q=1")); // true
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only actual error.

Copy link
Contributor

github-actions bot commented Aug 5, 2025

Preview URLs

External URLs (1)

URL: /en-US/docs/Mozilla/Firefox/Releases/142
Title: Firefox 142 for developers

@Josh-Cena
Copy link
Member

As I mentioned in #40474 (comment), I believe there are quite a few outdated/incorrect information pieces because the current docs were written when Chrome first implemented it and there were a lot of changes later. We should make sure that the current docs reflect both the spec and implementations by closing those issues as either not a problem anymore or work to resolve them.

@hamishwillee hamishwillee marked this pull request as draft August 5, 2025 06:32
@hamishwillee
Copy link
Collaborator Author

hamishwillee commented Aug 5, 2025

Thanks @Josh-Cena - missed that. Will do. area: URL/URLPattern
EDIT, though some are not directly related to this work. So I won't be taking on #33455 (for example)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Firefox Content in the Mozilla/Firefox subtree Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants