Enable DefaultURI use for unknown schemes
Categories
(Core :: Networking, task, P3)
Tracking
()
People
(Reporter: valentin, Assigned: edgul)
References
(Blocks 2 open bugs)
Details
(Keywords: dev-doc-complete, Whiteboard: [necko-triaged])
Attachments
(2 files, 1 obsolete file)
Steps:
- [ ] Merge https://github.com/servo/rust-url/pull/537
- [ ] Update rust-url in Gecko
- [ ] Flip the network.url.useDefaultURI pref
- [ ] Fix expected-fail WPT tests
- [ ] Restrict origins to schemes allowed by the URL spec + the ones we add to the allow list (bug 1553105)
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Comment 1•3 years ago
|
||
Rust URL isn't perfectly ready yet for use, and I don't have the cycles to fix it right now. Unassigning for now.
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Updated•1 year ago
|
Updated•1 year ago
|
Reporter | ||
Comment 4•11 months ago
|
||
The expectation for SetPathQueryRef for URLs that cannot be a base is
that they will replace everything after the scheme.
Since the url crate doesn't have a method similar to SetPathQueryRef
we need to special case this in DefaultURI.
Comment 6•11 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7f3c08da2ac9
https://hg.mozilla.org/mozilla-central/rev/f8a1e1d313cc
Comment 7•11 months ago
|
||
We might want to consider doing a release note for this?
Can you point me in the right direction?
Comment 9•11 months ago
|
||
Drive by comment - the Release Note Process info should outline how to add a release note nomination on this bug. You provide some wording and release management will take it from there.
Assignee | ||
Comment 11•11 months ago
|
||
Release Note Request
[Why is this notable]: This change alters the fallback URL parser to one that is more comprehensive. As a result of this change we are now passing hundreds more web platform tests which ultimately improves our spec adherence and web compatibility.
[Affects Firefox for Android]: Yes
[Suggested wording]: Changed our fallback URL parser for unknown schemes to DefaultURI for improved spec adherence and web compatibility
Comment 12•11 months ago
|
||
Thanks, added to the Fx122 nightly release notes, please allow 30 minutes for the site to update.
Keeping the relnote-firefox flag as ? to keep it on the radar for inclusion in the final Fx122 release notes
Updated•11 months ago
|
Comment 13•11 months ago
|
||
FF122 MDN docs for this can be tracked in https://github.com/mdn/content/issues/31100
But what is the direct impact of this change to website-developers? What should they do differently because of this?
I think the answer is nothing, and that this does not require MDN documentation right?
If not, can you explain what documents we might need to touch?
Assignee | ||
Comment 14•11 months ago
|
||
This shouldn't affect mdn content. Thanks.
Comment 16•10 months ago
|
||
FYI, and I don't know who can update it, this means that the docs in https://firefox-source-docs.mozilla.org/networking/url_parsers.html for DefaultURI are out of date.
Reporter | ||
Comment 17•10 months ago
|
||
Thanks for pointing that out.
I'll make sure to update the docs.
Comment 19•10 months ago
|
||
I have strong doubts about the web compatibility of this change considering the number of regression.
Reporter | ||
Comment 20•9 months ago
|
||
(In reply to Tom S [:evilpie] from comment #19)
I have strong doubts about the web compatibility of this change considering the number of regression.
These issues would have been visible to people using safari, but Chrome hasn't shipped this change yet.
I assume we could have a list of protocols that we exclude from regular URL parsing.
The ed2k protocol seems like the best candidate for that, as even their wikipedia article explaining the URI format has this bad scheme: https://en.wikipedia.org/wiki/Ed2k_URI_scheme#File_link_format
I suppose we could also ship a webcompat intervention to fix specific links on specific sites, but I don't think that's possible for all broken protocols.
Ultimately the legacy protocol list is probably the best option. Thoughts?
Comment 21•9 months ago
•
|
||
I opened an issue in the WhatWG URL repository: https://github.com/whatwg/url/issues/815
Updated•9 months ago
|
Updated•9 months ago
|
Updated•9 months ago
|
Reporter | ||
Comment 22•8 months ago
|
||
We disabled this in bug 1877753.
Reporter | ||
Updated•8 months ago
|
Assignee | ||
Comment 23•15 days ago
|
||
This task was handled in Bug 1889988.
Description
•