Closed
Bug 1353044
Opened 8 years ago
Closed 8 years ago
No loop of PChildToParentStream and PParentToChildStream
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
INVALID
People
(Reporter: baku, Assigned: baku)
References
Details
Attachments
(2 files)
5.40 KB,
patch
|
qdot
:
review+
|
Details | Diff | Splinter Review |
26.98 KB,
patch
|
qdot
:
review+
|
Details | Diff | Splinter Review |
When a stream is sent via IPC, it can be a PChildToParentStream or a PParentToChildStream (it depends if it goes from parent to child or the other way around). If that stream is sent it back, we create a new PParentToChildStream (or PChildToParentStream).
In this bug, I want to avoid this, and make gecko smart enough to use the origin inputStream instead the IPC one if a cycle is detected.
Assignee | ||
Comment 1•8 years ago
|
||
qdot, are you interested in nsIInputStream and IPC stream serialization?
Assignee: nobody → amarchesini
Attachment #8854033 -
Flags: review?(kyle)
Assignee | ||
Comment 2•8 years ago
|
||
Attachment #8854034 -
Flags: review?(kyle)
Updated•8 years ago
|
Attachment #8854033 -
Flags: review?(kyle) → review+
Updated•8 years ago
|
Attachment #8854034 -
Flags: review?(kyle) → review+
Comment 3•8 years ago
|
||
So the use of IDs and the map makes sense for not duplicating edges, and things look good afaict with the code, but do we have a way to test this easily or at all? Not quite sure if creating a loop outside of adding bogus classes to do so would be possible.
Flags: needinfo?(amarchesini)
Comment 4•8 years ago
|
||
Do you have metrics to show that this is worth it or is this purely speculative? I agree avoiding copying is useful, but minting UUIDs for every stream sent across IPC seems a bit heavyweight.
Assignee | ||
Comment 5•8 years ago
|
||
This is not needed for the PBlob refactoring. Sorry for that.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(amarchesini)
Resolution: --- → INVALID
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•