문제

I have written a multiplat addon which has been tested under both Chrome and Firefox. The testing was done using the default html file Firebreath generates, installing the DLL via regsvr32.

I would like to package this addon so that Firefox users can install it through the addon-manager through an XPI and use it in my extension. I have accomplished this in Chrome easily by packaging the DLL, backgroundpage.html into the CRX.

My understanding is that the Firebreath DLL has to be injected into the DOM of the XUL (browserOverlay.xul) which in turn can use the JS (borwserOverlay.js) to call the functions from the DLL.

I am unclear how to inject the DLL itself within the XUL, so far I have tried

<html:object id="myPlugin" type="application/x-betaplugin" width="300" height="300">
</html:object>

Where the DLL is called npBetaplugin.dll within the components directory if the XPI.

도움이 되었습니까?

해결책

This way works for me:

<vbox style="height:0;">
    <html:embed type="application/x-my-plugin" id="my-plugin" style="height:0;"/>
</vbox>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top