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

iOS: Closing window with webview from within load event crashes app

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Release 7.0.1, Release 8.0.0
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      SDK 7.0.1.GA
      Mac OS High Sierra, 64bit
      Node 8.9.1
      iOS simulator

      Description

      When I close a window with a webview from within the load event the app crashes. I'm not sure this is a bug. A simple workaround is to close the with a timeout of 0 seconds.

      $.webView.addEventListener("load", onWebViewLoad);
       
      // This crashes
      function onWebViewLoad(e) {
        $.webWindow.close();
      }
       
      // This works
      function onWebViewLoad(e) {
        setTimeout(function() {
          $.webWindow.close();
        }, 0);
      }
      

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain (Inactive)
              Reporter:
              michielve Michiel van Eerd
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Integration