event log: Disable plugins in WebView. Fixes #1638

This commit is contained in:
Hylke Bons 2016-01-26 03:26:13 +00:00
parent ca93af9b66
commit a5017b45e1
2 changed files with 3 additions and 0 deletions

View file

@ -70,6 +70,7 @@ namespace SparkleShare {
new Gdk.RGBA () { Red = 1, Green = 1, Blue=1, Alpha = 1 });
this.web_view = new WebView () { Editable = false };
this.web_view.Settings.EnablePlugins = false;
this.web_view.NavigationRequested += WebViewNavigationRequested;
this.scrolled_window.Add (this.web_view);

View file

@ -76,6 +76,8 @@ namespace SparkleShare {
new SizeF (ContentView.Frame.Width, ContentView.Frame.Height - 39))
};
this.web_view.Preferences.PlugInsEnabled = false;
this.cover = new NSBox () {
Frame = new RectangleF (
new PointF (-1, -1),