Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 58337 on
Developer Community or GitHub if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
My Xamarin.Forms app contains a WebView and shows an error alert if the page fails to load for some reason. However, when a new page is requested (for instance by user tap) before the previous one is finished loading, "LoadFailed" method will be called on the UIWebView delegate with error code = "-999", which means "NSURLErrorCancelled". In that case I would prefer to ignore this error in my code, but "WebViewRenderer" handles it as all other errors and it makes impossible to figure out the cause of the error from "WebNavigatedEventArgs" argument in the cross-platform project.
Created attachment 23786 [details]
I am attaching a project that demonstrates this issue. When the WebView loading is cancelled in order to load the new page, the cancellation is being reported as a failure. However the WebNavigationResult enum does already include a Cancel option so it should be possible to report a more accurate result in this scenario. I am confirming the report so we can investigate further.
### Version Tests