--
---
You received this message because you are subscribed to the Google Groups "firebreath-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebreath-de...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
How would you handle Microsoft's new default browser in Windows 10, Microsoft Edge, since it does not support ActiveX, NPAPI or Native Messaging?
--
---
You received this message because you are subscribed to the Google Groups "firebreath-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebreath-de...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hello Richard,
today I have switched back the focus to Chrome. :-)
Thanks to a colleague of mine who know Javascript much better than me, we managed to build a web page using the extension and loading the plugin.
I am not entirely sure we completely did "the right thing" but, above all, I don't know how to go on after that, because I have no idea how to "interact" with the plugin (getting/setting properties, invoking methods).
Looking at the extension's code, the FireWyrmJS function seems to be central to the communication, but I have no idea of how to use it from the page (I have the idea that it should not directly called).
This is the code we wrote so far:
var WyrmHoleObj = null;
function pageLoaded() {
CreateWyrmHole();
window.addEventListener('message', function (e) {
console.log("event listener: " + JSON.stringify(e));
// {"data":{"plugin":"Reitek@PluginSIP.com","status":"success","source":"host","port":"FireWyrmPort1","ext":"bgpbojpjbgfpflclfjadeihjpjifclkm"}}
I made more experiments, this time using this code (I found it on pastebin and I adapted it):
window.postMessage({firebreath: 'Reitek S.p.A.', callback: 'onMyPluginLoaded'}, "*");
window.onMyPluginLoaded = function(firebreath) {
firebreath.wyrmhole.create().then(function(transport) {
return transport.loadPlugin('application/x-pluginSIP');
}).then(function(transport) {
var wyrm = new FireWyrmJS(transport);
return wyrm.create('application/x-pluginSIP');
}).then(function(plugin) {
}
and it now executes more than before, but it seems that there is a problem during communication between the extension and the native messaging host.
I have added a log file to the native messaging host in order to see what is received from the extension and what it sent to it, and this is what happens:
12/06/2015 - 18:17:29.291 Starting FireWyrm native message host
12/06/2015 - 18:17:29.293 Starting read loop
12/06/2015 - 18:17:29.293 Starting main message loop
12/06/2015 - 18:17:29.294 read len: 94
12/06/2015 - 18:17:29.294 read data: {"cmd":"create","mimetype":"application/x-pluginSIP","ext":"bgpbojpjbgfpflclfjadeihjpjifclkm"}
12/06/2015 - 18:17:29.305 writing length: 52
12/06/2015 - 18:17:29.305 writing data: {"plugin":"Reitek@PluginSIP.com","status":"success"}
I imagined you were very busy while you were absent from both the group and the IRC channel.
FB2 on Chrome in our experience so far seems quite stable, on Firefox it seems there is only an issue with plugin destruction because hitting F5 it crashes, on IE instead there are the problems I told you last time.
Since your objective is to make the usage across different browsers consistent, I imagine in the not too distant future there will be changes to the NPAPI part in order to use promises there too, right?
Best regards
Fabrizio
You indicated you wanted some help. We chatted on Friday. I have been reading through, building, learning promise and trying to find EchoTestPlugin.
On Sep 7, 2015, at 5:27 PM, Charles Burfoot <ch...@burfoots.com> wrote:
You indicated you wanted some help. We chatted on Friday. I have been reading through, building, learning promise and trying to find EchoTestPlugin.I've gotten refactor from Git but I don't find EchoTestPlugin to build and document.
Base on the post I modified the FBControl.htm to have the following onload() {