Closed Bug 1040080 Opened 10 years ago Closed 10 years ago

Fix error in nsIMessageManager.idl's docs related to child process mms

Categories

(Core :: IPC, defect)

x86_64
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: jimm, Assigned: jimm)

Details

Attachments

(1 file)

http://mxr.mozilla.org/mozilla-central/source/content/base/public/nsIMessageManager.idl#126

*  Parent process                      Child processes
* ----------------                    -----------------
*  global PPMM
*   |
*   +<----> child PPMM
*   |
*   +-->parent PMM1<------------------>child process CMM1
*   |
*   +-->parent PMM2<------------------>child process PMM2
*   ...

I think this should read:

*  Parent process                      Child processes
* ----------------                    -----------------
*  global PPMM
*   |
*   +<----> child PPMM
*   |
*   +-->parent PMM1<------------------>child PMM1
*   |
*   +-->parent PMM2<------------------>child PMM2
*   ...
Attached patch patch v.1Splinter Review
The final text looks like:

* Message managers corresponding to process boundaries
* ====================================================
*
* The second realm of message managers is the "process message
* managers".  With one exception, these always correspond to process
* boundaries.  The picture looks like
*
*  Parent process                      Child processes
* ----------------                    -----------------
*  global (GPPMM)
*   |
*   +<----> psuedo-child PPMM  (the 'child' mm for in-process tabs)
*   |
*   +-->parent (PPMM1)<------------------>child (CPMM1)
*   |
*   +-->parent (PPMM2)<------------------>child (CPMM2)
*   ...
*
* For example: the parent-process PPMM1 sends messages to
* the child-process CPMM1.
*
* For example: CPMM1 sends messages directly to PPMM1. The global GPPMM
* will also notify their message listeners when the message arrives.
*
* For example: messages sent through the global GPPMM will be
* dispatched to the listeners of the same-process, "psuedo-child PPMM",
* and to to CPMM1, CPMM2, etc.
*
*   ***** PERFORMANCE AND SECURITY WARNING *****
* Messages broadcast through the GPPMM can result in messages
* being dispatched across many OS processes, and to many processes
* with different permissions.  Great care should be taken when
* broadcasting.
Attachment #8458025 - Flags: review?(bugs)
I removed the extra 'to' here: 

"and to CPMM1, CPMM2, etc."
Comment on attachment 8458025 [details] [diff] [review]
patch v.1

>+ *   +<----> psuedo-child PPMM  (the 'child' mm for in-process tabs)
it would be pseudo, not psuedo, but
I think in-process-child PPMM might be better, so
|
+-->in-process-parent PMM<----> in-process-child PMM
Attachment #8458025 - Flags: review?(bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/d62df3aa085b
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: