Implement this interface in a remote frame handling process to receive messages from the browser process.
1.0
28
Introduced
Gecko 2.0
Inherits from:
nsISupports
Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)This interface is used when implementing out-of-process handling of frames; the process handling a frame should implement this interface in order to receive messages.
Method overview
void receiveMessage(); |
Methods
receiveMessage()
Note: This method is for JavaScript only.
Called to deliver a message to the frame handling process; called with one parameter, which has the following properties:
-
name
- The name of the message.
-
sync
- A boolean value indicating whether or not the message should be handled synchronously. If true, the response should be returned in the specified JSON object.
-
json
- The JSON object in which to return the response if the message is being handled synchronously.
-
objects
Unimplemented -
An array of cpow, or null if sync is
false
.
When the listener is called, the this
value is the target of the message.
void receiveMessage();
Parameters
None.