public MainWindow() { var webSession = WebCore.CreateWebSession(SessionPath, new WebPreferences() { Javascript = true, AllowInsecureContent = true, WebAudio = true, Plugins = true }); InitializeComponent(); Browser.WebSession = webSession; hotKey = new GlobalHotKey(this); }