You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Sani Elfishawy (JIRA)" <ji...@apache.org> on 2012/11/06 17:30:16 UTC

[jira] [Created] (CB-1819) Weinre target loading error when loading target js in browser

Sani Elfishawy created CB-1819:
----------------------------------

             Summary: Weinre target loading error when loading target js in browser
                 Key: CB-1819
                 URL: https://issues.apache.org/jira/browse/CB-1819
             Project: Apache Cordova
          Issue Type: Bug
          Components: weinre
    Affects Versions: 2.0.0
         Environment: Firefox 16.0.2
            Reporter: Sani Elfishawy
            Assignee: Patrick Mueller


Error when loading target created by the following build in Firefox:
weinre: 2.0.0-pre-H8EOSCLN-incubating build: H8EOSCLN  - Note this version was the one loaded by Node NPM.

Loading target-script-min.js#anonymous" in the browser gives this error:

Error: TypeError: func is undefined

On this line: hookedFunction.displayName = func.displayName || func.name;

In the module: HookLib

This error occurs when clicking the bookmarklet on a website as well. It doesnt occur when the target is packaged in a cordova app and run on a phone. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1819) Weinre target loading error when loading target js in browser

Posted by "Patrick Mueller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13491652#comment-13491652 ] 

Patrick Mueller commented on CB-1819:
-------------------------------------

For your generic issue of getting a connection on android, try using the Google Group: 

https://groups.google.com/forum/?fromgroups#!forum/weinre
                
> Weinre target loading error when loading target js in browser
> -------------------------------------------------------------
>
>                 Key: CB-1819
>                 URL: https://issues.apache.org/jira/browse/CB-1819
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: weinre
>    Affects Versions: 2.0.0
>         Environment: Firefox 16.0.2
>            Reporter: Sani Elfishawy
>            Assignee: Patrick Mueller
>
> Error when loading target created by the following build in Firefox:
> weinre: 2.0.0-pre-H8EOSCLN-incubating build: H8EOSCLN  - Note this version was the one loaded by Node NPM.
> Loading target-script-min.js#anonymous" in the browser gives this error:
> Error: TypeError: func is undefined
> On this line: hookedFunction.displayName = func.displayName || func.name;
> In the module: HookLib
> This error occurs when clicking the bookmarklet on a website as well. It doesnt occur when the target is packaged in a cordova app and run on a phone. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (CB-1819) Weinre target loading error when loading target js in browser

Posted by "Sani Elfishawy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13491590#comment-13491590 ] 

Sani Elfishawy edited comment on CB-1819 at 11/6/12 5:06 PM:
-------------------------------------------------------------

Sorry. I just realized Firefox is not one of the supported browsers.

My goal was to run on android browser on android phone as well as on packaged app on android phone. Running in packaged app works fine. Running on android browser does not connect but I of course cant see the error that causes the failure. I thought I would try in a non mobile browser to diagnose the issue.  That is where I ran into the problem described above. I am not sure if the reason android browser does not connect is due to the error described above however.
                
      was (Author: sani):
    Sorry. I just realized Firefox is not one of the supported browsers.
                  
> Weinre target loading error when loading target js in browser
> -------------------------------------------------------------
>
>                 Key: CB-1819
>                 URL: https://issues.apache.org/jira/browse/CB-1819
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: weinre
>    Affects Versions: 2.0.0
>         Environment: Firefox 16.0.2
>            Reporter: Sani Elfishawy
>            Assignee: Patrick Mueller
>
> Error when loading target created by the following build in Firefox:
> weinre: 2.0.0-pre-H8EOSCLN-incubating build: H8EOSCLN  - Note this version was the one loaded by Node NPM.
> Loading target-script-min.js#anonymous" in the browser gives this error:
> Error: TypeError: func is undefined
> On this line: hookedFunction.displayName = func.displayName || func.name;
> In the module: HookLib
> This error occurs when clicking the bookmarklet on a website as well. It doesnt occur when the target is packaged in a cordova app and run on a phone. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1819) Weinre target loading error when loading target js in browser

Posted by "Sani Elfishawy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13491663#comment-13491663 ] 

Sani Elfishawy commented on CB-1819:
------------------------------------

Thank you!
                
> Weinre target loading error when loading target js in browser
> -------------------------------------------------------------
>
>                 Key: CB-1819
>                 URL: https://issues.apache.org/jira/browse/CB-1819
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: weinre
>    Affects Versions: 2.0.0
>         Environment: Firefox 16.0.2
>            Reporter: Sani Elfishawy
>            Assignee: Patrick Mueller
>
> Error when loading target created by the following build in Firefox:
> weinre: 2.0.0-pre-H8EOSCLN-incubating build: H8EOSCLN  - Note this version was the one loaded by Node NPM.
> Loading target-script-min.js#anonymous" in the browser gives this error:
> Error: TypeError: func is undefined
> On this line: hookedFunction.displayName = func.displayName || func.name;
> In the module: HookLib
> This error occurs when clicking the bookmarklet on a website as well. It doesnt occur when the target is packaged in a cordova app and run on a phone. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1819) Weinre target loading error when loading target js in browser

Posted by "Sani Elfishawy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13491590#comment-13491590 ] 

Sani Elfishawy commented on CB-1819:
------------------------------------

Sorry. I just realized Firefox is not one of the supported browsers.
                
> Weinre target loading error when loading target js in browser
> -------------------------------------------------------------
>
>                 Key: CB-1819
>                 URL: https://issues.apache.org/jira/browse/CB-1819
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: weinre
>    Affects Versions: 2.0.0
>         Environment: Firefox 16.0.2
>            Reporter: Sani Elfishawy
>            Assignee: Patrick Mueller
>
> Error when loading target created by the following build in Firefox:
> weinre: 2.0.0-pre-H8EOSCLN-incubating build: H8EOSCLN  - Note this version was the one loaded by Node NPM.
> Loading target-script-min.js#anonymous" in the browser gives this error:
> Error: TypeError: func is undefined
> On this line: hookedFunction.displayName = func.displayName || func.name;
> In the module: HookLib
> This error occurs when clicking the bookmarklet on a website as well. It doesnt occur when the target is packaged in a cordova app and run on a phone. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CB-1819) Weinre target loading error when loading target js in browser

Posted by "Patrick Mueller (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Mueller resolved CB-1819.
---------------------------------

    Resolution: Duplicate

Since the problem description is associated with running in Firefox, DUPing this on https://issues.apache.org/jira/browse/CB-89
                
> Weinre target loading error when loading target js in browser
> -------------------------------------------------------------
>
>                 Key: CB-1819
>                 URL: https://issues.apache.org/jira/browse/CB-1819
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: weinre
>    Affects Versions: 2.0.0
>         Environment: Firefox 16.0.2
>            Reporter: Sani Elfishawy
>            Assignee: Patrick Mueller
>
> Error when loading target created by the following build in Firefox:
> weinre: 2.0.0-pre-H8EOSCLN-incubating build: H8EOSCLN  - Note this version was the one loaded by Node NPM.
> Loading target-script-min.js#anonymous" in the browser gives this error:
> Error: TypeError: func is undefined
> On this line: hookedFunction.displayName = func.displayName || func.name;
> In the module: HookLib
> This error occurs when clicking the bookmarklet on a website as well. It doesnt occur when the target is packaged in a cordova app and run on a phone. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira