Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-265

IFrame loaded from jQuery in the navigation history

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.8.0
    • cordova-android
    • The wrong behavior was observed on an Asus Transformer TF101 tablet, with Android 3.2.1.

      The behavior could not be reproduced on a Samsung Galaxy S (GT-I9000), with Android 2.3.4.

    Description

      Using jQuery Mobile, an application with two pages. On the second page there is an IFrame element with no source (src=""). jQuery Mobile's OnPageBeforeShow event is used to set the src property to a website (tested with OSM and example.com) like this:

      jQuery('#IFrame').attr('src', 'http://example.com');

      The page is successfully loaded inside the iframe.

      When you go back then, either with the Back button of the Android device or with the navigator.app.backHistory() method, the content of the IFrame dissapears. If you hit Back again (any of the methods also), then it works as expected.

      Seems the load of the iframe is counted as a third page on the application.

      The thing is, on the mobile device I used it works as expected (as I expect at least), hitting back takes you to the previous page directly.

      Attachments

        Activity

          People

            bowserj Joey Robert Bowser
            achaves Adrián Chaves Fernández
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: