[TIMOB-17029] iOS: Webview: Loading spinner shows after orientation change even when webview has incorrect URL
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2017-06-20T23:19:27.000+0000 |
Affected Version/s | Release 3.3.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | qe-3.3.0 |
Reporter | Satyam Sekhri |
Assignee | Eric Merriman |
Created | 2014-05-27T05:23:45.000+0000 |
Updated | 2017-06-20T23:19:27.000+0000 |
Description
When a webview URL is an incorrect one and webview fires an error event. Then a loading spinner starts to show if the orientation of the device is changed afterwards.
This is not a regression. The issue exists atleast as back as 3.1.3.
Steps to Reproduce:
1. Run the application
2. Click on "Open Invalid URL" button
3. The webView error event fires and shows an alert. Dismiss the alert. No loading icon is shown.
4. Change the orientation of the device
Actual Result:
On orientation change, a loading spinner starts to show up
Expected Result:
The loading spinner should not show up after change of orientation
var win=Ti.UI.createWindow({backgroundColor:'white'});
var buttonInvalid = Ti.UI.createButton({
title:'Open Invalid URL',
top:'50',
});
buttonInvalid.addEventListener('click', function(){
var webView = Ti.UI.createWebView({
url:'http://xxx'
});
win.add(webView);
webView.addEventListener('error',function(){
alert("Unable to load webview");
});
});
win.add(buttonInvalid);
win.open();
I am unable to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131