Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26552] Windows: Application fails to open HTML files and links don't return anything

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 7.5.0
Fix Version/sn/a
Componentsn/a
Labelsregression
ReporterSamir Mohammed
AssigneeKota Iguchi
Created2018-11-13T14:40:35.000+0000
Updated2018-11-13T14:40:54.000+0000

Description

*app.js*
var win1 = Ti.UI.createWindow({
    title: 'string',
    backgroundColor: '#fff',
    layout: 'vertical'
});
 
 
var file = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'test2.html');
var markup = file.read ().toString ();
 
var wv1 = Ti.UI.createWebView ({
    top: 0,
    left: 0,
    right: 0,
    bottom: 0,
    scalesPagesToFit: true, 
    //lightTouchEnabled: false, 
    enableZoomControls: false,
    html: markup
});
 
win1.add (wv1);
 
win1.open ();
*test2.html*
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<meta name="viewport" content="width=320, user-scalable=no, target-densitydpi=device-dpi"/>
</head>
<body>
<div>
 
<script type="text/javascript">
function clickhandler (msg) {
   alert (msg);
}
</script>
 
<p>Test 1:</p>
<a href="#" onclick="clickhandler ('1'); return false;">XXXX XXXXX XXXXX XX<br />
XXX XXX<br />
XXXXXXX, XX XXXXX</a>
 
<p>Test 2:</p>
<a href="#" onclick="clickhandler ('2'); return false;">2109 Avent Ferry Rd<br />
Ste 110<br />
Raleigh, NC 27606</a>
 
<p>Test 3:</p>
<a href="#" onclick="clickhandler ('3'); return false;">2109 Avent Ferry Rd, Ste 110<br />
Raleigh, NC 27606</a>
 
<p>Test 4:</p>
<a href="#" onclick="clickhandler ('4'); return false;">line 1 line 1 line 1 line 1<br />
line 2 line 2 line 2 line 2<br />
line 3 line 3 line 3 line 3</a>
 
</div></body></html>
*Expected behaviour* Application should open and all links should work *Current behaviour* Application closes on launch and links do not work on older SDK version 7.4.1.GA

Comments

No comments

JSON Source