+2008-11-08 Andreia Gaita <shana@jitted.com>
+
+ * Mono.WebBrowser/Manager.cs: Use new webkit backend if requested. If it
+ doesn't load or blows up, revert to default gecko backend.
+
2008-10-23 Andreia Gaita <shana@jitted.com>
* Mono.Mozilla/DOM/Node.cs,
//
using System;
+using System.Reflection;
namespace Mono.WebBrowser
{
{
string browserEngine = Environment.GetEnvironmentVariable ("MONO_BROWSER_ENGINE");
+#if NET_2_0
+ if (browserEngine == "webkit") {
+ Assembly ass;
+ try {
+ ass = Assembly.LoadWithPartialName ("mono-webkit");
+ IWebBrowser ret = (IWebBrowser) ass.CreateInstance ("Mono.WebKit.WebBrowser");
+ return ret;
+ } catch {
+ //throw new Exception (Mono.WebBrowser.Exception.ErrorCodes.EngineNotSupported, browserEngine);
+ browserEngine = null;
+ }
+ }
+#endif
if (browserEngine == null || browserEngine == "mozilla")
return new Mono.Mozilla.WebBrowser (platform);
-
throw new Exception (Mono.WebBrowser.Exception.ErrorCodes.EngineNotSupported, browserEngine);
}