I managed to get my .NET plugin wrapper for Firefox working just now.  I can get a .NET UserControl to show up embedded in an HTML page through Firefox.

Next step - hook up the <object> tag to download arbitrary .NET assemblies and run them as UserControls (with security of course).

Check it out!

The only issue I’m dealing with right now is that there’s lots of flicker as the control is overwritten by Mozilla (for some reason).  It’s almost like I’m supposed to be clipping the paint messages, but I don’t know enough right now about the event system to solve this.  I worked around it by forcing an invalidation on a WM_PAINT message.

It could be related to the interaction between the UserControl and Mozilla itself- perhaps the control is leaking some messages to its parent that shouldn’t be being sent.

Read full post