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

[jira] [Comment Edited] (CB-2693) Got a white blank screen after invoking window.parent.xxx()

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

Shazron Abdullah edited comment on CB-2693 at 4/9/13 10:27 PM:
---------------------------------------------------------------

Ok, your latest example, did you actually run it in Chrome/Safari? It will compalin because of "Refused to display document because display forbidden by X-Frame-Options". Nothing we can do about this, this is an iOS UIWebView security thing (X-Frame-Options: SAMEORIGIN)

See: http://stackoverflow.com/questions/15438054/cant-properly-load-external-urls-in-an-iframe-with-cordova-ios
https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options
                
      was (Author: shazron):
    Ok, your latest example, did you actually run it in Chrome/Safari? It will compalin because of "Refused to display document because display forbidden by X-Frame-Options". Nothing we can do about this, this is an iOS UIWebView security thing (X-Frame-Options: SAMEORIGIN)

See: http://stackoverflow.com/questions/15438054/cant-properly-load-external-urls-in-an-iframe-with-cordova-ios
                  
> Got a white blank screen after invoking window.parent.xxx()
> -----------------------------------------------------------
>
>                 Key: CB-2693
>                 URL: https://issues.apache.org/jira/browse/CB-2693
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.3.0, 2.4.0, 2.5.0
>         Environment: iOS 6.1 Simulator or iOS 6.1.2 real devices
>            Reporter: Liu Yuanyuan
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>              Labels: patch
>             Fix For: 2.7.0
>
>         Attachments: CB-2693.zip
>
>   Original Estimate: 336h
>  Remaining Estimate: 336h
>
> Always got a blank white screen after invoking any parent function in iframe for example:
> window.parent.alert('test!');
> window.parent.postMessage('my message','*');
> Notes:
> I had tried it on iOS Regular browser and Android Native packaging all work well, this issue only happends on iOS Native packaging application.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira