On 02/02/2016 12:29 AM, Kris Maglione wrote:
That falls into the category of "unless it is calling browser code and making it do something unsafe".
That's too bad. I'm just reusing a querying function from there, and a pretty small one.
If you need to use that function from the main process, you can only do so from the message listener for a synchronous message from the content process (or a few other similar situations).
Yes, that will add some complexity. It seems I can just copy getDescriptionFromDocument's definition until I get around to supporting E10s properly.
While you're at it, though, it would be a good idea to make that function asynchronous, so that you can check the description from the content process, and look up whether the URL is bookmarked, without blocking the browser process.
Should be a plus, but the user's just waiting for the action to complete at this point, so it's not like there are many other things for the browser process to do.
_______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform