tab.attach throws exception if Electrolysis is turned on (firefox 34.0a1)

RESOLVED FIXED

Status

Add-on SDK
General
P1
major
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: Joachim Herb, Assigned: zombie)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
The code for a sample addon at https://github.com/jmozmoz/testtabattach results in an exception:

"err: [Exception... "Failure arg 0 [nsIScriptSecurityManager.isSystemPrincipal]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///C:/Users/joachim/AppData/Roaming/Mozilla/Firefox/Profiles/fqv5dzqx.test01/extensions/@testtab.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/content/sandbox.js :: WorkerSandbox :: line 122"  data: no]" index.js:9

This happens after the addon was installed and (reproducible after restarting firefox).

Setting browser.tabs.remote.autostart to false does not result in the error.

The error also does only appear if the function call in https://github.com/jmozmoz/testtabattach/blob/master/index.js#L24 includes parameters.
The method resulting in the exception happens in this sequence:
tabs.on -> tab.attach -> self.postMessage -> onMessage -> method call
(Reporter)

Updated

4 years ago
Blocks: 905436

Updated

4 years ago
Assignee: nobody → tomica+amo
Priority: -- → P1
(Reporter)

Comment 1

4 years ago
This has (somehow) been fixed.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WORKSFORME
(Assignee)

Comment 2

4 years ago
fixed in bug 1090147
Depends on: 1090147
Resolution: WORKSFORME → FIXED
You need to log in before you can comment on or make changes to this bug.