[Mono-osx] Using native Cocoa WebKit for System.Windows.Forms.WebBrowser on Mac OS X

Alex Shulgin alexander.shulgin at yessoftware.com
Wed Sep 9 09:35:17 EDT 2009


Alex Shulgin wrote:
> Hi,
> 
> Recently I've been struggling to bring up native (Cocoa-based) WebKit as 
> WinForms WebBrowser control on OS X.
> 
[snip]
> 
> * After that I've noticed that the actual browser engine to use is 
> chosen in Mono.WebBrowser/Manager.cs.  I've patched it to use alternate 
> implementation on Mac OS by default.  See Mono.WebBrowser.Manager.patch.
> 
> * Finally, I've added mono-cocoa-webkit.dll modeled after 
> mono-webkit.dll to provide minimum required functionality: create WebKit 
> & navigate to URL.

UPDATE: in mono-cocoa-webkit module, WebBrowser.cs: a call to 
NSThread.MakeMultithreaded() causes memory corruption and random crashes 
on Mac OS X 10.6 Snow Leopard.

Turned out, it is not really needed so can be safely removed.

--
Regards,
Alex



More information about the Mono-osx mailing list