xamarin/Xamarin.Forms

[iOS] Setting WebView Source to null/empty string isn't consistent between all three platforms

Aperta

#3317 aperta il 16 lug 2018

 (2 commenti) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
a/webviewe/2 :clock2:help wantedinactivep/iOS 🍎t/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

If a WebView source is set to a valid uri and then set back to null it just stays on the uri.

Steps to Reproduce

  1. WebView.Source = "http://www.xamarin.com"
  2. let it render
  3. WebView.source = null

Expected Behavior

WebView should now be blank

Actual Behavior

WebView still shows xamarin.com

Basic Information

  • Version with issue: 3.1 -Android: does nothing when set to null and clears out when set to empty -iOS: throws an exception when set to empty -UWP: does nothing when set to null or an empty string

Guida contributor