Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7279] iOS: Add API to load WebView content from string with baseURL

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-14T23:29:05.000+0000
Affected Version/sRelease 1.8.0.1, Release 2.0.0
Fix Version/sSprint 2012-03, Release 2.0.0, Release 1.8.2
ComponentsiOS
Labelsparity, qe-ios11612
ReporterWilson Luu
AssigneeMax Stepanov
Created2012-01-18T13:59:55.000+0000
Updated2012-03-26T14:25:34.000+0000

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

Comments

  1. Wilson Luu 2012-02-08

    Closing bug. Verified fix on: SDK build: 1.9.0.v20120207171634 Titanium Studio, build: 1.0.8.201201262211 xcode: 4.2 Devices: iphone 4S Sprint (5.0.1)

JSON Source