Closed
Bug 1503834
Opened 6 years ago
Closed 6 years ago
[socket-proc] Create PBackground between the socket process socket thread and content process
Categories
(Core :: Networking, enhancement, P1)
Core
Networking
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox65 | --- | affected |
People
(Reporter: mayhemer, Assigned: kershaw)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [necko-triaged])
Attachments
(2 obsolete files)
This is one thing we need to deliver to let the WebRTC team use the socket process.
Please any bugs this one is blocking.
Reporter | ||
Comment 1•6 years ago
|
||
This is only a backup and example, not an actual base patch to fix this bug! It's half done, currently uncompilable (details follow)
What needs to be added:
- We must call BackgroundChild::Startup() from SocketProcessImpl::Init (after we init XPCOM)
- Add InitBackground message on PSocketProcess parent, see [1][2] as examples
- Implement it on SocketProcessParent as [3]
[1] https://searchfox.org/mozilla-central/rev/eac6295c397133b7346822ad31867197e30d7e94/dom/ipc/PContent.ipdl#731
[2] https://searchfox.org/mozilla-central/search?q=InitBackground&redirect=false
[3] https://searchfox.org/mozilla-central/rev/eac6295c397133b7346822ad31867197e30d7e94/dom/ipc/ContentParent.cpp#3344-3352
Assignee: nobody → honzab.moz
Reporter | ||
Comment 2•6 years ago
|
||
A summary doc for how to implement this:
https://docs.google.com/document/d/1DPTR46RDXzDn5502Al9cMSkQxDCD6R8z1100khM2Jo0/edit
Reporter | ||
Updated•6 years ago
|
QA Whiteboard: [necko-triaged]
Priority: -- → P2
Assignee | ||
Updated•6 years ago
|
QA Whiteboard: [necko-triaged]
Whiteboard: [necko-triaged]
Assignee | ||
Comment 4•6 years ago
|
||
1. Call a new method ChildImpl::GetOrCreateForSocketProcess to get endpoints.
2. Call SocketProcessBridgeChild::SendInitBackground to send endpoint to SocketProcessBridgeparent.
3. In SocketProcessBridgeParent::RecvInitBackground, alloc the background parent with the endpoint.
Comment 5•6 years ago
|
||
I need a bit of time to review this patch. It's big and complex. I'll be able to give something in the next 2 days.
Sorry for the delay.
Reporter | ||
Updated•6 years ago
|
Attachment #9021798 -
Attachment is obsolete: true
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Priority: P2 → P1
Reporter | ||
Updated•6 years ago
|
No longer blocks: socket-proc-webrtc
Reporter | ||
Updated•6 years ago
|
Blocks: socket-proc-webrtc
Assignee | ||
Comment 6•6 years ago
|
||
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Updated•3 years ago
|
Attachment #9023579 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•