Note: This service was introduced in Gecko 5.0 on Firefox for Android, but was not provided on desktop until Gecko 13.0 (Firefox 13). There is no IDL for this interface.
parentprocessmessagemanager is used for this, so messages send from
childprocessmessagemanagers will be heard.
To request a wakeup, a wakeup condition must be registered with the category manager in the "wakeup-request" category. The easiest way to do this is to add the appropriate entry to the chrome manifest that registers your component (see
category in "Chrome registration").
To indicate a wakeup request in a manifest file, add a line that looks something like this:
category wakeup-request nsComponent @mozilla.org/myservice;1,nsIMyInterface,getService,myMessage1,myMessage2[,..]
The category entry value consists of a comma separate string that contains:
- The contract ID for your component (e.g. "
- The string name of interface to instantiate the component as (e.g. "
- The method to call to instantiate the component (either "
getService" or "
- A comma-separated list of messages for which your component should be instantiated.
Alternatively, it is possible to register a wakeup entry programmatically via the