mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
Bug 1844185 - Add a pref to optionally disable preconnect r=necko-reviewers,kershaw
We want to test with and without this feature, so expose it via pref. Differential Revision: https://phabricator.services.mozilla.com/D184150
This commit is contained in:
parent
a697b0c0d1
commit
41e9f1cf20
@ -12469,6 +12469,10 @@ void Document::MaybePreLoadImage(nsIURI* aUri,
|
||||
}
|
||||
|
||||
void Document::MaybePreconnect(nsIURI* aOrigURI, mozilla::CORSMode aCORSMode) {
|
||||
if (!StaticPrefs::network_preconnect()) {
|
||||
return;
|
||||
}
|
||||
|
||||
NS_MutateURI mutator(aOrigURI);
|
||||
if (NS_FAILED(mutator.GetStatus())) {
|
||||
return;
|
||||
|
@ -11704,6 +11704,13 @@
|
||||
value: true
|
||||
mirror: always
|
||||
|
||||
# Enables `<link rel="preconnect">` tag and `Link: rel=preconnect` response header
|
||||
# handling.
|
||||
- name: network.preconnect
|
||||
type: RelaxedAtomicBool
|
||||
value: true
|
||||
mirror: always
|
||||
|
||||
# Enables `<link rel="modulepreload">` tag and `Link: rel=modulepreload`
|
||||
# response header handling.
|
||||
- name: network.modulepreload
|
||||
|
Loading…
Reference in New Issue
Block a user