You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sergey Grebnov (JIRA)" <ji...@apache.org> on 2015/11/17 09:29:11 UTC

[jira] [Commented] (CB-9150) InAppBrowser executeScript excepts if no data returned on Windows Phone platform

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

Sergey Grebnov commented on CB-9150:
------------------------------------

Can't repro the case when e.target could be null, all samples (including official) always just use e.target.result. I'll this improvement. but I think there is a problem in app logic (win callback implementation) and not in plugin.

> InAppBrowser executeScript excepts if no data returned on Windows Phone platform
> --------------------------------------------------------------------------------
>
>                 Key: CB-9150
>                 URL: https://issues.apache.org/jira/browse/CB-9150
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>    Affects Versions: 5.0.0
>         Environment: Cordova 5.0.0, Windows 3.8.1, InAppBrowser 1.0.0
>            Reporter: John Little
>            Assignee: Sergey Grebnov
>              Labels: Triaged, WP8.1, Windows
>
> The executeScript function can return data across the inteface.
> When using Windows Phone 8.1 if no data is returned the current code will except, crashing the app.
> I have found the following code to solve the problem
> In file InAppBrowserProxy.js
> Change lines 250 and 272 from
> var result = [e.target.result];
> to
> var result = [];
> if(e && e.target) result = [e.target.result];



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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