Re: How to create a child process in a chrome mochitest?

2013-09-06 Thread 陳侃如
You need to enable the mozbrowser attribute by flipping dom.mozBrowserFramesEnabled And you need the browser permission. layout/base/tests/test_remote_passpointerevents.html is a good example. Kanru Nicholas Nethercote n.netherc...@gmail.com writes: Hi, I want to create a child process

Re: How to create a child process in a chrome mochitest?

2013-09-06 Thread Benjamin Smedberg
On 9/6/2013 2:32 AM, Nicholas Nethercote wrote: In theory, this is as easy as iframe mozbrowser remote or browser remote html:iframe mozbrowser remote is what B2G uses. It requires the prefs than Kan-Ru mentions. xul:browser remote=true is what desktop uses. It does not require special

Re: How to create a child process in a chrome mochitest?

2013-09-06 Thread Tom Schuster
Here is the CPOW test that creates a remote browser: http://mxr.mozilla.org/mozilla-central/source/content/base/test/chrome/test_cpows.xul On Fri, Sep 6, 2013 at 9:41 AM, Neil n...@parkwaycc.co.uk wrote: Nicholas Nethercote wrote: In theory, this is as easy as iframe mozbrowser remote or

Re: How to create a child process in a chrome mochitest?

2013-09-06 Thread Gavin Sharp
On Fri, Sep 6, 2013 at 1:32 PM, Nicholas Nethercote n.netherc...@gmail.com wrote: With the above code I do get an iframe that loads about:about, which is good. But there's no child process created, and when I inspect the |remote| attribute of the iframe it is |undefined|, as if something