Discussion:
Electrolysis and privileged content: JS Modules, XPCOM Services, XBL etc.
Fruitbalad
2011-08-21 08:57:49 UTC
Permalink
Hello,

Reading the Electrolysis wikipage, this newsgroup seems to be the
appropriate place for questions about Electrolysis ...

I developed a firefox extension that adds filebrowser capabilities to
firefox. browser-tabs are used to display the fileviews (chrome-
url's), which are privileged code. the code is currently heavily
relying on js modules

Now that every tab is going to have it's one process due to the
electrolysis-project (someday), I wonder what happens with JS Modules
and XPCOM-Services. Are those still shared across the whole
application in some way or will every process have its own instance?
Same goes for XBL-bindings - will those also be compiled per process?

Will cross-process-communication only be happening via message-
passing?

Thanks.
Boris Zbarsky
2011-08-22 14:28:06 UTC
Permalink
Post by Fruitbalad
I developed a firefox extension that adds filebrowser capabilities to
firefox. browser-tabs are used to display the fileviews (chrome-
url's), which are privileged code.
Then those should be loaded in in-process tabs, I would think.
Post by Fruitbalad
Now that every tab is going to have it's one process
That's not the plan. The plan is to have a pool of processes used for
tabs showing web pages (so multiple tabs can all be in the same process,
in fact). In-tab browser UI (e.g. about:addons) would continue to be in
the browser process.
Post by Fruitbalad
I wonder what happens with JS Modules
and XPCOM-Services. Are those still shared across the whole
application in some way or will every process have its own instance?
The latter, but that's not really relevant to your use case.
Post by Fruitbalad
Same goes for XBL-bindings - will those also be compiled per process?
Yes.
Post by Fruitbalad
Will cross-process-communication only be happening via message-
passing?
From an API standpoint, I believe the answer is yes (though under the
hood there may be shared memory or whatnot involved). But don't quote
me on this. ;)

-Boris

Loading...