Details

      Description

      Problem

      WebView throw an error in Ti apps for local html file.

      Testing Environments

      Mac OS X 10.8.5
      Titanium SDK: 3.2.1.GA
      Titanium CLI: 3.2.1
      IOS Simulator 7.0.3
      Appcelerator Studio, build: 3.2.1.201402061120

      Test Code

      var win = Ti.UI.createWindow({
      	layout : 'vertical',
      	backgroundColor : "#fff"
       
      });
       
      // Create a WebView
      var aWebView = Ti.UI.createWebView({
      	url : '/1357256.html' //http://appc.mrtechnologybd.com/1357256.html
      });
      aWebView.addEventListener('load', function(e) {
      	Ti.API.info('webview loaded: ' + e.url);
      });
       
      // Add to the parent view.
      win.add(aWebView);
       
      win.open();
      
      

      Steps to reproduce
      1. Create New Ti Sample project
      2. Save attached html file to resource folder
      3. Update app.js file with test code
      4. Run test code in IOS Simulator
      5. Check console log for error message
      Error Logs

      /Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/xmldom/sax.js:102
      			var localNSMap = config.localNSMap;
      			                       ^
      TypeError: Cannot read property 'localNSMap' of undefined
          at parse (/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/xmldom/sax.js:102:27)
          at XMLReader.parse (/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/xmldom/sax.js:30:3)
          at DOMParser.parseFromString (/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/xmldom/dom-parser.js:25:7)
          at Object.analyzeHtml (/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/titanium-sdk/lib/jsanalyze.js:159:58)
          at Object.analyzeHtmlFile (/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/titanium-sdk/lib/jsanalyze.js:146:17)
          at /Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/iphone/cli/commands/_build.js:2726:17
          at async.whilst (/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/async/lib/async.js:619:13)
          at recursivelyCopy (/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/iphone/cli/commands/_build.js:2675:9)
          at /Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/iphone/cli/commands/_build.js:2697:39
          at async.whilst (/Users/mrahman/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/async/lib/async.js:619:13)
      

      Thanks

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              mrahman Mostafizur Rahman
              Reviewer:
              Sabil Rahim
            • Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration