Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25543] iOS: Webview crashes when setting html with ignoreSslError

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 6.3.0
Fix Version/sn/a
Componentsn/a
LabelsengReviewed, ios, webview
ReporterGuile
AssigneeUnknown
Created2017-11-21T01:12:00.000+0000
Updated2019-06-04T15:06:17.000+0000

Description

When you create a webview like this :
$.index.add(Ti.UI.createWebView({
    ignoreSslError: true,
    html: 'test in wv'
}));
It crashes the app with this log
[ERROR] :  The application has crashed with an uncaught exception 'NSRangeException'.
[ERROR] :  Reason:
[ERROR] :  *** -[__NSCFString substringFromIndex:]: Index 177 out of bounds; string length 176
[ERROR] :  Stack trace:
[ERROR] :  0   CoreFoundation                      0x0000000115191193 __exceptionPreprocess + 147
[ERROR] :  1   libobjc.A.dylib                     0x000000011425ef41 objc_exception_throw + 48
[ERROR] :  2   CoreFoundation                      0x0000000115205cb5 +[NSException raise:format:] + 197
[ERROR] :  3   Foundation                          0x000000010ea18f05 -[NSString substringFromIndex:] + 126
[ERROR] :  4   TestDialog                          0x000000010cf4a8b7 +[TiUtils loadAppResource:] + 279
[ERROR] :  5   TestDialog                          0x000000010d079704 -[LocalProtocolHandler startLoading] + 404
[ERROR] :  6   CFNetwork                           0x00000001119f6abc ___ZN16CFURLProtocol_NS28_protocolInterface_startLoadEPK20_CFCachedURLResponse_block_invoke + 309
[ERROR] :  7   libdispatch.dylib                   0x00000001184362b5 _dispatch_client_callout + 8
[ERROR] :  8   libdispatch.dylib                   0x000000011843b565 _dispatch_block_invoke_direct + 324
[ERROR] :  9   CFNetwork                           0x000000011196ae74 _ZN19RunloopBlockContext13_invoke_blockEPKvPv + 24
[ERROR] :  10  CoreFoundation                      0x00000001150df3a8 CFArrayApplyFunction + 72
[ERROR] :  11  CFNetwork                           0x000000011196ad4a _ZN19RunloopBlockContext7performEv + 132
[ERROR] :  12  CFNetwork                           0x000000011196abe8 _ZN17MultiplexerSource7performEv + 282
[ERROR] :  13  CFNetwork                           0x000000011196aa1b _ZN17MultiplexerSource8_performEPv + 65
[ERROR] :  14  CoreFoundation                      0x0000000115134231 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
[ERROR] :  15  CoreFoundation                      0x00000001151d3e41 __CFRunLoopDoSource0 + 81
[ERROR] :  16  CoreFoundation                      0x0000000115118b49 __CFRunLoopDoSources0 + 185
[ERROR] :  17  CoreFoundation                      0x000000011511812f __CFRunLoopRun + 1279
[ERROR] :  18  CoreFoundation                      0x00000001151179b9 CFRunLoopRunSpecific + 409
[ERROR] :  19  CFNetwork                           0x0000000111b74fdc _ZL27_privateRunloopEmulationSetPv + 250
[ERROR] :  20  libsystem_pthread.dylib             0x00000001188f66c1 _pthread_body + 340
[ERROR] :  21  libsystem_pthread.dylib             0x00000001188f656d _pthread_body + 0
[ERROR] :  22  libsystem_pthread.dylib             0x00000001188f5c5d thread_start + 13

Comments

No comments

JSON Source