Clean up homepage code to produce array of nsIURIs instead of the current goop, and use that to load those pages (instead of always doing fixup)
Categories
(Firefox :: General, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox112 | --- | affected |
People
(Reporter: Gijs, Unassigned)
References
Details
The user's homepage doesn't change very often, and we should just be able to have a cached list of nsIURIs, and always use loadURI
when loading them.
Instead, we have a Homepage.jsm thing that still tried to deal with localized homepages using .properties files ( bug 1490339), and we have more .split("|")
than you can shake a stick at that are used to manually deal with the fact that the pref has historically been |
-split. This despite the fact that the URL spec says that |
should not be encoded in paths or querystrings, so this isn't actually a safe character to use to separate multiple URLs.
All of this is silly and we should fix it.
This affects callsites in:
and probably others.
Updated•2 years ago
|
Comment 1•2 years ago
|
||
While you're at it, we could validate the URLs before caching them and make sure they use sensible schemes (see bug 1780484)
Comment 2•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::JavaScript Engine' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•1 year ago
|
Description
•