This is the JavaScript code in the Chrome background.html.
var plugin = document.getElementById("reverbPlugin");
if (!plugin.startBackgroundThread()) {
console.log("Failed to start background thread: " + plugin.getErrorMessage());
return;
}
Here is the HTML part of it.
<embed type="application/x-reverbbrowserplugin" id="reverbPlugin"></embed>
The exception I'm getting on the JavaScript code is, TypeError - property_not_function
.
My library (the BrowserPlugin.plugin
file created after compiling the Firebreath project) is a non-fat binary for x86_64 arch on Mac OS X Lion.
Any ideas on why the function is not found by JavaScript? Am I missing something obvious? (Let me know any more information is needed).
Thanks!
PS. I had a similar problem for Firefox plugin using JS-Ctypes, but was solved. I tried the similar approach on this one and tried different function names. Didn't work.