[ https://issues.apache.org/jira/browse/CB-2225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Grieve resolved CB-2225. ------------------------------- Resolution: Fixed I went with option #2 for now. Fix commit: https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;a=commit;h=07a223ee65add7e5e6ff108a77fbc684dad79914 There's some notes in CDVInAppBrowser about the work-around. Here they are: This work-around makes the following assumptions: 1. The app has only a single Cordova Webview. If not, then the app should take it upon themselves to load a PDF in the background as a part of their start-up flow. 2. That the PDF does not require any additional network requests. We change the user-agent here back to that of the CDVViewController, so requests from it must pass through its white-list. This *does* break PDFs that contain links to other remote PDF/websites. > User-Agent changes in the CordovaWebView after using InAppBrowser > ----------------------------------------------------------------- > > Key: CB-2225 > URL: https://issues.apache.org/jira/browse/CB-2225 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Reporter: Shazron Abdullah > Assignee: Andrew Grieve > Fix For: 2.4.0 > > Attachments: www-cb-2102.zip > > > See CB-2102. > Attached www-cb-2102.zip which I tested with Cordova 2.3.0. > Repro: > 1. On the main index.html, touch the "UserAgent" button, observe that the UA > has a numbered suffix (correct) > 2. Touch the "About" link to go to the About page > 3. On the About page, touch the "UserAgent" button, observe that the UA has a > numbered suffix (correct, it's the same as in (1)) > 4. Touch the "English" link, this will load a PDF in the InAppBrowser > 5. Touch the "Done" button in the InAppBrowser to dismiss it > 6. Now you are back to the "About" page, touch the "UserAgent" button again, > and note that the UA is not the same as expected in (3) -- 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