cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Brumley (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-2102) InAppBrowser will not open PDFs on different pages
Date Fri, 11 Jan 2013 22:14:13 GMT

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

Jonathan Brumley commented on CB-2102:
--------------------------------------

[~shazron]I dont have test code handy at the moment, but by looking at the server logs the
issue seems to be with the User-Agent, for some reason the one set after I close a PDF is
different than my initial one, check bellow:

My requests before window.open are using this User-Agent
Mozilla/5.0 (iPad; CPU OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9B176
(161603296)

But after opening a PDF and closing, the user Agent is this:
Mozilla/5.0 (iPad; CPU OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9B176

The difference is that (161603296) is missing, so since our requests are checked against the
user agent out session get invalidated.

We might be able to change that to get over the issue, but this is a very interesting finding.
Best,
JB
                
> InAppBrowser will not open PDFs on different pages
> --------------------------------------------------
>
>                 Key: CB-2102
>                 URL: https://issues.apache.org/jira/browse/CB-2102
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS, iOS
>    Affects Versions: 2.3.0
>         Environment: OSX Mountain Lion, xCode 4.5.2, happens on iPad simulator 5.0, 5.1,
6.0.
>            Reporter: Chad Crowell
>            Assignee: Shazron Abdullah
>              Labels: InAppBrowser, iOS6
>             Fix For: 2.3.0
>
>         Attachments: cdv230 copy.zip, www-cb-2102.zip
>
>
> WWW folder is here: https://dl.dropbox.com/u/119908/www.zip
> The folder structure here is setup exactly like the much more elaborate website we are
wrapping in Cordova as an "offline website browser" app for my client. This stripped down
version exhibits the same problematic behavior.
> Whichever page you view first, the PDFs on that page open in IAB just fine. Click over
to the other page and the PDFs there don't open in IAB. Doesn't matter which page you go to
first, the other page always doesn't work.

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

Mime
View raw message