117
edits
(7 intermediate revisions by the same user not shown) | |||
Line 61: | Line 61: | ||
==== 1/ XPCOM and Javascript modules ==== | ==== 1/ XPCOM and Javascript modules ==== | ||
Lives indefinitely in Chrome process as singletons. | |||
Have direct access to almost everything: | |||
* XPCOMs | |||
* JS Modules | |||
* All Chrome Nodes | |||
But it doesn't have access to: | |||
* Content nodes | |||
==== 2/ Chrome windows scripts ==== | ==== 2/ Chrome windows scripts ==== | ||
Almost the same than XPCOMs and JS Modules except that there is one instance by chrome browser window. So they may not be singletons and their life could be limited to window's life. | |||
==== 3/ Message manager scripts ==== | ==== 3/ Message manager scripts ==== | ||
A really important context in E10S version that lives, for now, in plugin-container process. There is one instance by web content tab.<br> | |||
They have access to: | |||
* Some XPCOMs like files, but no nsIWindow* | |||
* Have access to Components.*, so can import JS Modules, create sandbox, ... | |||
* Content DOM nodes |
edits