[TIMOB-27348] Android: WebView.stopLoading() is not functional when triggered by events
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-10-03T14:05:43.000+0000 |
Affected Version/s | Release 8.1.0 |
Fix Version/s | Release 8.3.0 |
Components | Android |
Labels | android, engSchedule |
Reporter | Gary Mathews |
Assignee | Gary Mathews |
Created | 2019-08-22T18:07:04.000+0000 |
Updated | 2019-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.
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
There's an 8_1_X PR, so this may potentially be a 8.1.2 fixVersion...
FR passed.
Bug fixed in SDK version 8.3.0.v20191002165629