FF133 Navigation Timing API omits test fragments in URL by hamishwillee · Pull Request #36801 · mdn/content · GitHub
Skip to content
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

FF133 Navigation Timing API omits test fragments in URL #36801

Merged

Conversation

hamishwillee
Copy link
Collaborator

The Performance.getEntries() returns a name value that is a URL for entries of type "navigation". The spec has always said this should strip out fragment directives, of which the only type I know if is text directives.
Firefox 133 now does this, matching Safari 18,

This adds a release note and a few updates to the PerformanceNavigationTiming to mention that fragment directives are omitted. Note that you might argue this is not necessary to mention because it is in the spec/is a bug. I'm adding it because this was not obvious in at least two browser implementations (hence the fix) and it is going to break some libraries.

Related docs work can be tracked in #36546

@hamishwillee hamishwillee requested review from a team as code owners November 15, 2024 03:49
@hamishwillee hamishwillee requested review from pepelsbey and wbamberg and removed request for a team November 15, 2024 03:49
@github-actions github-actions bot added Content:WebAPI Web API docs Content:Firefox Content in the Mozilla/Firefox subtree size/s [PR only] 6-50 LoC changed labels Nov 15, 2024
Copy link
Contributor

github-actions bot commented Nov 15, 2024

Preview URLs

Flaws (1)

Note! 3 documents with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/API/PerformanceNavigationTiming
Title: PerformanceNavigationTiming
Flaw count: 1

  • images:
    • External image URL
External URLs (2)

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

(comment last updated: 2024-11-21 23:57:30)

@@ -50,6 +50,8 @@ This article provides information about the changes in Firefox 133 that affect d
- The {{domxref("EventSource")}} interface to handle [server-sent events](/en-US/docs/Web/API/Server-sent_events) is now supported in [service workers](/en-US/docs/Web/API/Service_Worker_API). ([Firefox bug 1681218](https://bugzil.la/1681218)).
- 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 [`beforetoggle`](/en-US/docs/Web/API/HTMLElement/beforetoggle_event) and [`toggle`](/en-US/docs/Web/API/HTMLElement/toggle_event) events of the {{domxref("HTMLElement")}} interface are now fired at {{HTMLElement("dialog")}} elements immediately before and after they are shown or hidden, respectively. The `beforetoggle` can be used, for example, to apply/remove classes that control the animation of a dialog, or reset the state of a dialog form before it is shown. The `toggle` event can be used to get change notification of the open state, which otherwise requires a {{domxref("MutationObserver")}}. ([Firefox bug 1876762](https://bugzil.la/1876762)).
- 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)).
Copy link
Collaborator Author

@hamishwillee hamishwillee Nov 15, 2024

Choose a reason for hiding this comment

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

Note, it actually omits all fragment directives, not just text fragments - I recorded that elsewhere. Here the important one is text fragments IMO because that is the only fragment in common use AFAIK.

Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot added the merge conflicts 🚧 [PR only] label Nov 20, 2024
@github-actions github-actions bot removed the merge conflicts 🚧 [PR only] label Nov 21, 2024
Copy link
Collaborator

@wbamberg wbamberg left a comment

Choose a reason for hiding this comment

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

👍 thanks Hamish

@wbamberg wbamberg merged commit 32801b3 into mdn:main Nov 22, 2024
8 checks passed
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/s [PR only] 6-50 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants