Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13057

iOS: WebView: beforeload event fires twice (local file path)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Invalid
    • Affects Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      Titanium SDK: Mobile 3.0 & 3.1
      Platform OS Version: iOS5 & iOS6

      Description

      Issue

      When app bring up the webview on iOS, we can see one beforeload and one load event. After calling webview.reload(), it can be seen 2 beforeload and load events.

      Steps to reproduce are as follows:

      1. start app
      2. notice 1x beforeload and 1x load events
      3. tap [reload] button
      4. notice 2x beforeload and 2x load events

      load

      [INFO] app.js: webview.beforeload: uuid: na, url: file:///Users/gary.fong/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/64CBE284-753E-47FC-BA3A-ED78C03BF2A2/AndroidWebViewReload2.app/test.html
      [INFO] test.html: window.load
      [INFO] test.html: dump: uuid: na, isReady: false
      [INFO] app.js: webview.load: uuid: na, url: file:///Users/gary.fong/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/64CBE284-753E-47FC-BA3A-ED78C03BF2A2/AndroidWebViewReload2.app/test.html
      

      reload

      [INFO] app.js: resetting url
      [INFO] reloading...
      [INFO] app.js: webview.beforeload: uuid: na, url: file:///Users/gary.fong/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/64CBE284-753E-47FC-BA3A-ED78C03BF2A2/AndroidWebViewReload2.app/test.html
      [INFO] app.js: webview.beforeload: uuid: na, url: file:///Users/gary.fong/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/64CBE284-753E-47FC-BA3A-ED78C03BF2A2/AndroidWebViewReload2.app/test.html
      [INFO] test.html: window.load
      [INFO] test.html: dump: uuid: na, isReady: false
      [INFO] app.js: webview.load: uuid: na, url: file:///Users/gary.fong/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/64CBE284-753E-47FC-BA3A-ED78C03BF2A2/AndroidWebViewReload2.app/test.html
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mstepanov Max Stepanov
                Reporter:
                egomez Eduardo Gomez (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-15888
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code