cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wolfgang Flohr-Hochbichler (JIRA)" <>
Subject [jira] [Reopened] (CB-7758) gap_init called from restricted origin
Date Wed, 15 Oct 2014 06:01:34 GMT


Wolfgang Flohr-Hochbichler reopened CB-7758:

Sorry for re-opening the issue again. Its not a matter of loading a page via content:// provider
protocol, because this is working fine, the real problem is that gap_init does not run for
a page which is loaded via content:// protocol. This is somehow a little bit inconsistent
(loadUrl() considers whitelist, gap_init does not).

The problem is new since 3.6.x and seems to be introcduced by back porting CordovaBridge from
the 4.x branch.

The solution would be to enhance the "if statement" which checks for "file" and "http"  by
"content" or to check against the cordova whitelist like loadUrl()  would do it. 

Do you see any chance to change it? Would be great if you can help! :-)


> gap_init called from restricted origin
> --------------------------------------
>                 Key: CB-7758
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.6.0
>         Environment: Android 4.3
>            Reporter: Wolfgang Flohr-Hochbichler
>            Priority: Minor
> Device ready event is not fired if page is loaded via content:// protocol. 
> I assume it has something to do with a security check done within
which triggers the following gap_init error message.
> 10-09 10:10:18.071 16719 16719 E CordovaBridge: gap_init called from restricted origin:
> 10-09 10:10:23.075 16719 16719 D CordovaLog: content://com.ionicframework.ionicapp795549.jsHybugger/jshybugger.js:
Line 112 : deviceready has not fired after 5 seconds.
> 10-09 10:10:23.075 16719 16719 I Web Console: deviceready has not fired after 5 seconds.
at content://com.ionicframework.ionicapp795549.jsHybugger/jshybugger.js:112

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message