Questions tagged [e10s]

E10s (Electrolysis) is a project to turn Firefox in a multi-process browser, where the browser and web content are run in separate processes.

The goal of the Electrolysis project ("e10s" for short) is to decompose Firefox in multiple processes, where the main browser process spawns content processes to render and execute web content. This allows for major enhancements in security and performance. Normal web pages are usually not affected by this change, but Firefox add-ons may cease to function properly.

E10s is only enabled by default on Firefox Nightly, but will eventually be enabled by default on Firefox stable.

17 questions
3
votes
2 answers

Firefox Extension: responding to an http-on-modify-request observed in the parent with a message to the child frame responsible for the load

I'm trying to enhance an existing Firefox extension which relies on nsIContentPolicy to detect and abort certain network loads (in order to block the resulting UI action, i.e. tab navigation). Then handle loading that resource internally. Under…
arantius
  • 1,715
  • 1
  • 17
  • 28
3
votes
1 answer

drawWindow() broken with multiprocess Firefox (e10s)?

The Firefox drawWindow()-Function expects as first parameter a XUL content-window as provided by the low-level api tab utils. However with the introduction of the multiprocess architecture in Firefox (codenamed electrolysis or e10s) directly…
Michael Große
  • 1,818
  • 1
  • 16
  • 20
3
votes
0 answers

How to load a XPCOM component when Firefox's content process is created (e10s)?

I'm trying to override Firefox's default implementation of nsIURIFixup via a Firefox addon. Because this service is created once and then cached globally after the construction of nsDocShell, I have to register my component before any docshell is…
Rob W
  • 341,306
  • 83
  • 791
  • 678
3
votes
1 answer

When do I load a browser frame script (e10s)?

I'm trying to port one of my Firefox extensions to support Electrolysis (e10s). My extension grabs some page data and puts it on the clipboard via a context-menu item that the user can click. Based on the message manager documentation, there are 3…
Jonah Bishop
  • 12,279
  • 6
  • 49
  • 74
3
votes
1 answer

How to get page info from frame script in e10s-enabled Firefox?

I have a Firefox extension that loads page information in a function like so: var title = content.document.title; var url = content.document.location.href; This function runs when a user selects a context menu item that my extension creates. Since…
Jonah Bishop
  • 12,279
  • 6
  • 49
  • 74
2
votes
0 answers

require("sdk/selection").text for now its not working in e10s. What to replace it with?

require("sdk/selection").text for now its not working in e10s. I try activeTab.attach and ports and window.getSelected.toString() but this is very slowly. What to replace it with?
user873307
2
votes
0 answers

How to register a content policy (nsIContentPolicy) in a frame script?

In e10s we have to register a content policy directly in frame scripts, but I can't find any example that works. I have tested this code but it only detects when internal resources are loaded, and it gives the following…
Maxime
  • 93
  • 5
1
vote
1 answer

Is multiprocessCompatible tag necessary for Firefox Multiprocess Compatibility?

I have a toolbar button add-on on AMO. As of now, it works for normal and e10s Firefox versions. But AMO validator asks add-ons to add em:multiprocessCompatible tag. true If I do not update my…
John Bernard
  • 777
  • 2
  • 7
  • 16
1
vote
1 answer

send postMessage from the web script to frame-script

On the frame-script.js, i cannot catch / listen to postMessages from the web scripts on the web page (nor to custom events). However, i tried and was able to catch 'click' events. What am i doing wrong? post messaging like this :…
hutzleo29
  • 11
  • 2
1
vote
1 answer

How to get document.popupNode in Firefox Electrolysis windows

I am trying to write an add-on for Firefox Electrolysis. When I open an e10s window and right click on a page element, document.popupNode is not available for e10s window. var WindowListener = { setupBrowserUI: function(window) { // …
Xoshnain
  • 37
  • 1
  • 4
0
votes
0 answers

Detect URL changes in Firefox add-on SDK (multiprocess)

I'm developing my first add-on with Add-on SDK, jpm (because I need to support old versions of Firefox) I need to track URL changes in address bar, I found that such thing can be done with using of a nsIWebProgressListener interface. I found this…
Kesantielu Dasefern
  • 266
  • 1
  • 3
  • 12
0
votes
1 answer

How to get the active tab URL in an e10s add-on

For a toolbar button click, I need to get the URL address of the active tab. But window.gBrowser.selectedBrowser.contentDocument gets a CPOW error. How can I get the URL location of the active tab URL within an e10s add-on?
0
votes
2 answers

Can JQuery be used by a multiprocess Firefox extension?

The Mozilla documentation is silent on this issue. Is there anyone in the know that can answer and explain why or why not? If not, I'd like to know the policy reasons and architectural decisions why not. Edit: This question is limited to…
AlJo
  • 161
  • 1
  • 13
0
votes
1 answer

How to postMessage from Firefox frame-script to a web page?

i'm adjusting my extension to Firefox multiprocess (e10s). I want to send the webpage some data using a postMessage from the frame-script. The Firefox documnatation says i should try to use 'content' object instead of the 'window' object. When…
hutzleo29
  • 11
  • 2
0
votes
1 answer

e10s - I want to get from nsIObserver-nsIHttpChannel-nsIDOMWindow-nsIDOMDocument. How can I do it?

My addon worked on FF41. Now I want to migrate on e10s. Use Firefox developer edition v43. The example observer (c++). NS_IMETHODIMP CFFObserver::Observe( nsISupports* aSubject, const char* aTopic, const char16_t* aData ) { ......... if (…
DLmr
  • 1
1
2