cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Resolved] (CB-6663) Statusbar plugin may cause cordova not to load
Date Tue, 13 May 2014 23:16:16 GMT


Shazron Abdullah resolved CB-6663.

    Resolution: Duplicate
      Assignee: Shazron Abdullah

Thanks for the report Tom, 
I believe the changes you want will be incorporated in CB-5138

> Statusbar plugin may cause cordova not to load
> ----------------------------------------------
>                 Key: CB-6663
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Statusbar
>    Affects Versions: 3.4.0
>         Environment: iOS 7.1 on iPhone 5, Xcode 5
>            Reporter: Tom Sanidas
>            Assignee: Shazron Abdullah
>              Labels: javascript
> Found this while researching symptoms like those in CB-5488, where Cordova was not finding
"document.body" and not initializing or firing "deviceready".  When using the Statusbar plugin
on iOS for its ability to "overlaysWebView=false", found that when including JQuery in those
same pages, Cordova would intermittently fail to load.  Used the Mac Safari "Developer" tool
option debugger to step through on the device and saw the error was in cordova.js's operating
on a null "document.body".  The call stack pointed to statusbar.js.
>     I believe this is due to Statusbar's Javascript calling exec() before "device ready".
 I was able to do some testing and if I deferred this exec() call until after "deviceready",
the error disappears.
>     If I can figure out how, I might be able to propose my changes properly.  They only
were about 3 lines of Javascript, but I need to get set up to test, etc.

This message was sent by Atlassian JIRA

View raw message