Setting homepage using | (vertical bar) no longer works with new schema
Categories
(Firefox :: Enterprise Policies, defect)
Tracking
()
People
(Reporter: mkaply, Assigned: mkaply)
References
Details
Attachments
(2 external files)
You used to be able to set multiple homepage with the | bar.
Not the best way, but for compatibility, we should try to keep it.
| Assignee | ||
Comment 1•2 months ago
|
||
The url definitions in the policy schema use "format": "uri", which the
compliant validator implements as the RFC 3986 grammar. The previous validator
accepted whatever new URL() accepted, so URLs that administrators have always
been able to set are now rejected:
- pipe-separated homepage lists, "https://a.example/|https://b.example/"
- IDN hosts, "https://münchen.example/"
- non-ASCII paths, "https://a.example/über"
- paths, queries and fragments containing a space, "{", "}", "^", "|" or a
double quote
Add a "moz-url" string format backed by URL.canParse and point the url,
urlOrEmpty and origin definitions at it. Validators that do not know the format
ignore it, so the schema still drives external tooling.
Updated•2 months ago
|
Comment 2•2 months ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #0)
You used to be able to set multiple homepage with the | bar.
Do we know if anyone is hit by this or are we pre-empting issues to be sure?
Updated•2 months ago
|
Comment 5•2 months ago
|
||
| bugherder | ||
| Assignee | ||
Comment 6•1 month ago
|
||
browser.startup.homepage holds one URL or several separated by "|", and
administrators have long set the whole list as Homepage.URL rather than using
Additional. No JSON Schema format describes that value, and "uri" rejects "|"
outright, so the list no longer validates.
Give Homepage.URL a "moz-homepage-url-list" format: split on "|" the way
HomePage.sys.mjs splits the pref, and require every entry to parse as a URL.
The field hydrates to a normalized string instead of a URL object, since no
single URL object can hold a list.
Original Revision: https://phabricator.services.mozilla.com/D321965
(cherry picked from commit b924677bda6ba7a0d4a553ce328b778be89deacf)
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Description
•