We are trying to use full-featured XBAP as a browser-independent bridge between Javascript and COM..NET 4, it allows you to create XBAP scripts through BrowserInteropHelper.HostScript, and it really works very well in Internet Explorer. The process is approximately equal to:
- Script creates an iframe and sets src to something like "../Xbaps/InteropXbap? [XbapInstanceNumber]".
- After loading XBAP, it calls BrowserInteropHelper.HostScript.Xbap.registerImplementation ([xbapInstanceNumber], [interop object]).
window.Xbap is just a JS object for handling callbacks from XBAP.
In IE, it makes a callback in Javascript, and a script can have fun calling methods on an interop object.
In Firefox 3.6.3, BrowserInteropHelper.HostScript is NULL, so any attempt to use it throws runtime binding exceptions.
The WPF plugin for Firefox is installed and is loaded by XBAP. MS states that the .NET 4 XBAP script works with all supported versions of IE and Firefox.
Any idea what is going on here?
Thank!
source
share