[ 
https://issues.apache.org/jira/browse/CB-2641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike Kwan updated CB-2641:
--------------------------

    Description: 
window.open is overridden by Cordova to launch the InAppBrowser plugin. When 
window.open is called on iframes, the InAppBrowser is incorrectly launched. 
Putting the attached HTML files into www demonstrates:
- the expected behaviour by using the native window.open
- the bug in Cordova causing InAppBrowser to be launched instead after 
window.open is overridden
- an example of a fix

I have attached screenshots of expected vs actual behaviour and a minimal 
example project reproducing the bug:
http://localhostr.com/9SHRc4lP2sjw

  was:
window.open is overridden by Cordova to launch the InAppBrowser plugin. When 
window.open is called on iframes, the InAppBrowser is incorrectly launched. 
Putting the attached HTML files into www demonstrates:
- the expected behaviour by using the native window.open
- the bug in Cordova causing InAppBrowser to be launched instead after 
window.open is overridden
- an example of a fix

    
> InAppBrowser launched incorrectly when window.open called on iframes
> --------------------------------------------------------------------
>
>                 Key: CB-2641
>                 URL: https://issues.apache.org/jira/browse/CB-2641
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.4.0, 2.5.0
>         Environment: This bug is reproducible on all iOS devices and 
> simulator for Cordova 2.4.0 and 2.5.0. The bug did not exist in Cordova 2.3.0.
>            Reporter: Mike Kwan
>            Assignee: Shazron Abdullah
>         Attachments: cordova_bug.zip, index.html, shared-frame.html, standard 
> window.open.png, window.open erroneously opening iab.png
>
>
> window.open is overridden by Cordova to launch the InAppBrowser plugin. When 
> window.open is called on iframes, the InAppBrowser is incorrectly launched. 
> Putting the attached HTML files into www demonstrates:
> - the expected behaviour by using the native window.open
> - the bug in Cordova causing InAppBrowser to be launched instead after 
> window.open is overridden
> - an example of a fix
> I have attached screenshots of expected vs actual behaviour and a minimal 
> example project reproducing the bug:
> http://localhostr.com/9SHRc4lP2sjw

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

Reply via email to