Convert network.dns.disablePrefetchFromHTTPS to use a Static Pref
Categories
(Core :: Preferences: Backend, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox70 | --- | fixed |
People
(Reporter: KrisWright, Assigned: KrisWright)
References
Details
Attachments
(1 file)
network.dns.disablePrefetchFromHTTPS needs to be converted from a VarCache pref to a static pref.
For this particular pref, AddBoolVarCache is called and defaulted to false, but the value then immediately uses true as a fallback, and a quick check tells me that sDisablePrefetchHTTPSPref is set to true: https://searchfox.org/mozilla-central/rev/9ae20497229225cb3fa729a787791f424ff8087b/dom/html/nsHTMLDNSPrefetch.cpp#68
This is not the best practice since code consulting the VarCache will think the feature is disabled, while code that may consult the prefs table will see that the pref doesn't exist, presumably concluding that the feature is not disabled. It appears the pref should actually be set to true as a default when adding it to StaticPrefs.
| Assignee | ||
Comment 1•6 years ago
|
||
Converts network.dns.disablePrefetchFromHTTPS to a static pref. Though the original VarCache pref default to false, it looks like the intended value is true. (see comment #0 in bug 1572505)
Comment 3•6 years ago
|
||
| bugherder | ||
Updated•6 years ago
|
Description
•