nickdesaulniers / fxos-irc

IRC client for FxOS (and now desktop FF)
GNU General Public License v3.0
38 stars 13 forks source link

[Blocker] Strange error in logcat #24

Closed nickdesaulniers closed 11 years ago

nickdesaulniers commented 11 years ago

STR:

  1. Install app via marketplace.
  2. adb logcat
  3. Try to connect

Expected: Connection

Actual: Nothing, and weird errors in logcat:

E/GeckoConsole(  770): [JavaScript Error: "NS_ERROR_INVALID_POINTER: Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMessageSender.sendAsyncMessage]" {file: "chrome://global/content/BrowserElementChildPreload.js" line: 41}]
I/Gecko   (  770): TCPSocket: inner-window-destroyed: 4
...
E/GeckoConsole(  107): Content JS WARN at app://system.gaiamobile.org/js/window.js:144 in anonymous: app of [app://{8c193000-ef8f-4a7f-bf74-98618175ae5f}] got a mozbrowserloadstart event.
E/GeckoConsole(  796): [JavaScript Error: "CSP ERROR:  Couldn't parse invalid source 'unsafe-inline'
E/GeckoConsole(  796): "]
E/GeckoConsole(  796): [JavaScript Warning: "CSP WARN:  Failed to parse unrecognized source 'unsafe-inline'
E/GeckoConsole(  796): "]
...
I/Gecko   (  796): TCPSocket: window init: 4
I/Gecko   (  796): TCPSocket: content process: true
I/Gecko   (  796):
I/Gecko   (  796): TCPSocket: window init: 4
I/Gecko   (  796): TCPSocket: startup called
I/Gecko   (  796):
I/Gecko   (  796): TCPSocket: Host info: irc.mozilla.org:6667
I/Gecko   (  796):
I/Gecko   (  796): TCPSocket: SSL: false
I/Gecko   (  796):
I/Gecko   (  107): TCPSocket: content process: false
I/Gecko   (  107):
I/Gecko   (  107): TCPSocket: window init: undefined
I/Gecko   (  107): TCPSocket: startup called
I/Gecko   (  107):
I/Gecko   (  107): TCPSocket: Host info: irc.mozilla.org:6667
I/Gecko   (  107):
I/Gecko   (  107): TCPSocket: SSL: false
I/Gecko   (  107):
E/GeckoConsole(  796): [JavaScript Error: "[Exception... "'TypeError: replyFor is undefined' when calling method: [nsITCPSocketInternal::callListenerData]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0"  data: no]"]
E/GeckoConsole(  796): [JavaScript Error: "[Exception... "'TypeError: replyFor is undefined' when calling method: [nsITCPSocketInternal::callListenerData]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0"  data: no]"]
nickdesaulniers commented 11 years ago

I don't think that TCPSockets are broken, as one can install this and it works.

nickdesaulniers commented 11 years ago

@pennyfx reported that this is culprit.

nickdesaulniers commented 11 years ago
E/GeckoConsole(  530): [JavaScript Error: "CSP ERROR:  Couldn't parse invalid source 'unsafe-inline'
E/GeckoConsole(  530): [JavaScript Warning: "CSP WARN:  Failed to parse unrecognized source 'unsafe-inline'
nickdesaulniers commented 11 years ago

Quite sure I forgot to include node-irc/lib/codes.js in the zip!!!