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

iOS: Add API to load WebView content from string with baseURL

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 1.8.0.1, Release 2.0.0
    • Component/s: iOS
    • Environment:

      SDK build: 1.8.0.1, 1.9.0.v20120115231633
      Titanium Studio, build: 1.0.8.201201131907
      OS: Mac OS X Lion (10.7.2)
      Device: iPod 3rd Gen (4.0.2)

      Description

      Steps to reproduce:
      1. Install KitchenSink
      2. Navigate to Base UI > Views >Web Views > XHR to Filesystem
      3. Click on any link

      Actual: Debug and error messages about files not loading are printed out to the console:

      Wed Jan 18 13:37:34 unknown UIKitApplication:com.appcelerator.titanium[0xb86][95] <Notice>: [DEBUG] New scheme: <NSMutableURLRequest file:///m?site=images&source=mog&gl=us>
      Wed Jan 18 13:37:34 unknown UIKitApplication:com.appcelerator.titanium[0xb86][95] <Notice>: [ERROR] Error loading: file:///var/mobile/Applications/0FA66DA4-BEF1-48DB-AFE6-BC40E7120390/Documents/test.html, Error: Error Domain=NSURLErrorDomain Code=-1100 "The requested URL was not found on this server." UserInfo=0x92e88f0 {NSErrorFailingURLStringKey=file:///m?site=images&source=mog&gl=us, NSErrorFailingURLKey=file:///m?site=images&source=mog&gl=us, NSLocalizedDescription=The requested URL was not found on this server., NSUnderlyingError=0x7198640 "The requested URL was not found on this server."}
      

      Expected: Should able to load clicked links.

      Note: Bug existed in 1.8.0.1

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mstepanov Max Stepanov
                Reporter:
                wluu Wilson Luu (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration