Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27348] Android: WebView.stopLoading() is not functional when triggered by events

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2019-10-03T14:05:43.000+0000
Affected Version/sRelease 8.1.0
Fix Version/sRelease 8.3.0
ComponentsAndroid
Labelsandroid, engSchedule
ReporterGary Mathews
AssigneeGary Mathews
Created2019-08-22T18:07:04.000+0000
Updated2019-10-03T14:05:43.000+0000

Description

Titanium.WebView.stopLoading() has no effect when called from events. *TEST CASE*
const win = Ti.UI.createWindow();
const webView = Ti.UI.createWebView({ url: 'https://google.com/' });

// prevent page from loading.
webView.addEventListener('beforeload', e => {
    webView.stopLoading();
});

win.add(webView);
win.open();
*EXPECTED* - Page is prevented from load, displaying a blank screen. *ACTUAL* - Page loads.

Comments

  1. Gary Mathews 2019-08-22

    master: https://github.com/appcelerator/titanium_mobile/pull/11169 8_1_X: https://github.com/appcelerator/titanium_mobile/pull/11171 8_3_X: https://github.com/appcelerator/titanium_mobile/pull/11170
  2. Christopher Williams 2019-08-30

    There's an 8_1_X PR, so this may potentially be a 8.1.2 fixVersion...
  3. Satyam Sekhri 2019-09-13

    FR passed.
  4. Ebenezer Boateng 2019-10-03

    Bug fixed in SDK version 8.3.0.v20191002165629

JSON Source