Closed Bug 1064609 Opened 10 years ago Closed 5 years ago

console.jsm messages get swallowed when called from a content policy in a child process

Categories

(DevTools :: Console, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INACTIVE

People

(Reporter: bugzilla.mozilla.org, Unassigned)

Details

My setup is as follows:

1. e10s enabled
2. sdk addon registers a frame script with the global message manager
3. frame script creates a sandbox and an sdk loader and 
4. frame script registers a console.jsm instance as console global for the sandbox/sdk loader
5. a module required() through the loader instantiates a nsIContentPolicy (+ factory)

When I call console.log() inside the content policy's shouldLoad() callback the message only gets logged to the CLI, not to the browser console or browser toolbox.

Calling console.log() in the module's body on the other hand works as expected.
Product: Firefox → DevTools

No activity in 5 years, and looks old-addons related, so let's close this.
The 8472, feel free to reopen it if it's still an issue for you.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.