You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Ronald Crooy (JIRA)" <ji...@apache.org> on 2017/06/27 13:07:00 UTC

[jira] [Commented] (CB-9881) inappbrowser iframebidge console error

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

Ronald Crooy commented on CB-9881:
----------------------------------

I am able to reproduce it consistently now. If you run `executeScript` before the in-app-browser got a html page with a `<body>` element in the DOM, the executescript fails and from there on the instance of the browser cannot run the executeScript any more. 

Using cordova ios 4.4.0 and latest version of the in-app-browser.

> inappbrowser iframebidge console error 
> ---------------------------------------
>
>                 Key: CB-9881
>                 URL: https://issues.apache.org/jira/browse/CB-9881
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-inappbrowser
>    Affects Versions: 4.1.1
>         Environment: iOS9.1 Cordova4.1 InAppBrowser1.0.1
>            Reporter: Sebastian Betzinger
>            Assignee: jcesarmobile
>            Priority: Minor
>              Labels: Triaged, iOS
>
> Cordova 4.1 on iOS9.1
> Sometimes a page in inappbrowser is loaded i get errors on the inappbrowser debug console like this:
> TypeError: null is not an object (evaluating 'd.body.appendChild')
> ReferenceError: Can't find variable: _cdvIframeBridge
> When this happens, the iframe with executeScript is not attached to the in inappbrowser loaded website and executeScript is not working.
> These errors occur not all the time, but most page refreshes trigger ONE of these 2 error messages. Any workaround? Using setTimeout didn't help here to delay the iframe attachment (executeScript).
> On Android it works great without any errors with the exact same code.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org