Closed Bug 1546355 Opened 6 years ago Closed 6 years ago

[socket process] Try to launch socket process until we really need it

Categories

(Core :: Networking, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: kershaw, Assigned: kershaw)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

Currently, socket process is launched before unit test started at [1].
This causes a problem that the socket process can't get prefs changes that made in test file, like [2]. The reason is that socket process is launched asynchronously and there is a race between updating prefs via IPC and launching the process.

Moreover, there are some tests that can't pass if we launch socket process, like bug 1513865. So, the best way could be launching the socket process until we make a first http request.

[1] https://hg.mozilla.org/projects/larch/file/tip/testing/xpcshell/head.js#l1488
[2] https://searchfox.org/mozilla-central/rev/f46e2bf881d522a440b30cbf5cf8d76fc212eaf4/netwerk/test/unit/test_content_length_underrun.js#34

Summary: [socket process] Try to launch socket porcess until we really need it → [socket process] Try to launch socket process until we really need it
Type: defect → enhancement
Blocks: 1513865
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: