Created attachment 554382 [details] [diff] [review] patch ...this way certain scripts can run also in non-e10s builds, and in-process-frame-scripts can also use process mm. Uploaded to try.
What needs this? I really want to discourage use of the process message manager and I don't want to take this unless the alternative is really messy code in some dependency.
If any frame mm script uses process mm, it would be hard to use the same code in-process mm.
So, the patch is about having consistent APIs.
Now that Session Restore is using the process message manager to handle data sent on unload, we need this patch to ensure that the same code works both when e10s is enabled and disabled.
> + PRBool isChrome = IsChromeProcess(); Should be bool.