Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Rdp.registerGlobalActor(...) is undefined #84

Open
janodvarko opened this issue Aug 19, 2016 · 1 comment
Open

TypeError: Rdp.registerGlobalActor(...) is undefined #84

janodvarko opened this issue Aug 19, 2016 · 1 comment

Comments

@janodvarko
Copy link
Member

I am seeing the following error when opening RDPi Console:
(Firefox Nightly)

Console Service ERROR [JavaScript Error: "TypeError: Rdp.registerGlobalActor(...) is undefined" {file: "resource://gre/modules/commonjs/toolkit/loader.js -> resource://rdpinspector-at-getfirebug-dot-com/lib/inspector-service.js" line: 280}] [JavaScript Error: "TypeError: Rdp.registerGlobalActor(...) is undefined" {file: "resource://gre/modules/commonjs/toolkit/loader.js -> resource://rdpinspector-at-getfirebug-dot-com/lib/inspector-service.js" line: 280}]

@rpl Any tips why this happens?

Honza

@rpl
Copy link
Member

rpl commented Aug 19, 2016

@janodvarko By looking at the sources it seems that the problem is happening in the firefox-sdk npm (jpm) dependency, in particular it seems that the Rdp.registerGlobalActor helper doesn't always return a promise, e.g. if checkCompatibility returns false, then registerGlobalActor return null instead of rejecting the promise:

https://github.com/firebug/firebug.sdk/blob/master/lib/core/rdp.js#L33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants