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

iOS: Ti.UI.WebView crashes when a malformed URL has been entered

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 2.0.0, Release 1.8.2
    • Fix Version/s: Release 2.0.0, Sprint 2012-07
    • Component/s: iOS
    • Environment:

      Titanium SDK version: 1.8.2
      Device Details: iOS Simulator 5.0.1
      Host Operating System: OSX 10.7.2
      Titanium Studio version: 1.0.9.201202141208

      Description

      Code

      var win = Ti.UI.createWindow();
       
      var webView = Ti.UI.createWebView({ 
      	width: '100%', 
      	height: '100%'
      });
       
      win.add(webView); 
      webView.url = 'http:// google.com'; // if you remove the space, it works fine in 1.8.2
       
      win.open();
      

      Expected behavior
      The app should run without crashing, just like it does when using the same code and building with version 1.7.5.

      Actual behavior
      The app crashes at runtime.

      Notes
      -I have only tested this on the iOS simulator.
      -It works fine when you enter a correct URL (i.e. without any spaces), however in 1.7.5 you could have a space and it wouldn't crash.
      -Current workaround: http://pastebin.com/jPkDBK5u
      -HD ticket: http://support-admin.appcelerator.com/display/APP-584755

        Attachments

          Activity

            People

            • Assignee:
              srahim Sabil Rahim
              Reporter:
              jyounus Junaid Younus
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code