Defines an emitCPOW(event, arguments, cpows) to send a dictionary of CPOW
objects to a child process or frame. The only process that will receive the
event is the one that owns all of the CPOWs sent. The CPOW dictionary will be
appended to the arguments emitted from the port.
Also gets rid of some of the redundancy in message handling so we can more
easily change the protocol in the future.
--HG--
extra : commitid : Gq2h59Xu9VW
extra : rebase_source : 8ef9274f1071da92fa24d3c86131b198ce10f3dd
extra : histedit_source : 5949fafc5a3987fba7c6a3bb08ab8fb6f2dd351f
This makes page-worker load its pages in the remote process. It does so by
creating a single frame in the hidden window used to ensure we have a remote
process when necessary and then a module in the remote process is used to
create windowless browsers to load the pages.
This does break one API, getActiveView, but I don't think we should be
maintaining that and it has been unstable since its inception anyway.
Once downside, the l10n module now has to use the observer service to detect
documents rather than the DOM event, this might be causing more CPOW traffic
since that observer notification is shimmed so we may need to use the shim
waiver there.
--HG--
extra : commitid : FDiGeJzOj6Y
extra : rebase_source : 4a237ee4e75a5b00e8bc17df67dfc9a6db99156e