blackberry / WebWorks

BlackBerry WebWorks for Smartphones is a platform for building deeply integrated web applications for BlackBerry smartphones
http://developer.blackberry.com/html5
268 stars 51 forks source link

Browser Invocation does not work when there is an iframe on the page #66

Open jeffheifetz opened 12 years ago

jeffheifetz commented 12 years ago

Please review this thread in the forums http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Cannot-read-property-BrowserArguments-of-undefind/m-p/1401709#M18016

mattlanham commented 12 years ago

I've also experienced this when including JSConsole for debugging, i think it injects an iFrame into the page, and then this means that invoke no longer functions...

mattlanham commented 12 years ago

This also affects blackberry.identity.PIN

jeffheifetz commented 12 years ago

I wonder if this sencha touch issue is related as well http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/blackberry-identity-PIN-on-smartphone/m-p/1414023/highlight/true#M18325

astanley commented 12 years ago

I wonder if this is a domain whitelisting issue? Could the URL of the iFrame be interfering with the webview's understanding of which blackberry.* features are available?

Any chance we can determine what domain is being used in the iframe and then add a feature for it in config.xml? Like this:

<access subdomains="true" uri="http://whatever.iframe.com"&gt; <feature id="blackberry.identity" required="true" version="1.0.0.0"/> </access>

gstevenson commented 11 years ago

Just a note that I'm getting this issue also but I have no iframe's in my code.. I am however accessing a server using XMLHTTPRequest() though.