Esempio n. 1
0
		internal virtual void OnWebHostSecurityChanged (object sender, SecurityChangedEventArgs e)
		{
		}
Esempio n. 2
0
		public void OnSecurityChange (nsIWebProgress progress, nsIRequest request, uint status)
		{
			SecurityChangedEventHandler eh = (SecurityChangedEventHandler) (owner.Events[WebBrowser.SecurityChangedEvent]);
			if (eh != null) {
				SecurityLevel state = SecurityLevel.Insecure;
				switch (status) {
				case 4: 
					state = SecurityLevel.Insecure;
					break;
				case 1:
					state = SecurityLevel.Mixed;
					break;
				case 2:
					state = SecurityLevel.Secure;
					break;
				}

				SecurityChangedEventArgs e = new SecurityChangedEventArgs (state);
				eh (this, e);
			}
		}