You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Fadi Eliya (JIRA)" <ji...@apache.org> on 2015/02/13 19:48:11 UTC

[jira] [Commented] (CB-8479) InAppBrowser executeScript callback does not fire on certain urls

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

Fadi Eliya commented on CB-8479:
--------------------------------

After more digging, it turns out this particular page has it's own version of JSON.stringify, which adds an extra pair of quotes around the string:

{code:javascript}
JSON.stringify([3])
""[3]""
{code}

> InAppBrowser executeScript callback does not fire on certain urls
> -----------------------------------------------------------------
>
>                 Key: CB-8479
>                 URL: https://issues.apache.org/jira/browse/CB-8479
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>    Affects Versions: 3.5.0, 4.0.0, 3.6.3
>         Environment: iOS, Android tested
>            Reporter: Fadi Eliya
>
> After running executeScript on certain pages, the provided callback never fires.
> I created a new project using cordova 4.0.0, and installed the InAppBrowser plugin via github url, version '0.6.1-dev'
> Then ran the following javascript:
> {code:javascript}
> var ref = window.open('http://m.ralphlauren.com/product/index.jsp?productId=54946406', '_blank');
> ref.executeScript({code: '1+1'}, function(resp){console.log(resp)})
> {code}
> The code does execute in the browser window.  However the result is not returned via the callback.
> I tested this on iOS and Android, cordova 3.6.3 and InAppBrowser 0.5.4 as well.  This code executes normally on most pages.



--
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