Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24399] Android: Ti.UI.WebView.html setter does not work

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-03-09T19:45:33.000+0000
Affected Version/sRelease 6.0.2
Fix Version/sRelease 6.0.3
ComponentsAndroid
Labelsmerge-6.0.3, regression
ReporterJong Eun Lee
AssigneeGary Mathews
Created2017-02-13T06:25:38.000+0000
Updated2017-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.

Comments

  1. Sharif AbuDarda 2017-02-13

    Hello, I can reproduce the issue in Android 6.0.1 with SDK 6.0.1.GA.
  2. Hans Knöchel 2017-02-16

    Does this happen on pre 6.0.0 as well? If not, we should schedule it for a 6.0.x patch release.
  3. Jong Eun Lee 2017-02-21

    On pre 6.0.0, this doesn't happen. setHtml, and .html are work properly on 5.5.1.GA.
  4. Gary Mathews 2017-03-01

    master: https://github.com/appcelerator/titanium_mobile/pull/8854
  5. Gary Mathews 2017-03-09

    6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8871
  6. Abir Mukherjee 2017-03-09

    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.

JSON Source