I'm not sure whether or not anyone here has experience with using the type of taskpane you're talking about in InfoPath. I have worked on InfoPath taskpanes, but ones that were written in HTML, not with compiled code. What have you designed your taskpane to do?
I can say with a fair amount of confidence that custom taskpanes of either type are probably not going to work in browser forms.