Confirmed users
205
edits
Wmccloskey (talk | contribs) (Talk more about nsINamed) |
Bevis Tseng (talk | contribs) (Update the guideline according to what has been done in IToplevelProtocol::GetMessageEventTarget().) |
||
Line 180: | Line 180: | ||
=== Actors constructed by the parent === | === Actors constructed by the parent === | ||
If the new actor is created on the parent side, | If the new actor is created on the parent side, normally, it inherits its event target from its manager. If the manager has no event target, you must override the '''GetConstructedEventTarget''' method on ContentChild (or whatever the top-level protocol is). All constructor messages are passed to this method. It can return an event target for the new actor or null if no special event target should be used. Be careful, because this method is called on the Gecko I/O thread! |