[TIMOB-24399] Android: Ti.UI.WebView.html setter does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-03-09T19:45:33.000+0000 |
Affected Version/s | Release 6.0.2 |
Fix Version/s | Release 6.0.3 |
Components | Android |
Labels | merge-6.0.3, regression |
Reporter | Jong Eun Lee |
Assignee | Gary Mathews |
Created | 2017-02-13T06:25:38.000+0000 |
Updated | 2017-03-10T02:17:30.000+0000 |
Description
On Ti SDK 6.0.1.GA and Android,
var win = Ti.UI.createWindow();
var webView = Ti.UI.createWebView();
win.add(webView);
webView.html = "<h1>hello</h1>"; //doesn'work . Just blank page.
// webView.setHtml("<h1>hello</h1>"); //works properly
win.open();
On iOS both are work.
Hello, I can reproduce the issue in Android 6.0.1 with SDK 6.0.1.GA.
Does this happen on pre 6.0.0 as well? If not, we should schedule it for a 6.0.x patch release.
On pre 6.0.0, this doesn't happen. setHtml, and .html are work properly on 5.5.1.GA.
master: https://github.com/appcelerator/titanium_mobile/pull/8854
6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8871
FR Passed with this environment: NPM Version: 2.15.9 Node Version: 4.5.0 Mac OS: 10.12.3 Appc CLI: 6.1.0 Appc CLI NPM: 4.2.8 Appcelerator Studio, build: 4.8.1.201612050850 Android Device 6.0.1 and 7.1 I tested this with SDK 6.0.2 and reproduced the issue. The fix is validated with this PR. I am able to see "hello" when installing the app on Android 6 and 7 devices. This was tested on both master (6.1.0) and 6.0.3. Verified that edits are seen in installed SDK 6.0.3.v20170309114200.