You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "James Salter (JIRA)" <ji...@apache.org> on 2013/12/27 04:10:51 UTC

[jira] [Commented] (CB-5712) embedded iframe load causes all subsequent cdv commands to be ignored

    [ https://issues.apache.org/jira/browse/CB-5712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13857270#comment-13857270 ] 

James Salter commented on CB-5712:
----------------------------------

actually, reloading cordova.js is causing too many other issues - lots of spurious initializers kicking off, and unregistering "deviceready" doesn't actually work because cdv has monkey patched document.removeEventListener .. so i have just reverted the change in 5037 for my local cdv. 

> embedded iframe load causes all subsequent cdv commands to be ignored
> ---------------------------------------------------------------------
>
>                 Key: CB-5712
>                 URL: https://issues.apache.org/jira/browse/CB-5712
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 3.3.0
>         Environment: iOS 7
>            Reporter: James Salter
>
> Hi, just upgrading our project to cordova 3.3.0 and encountered a problem with Cordova's command queue behaviour when an embedded iframe loads in the page. 
> When the frame loads loads UIWebView fires webViewDidStartLoad (in a way indeterminable from the main frame loading), which cdv incorrectly interprets as a full page reload. it does this -
> {code:title=CDVViewController}
>     NSLog(@"Resetting plugins due to page load.");
>     [_commandQueue resetRequestId];
> {code}
> After that all new commands to the command queue are ignored until cordova is reloaded because of the changeset in https://issues.apache.org/jira/browse/CB-5037
> I would really rather not have to reload cordova.js in my main frame just because I loaded up an embedded iframe (I think this is the only workaround without hacking the cdv source)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)