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 in > toolkit/components/aboutmemory/tests/test_memoryReporters.xul, so I > can test the cross-process memory reporting. > > In theory, this is as easy as <iframe mozbrowser remote> or <browser > remote>, or something like that. But I've tried about 80 different > variations on these, and I cannot get a child process. > > This is the closest I've got: > > <html:iframe id="browser" src="about:about" mozbrowser="true" > remote="true"/> > > AIUI, the |html:| prefix and the |="true"| attribute values are > necessary because this is a XUL file and hence XML. My <window> > element looks like this: > > <window title="Memory reporter" > xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" > xmlns:html="http://www.w3.org/1999/xhtml"> > > 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 > prevented it from being set to true. > > What am I doing wrong? The docs > (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe and > https://developer.mozilla.org/en-US/docs/WebAPI/Browser?redirectlocale=en-US&redirectslug=DOM%2FUsing_the_Browser_API > and https://developer.mozilla.org/en-US/docs/XUL/iframe) make it > sounds like this should be easy. > > Nick > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform