[TIMOB-3157] iOS: app:// URL specifier may cause crashes
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2017-05-02T20:12:07.000+0000 |
| Affected Version/s | Release 3.0.0 |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | core |
| Reporter | Stephen Tramer |
| Assignee | Ingo Muschenetz |
| Created | 2011-04-15T03:38:17.000+0000 |
| Updated | 2017-05-02T21:19:07.000+0000 |
Description
Can be viewed by loading the following HTML into a window with the KS movie.mp4 resource present in the appropriate location:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="../test.css" />
<script type="text/javascript" src="../jquery-1.3.2.js"></script>
<meta name="format-detection" content="telephone=no"/>
</head>
<body id="mybody" style="height:500px;background-color:#999;background-image:url(../images/bg.png)">
<video src="app://movie.mp4" autoplay controls />
</body>
</html>
Causes a crash in +[TiUtils loadAppResource:] via:
'NSRangeException', reason: '*** -[NSCFString
characterAtIndex:]: Range or index out of bounds'
Valid with SDK 2.2.0.014b86f. Test case:
var win = Ti.UI.createWindow(); win.add(Ti.UI.createWebView({ html:'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head></head><body id="mybody" style="height:500px;background-color:#999;background-image:url(../images/bg.png)"><video src="app://movie.mp4" autoplay controls /> </body></html>' })); win.open();Resolving ticket as Invalid as there is now a new version of Kitchen Sink available and we no longer support the version which relates to this ticket.