UserAgentOverrides.jsm is initialized every time nsHttpHandler is created

RESOLVED FIXED in Firefox 66

Status

()

enhancement
P3
normal
RESOLVED FIXED
7 months ago
7 months ago

People

(Reporter: jya, Assigned: jya)

Tracking

(Blocks 1 bug)

unspecified
mozilla66
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox66 fixed)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 attachment)

UserAgentOverrides is initialized every time nsHttpHandler::NewProxiedChannel2 is called via nsHttpHandler::EnsureUAOverridesInit

https://searchfox.org/mozilla-central/rev/3160ddc1f0ab55d230c595366662c62950e5c785/netwerk/protocol/http/nsHttpHandler.cpp#393

Doing it once should be enough.

While it won't entirely resolve the issue discussed in bug 1513582, it will go a long way in getting around the issue as the first nsHttpRequest we run, is unlikely going to be in a DOM element requiring to load it content while in stable state.
Assignee: nobody → jyavenard
Priority: -- → P3
Whiteboard: [necko-triaged]
Pushed by jyavenard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ebad6bf33237
only initialize UserAgentOverrides.jsm once. r=dragana
https://hg.mozilla.org/mozilla-central/rev/ebad6bf33237
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.