Exemplo n.º 1
0
		public void WillPerformClientRedirect(WebKit.WebView sender, Foundation.NSUrl toUrl, double secondsDelay, Foundation.NSDate fireDate, WebKit.WebFrame forFrame)
		{
			var url = sender.MainFrameUrl;

			if (!Authenticator.HasCompleted) {
				Uri uri;
				if (Uri.TryCreate(url, UriKind.Absolute, out uri)) {
					if (Authenticator.CheckUrl(uri, GetCookies(url))) {
						forFrame.StopLoading();
						return;
					}
				}
			} else {
				forFrame.StopLoading();
			}
		}