FB 2.0 Plugin

384 views
Skip to first unread message

Tuấn Trần

unread,
Jan 4, 2016, 3:47:01 AM1/4/16
to firebreath-dev
Hi, 
I want to use FB 2.0 to build Plugin. I have read document in http://www.firebreath.org/display/fb2/FireBreath+2.0+Home https://groups.google.com/forum/#!topic/firebreath-dev/qfcowZkfPz0 and https://groups.google.com/forum/#!topic/firebreath-dev/ZsUArDXOS6o BUT I have some problems not understand. Can you help me answer its?
1. What's current protocols FB. 2.0 using? What's FireWyrm?
2. How to build FB 2.0? I have try with Visual Studio 2010, Cmake 2.8, Python 2.7 but I get an error like image in link: https://drive.google.com/file/d/0B6Gi2ZqB3uPFX1V6V29NTHAyM0E/view?usp=sharing => can you give me tutorial?
3. Where's I can get sample code JavaScripts call function in FB 2.0 Plugin?
Thanks!

Richard Bateman

unread,
Jan 4, 2016, 11:29:58 AM1/4/16
to FireBreath Dev Group

1) FireBreath 2.0 supports NPAPI, ActiveX, and FireWyrm.  FireWyrm is a protocol that was created in conjunction with FireBreath 2.0 which works over any asynchronous string/JSON messaging protocol -- such as Native Messaging.

2) You will need Visual Studio 2013 or later and CMake 2.8 or later.  Python has never been a requirement except to run fbgen.  You'll need to fbgen a new project to start with or build EchoTestPlugin or FBTestPlugin since a FireBreath 1.x plugin will need to be changed to build with FireBreath 2.0, they are not source compatible.

3) https://groups.google.com/forum/#!searchin/firebreath-dev/new$20FireWyrmJS/firebreath-dev/FSeWz9yqW7k/KBxsHLWzBAAJ is probably the best source for sample code so far, unless someone else has a better example.

Richard

--

---
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.

Hoa Vinh

unread,
Jan 4, 2016, 12:43:36 PM1/4/16
to firebreath-dev
Thanks Richard,
1) FireBreath 2.0 supports NPAPI, ActiveX, and FireWyrm.  FireWyrm is a protocol that was created in conjunction with FireBreath 2.0 which works over any asynchronous string/JSON messaging protocol -- such as Native Messaging. 

=> FireWyrm is a protocols you created! So, Have document for this protocols?
=> FireWym such as Native Messaging => It need Chrome Extension?
Vào 23:29:58 UTC+7 Thứ Hai, ngày 04 tháng 1 năm 2016, Richard Bateman (taxilian) đã viết:

Hoa Vinh

unread,
Jan 4, 2016, 12:49:48 PM1/4/16
to firebreath-dev
 You'll need to fbgen a new project to start with or build EchoTestPlugin or FBTestPlugin since a FireBreath 1.x plugin will need to be changed to build with FireBreath 2.0, they are not source compatible.
=> I have downloaded FB 2.0 in https://github.com/firebreath/FireBreath/tree/2.0 => So, Have I change anything else?

Vào 15:47:01 UTC+7 Thứ Hai, ngày 04 tháng 1 năm 2016, Tuấn Trần đã viết:

Richard Bateman

unread,
Jan 4, 2016, 1:30:25 PM1/4/16
to FireBreath Dev Group

Documentation for FireWyrm is found here: https://github.com/firebreath/FireBreath/blob/2.0/src/FireWyrm/FireWyrm.h#L45 The reference implementation, which is used by the chrome extension generated by FireBreath 2, is here: https://github.com/gradecam/firewyrm-js

You don't really need to know any of the above to use it, but it could be useful to expand support.

The chrome extension source is found in the build directory after you build; you'll likely need to customize some of those files, which can be done by copying them to the folder "crx_template" under your project directory.  You are correct that it requires the extension to function.  

You can find a lot of information by searching the irc logs as well, incidentally.

Richard

Richard Bateman

unread,
Jan 4, 2016, 1:31:57 PM1/4/16
to FireBreath Dev Group

I do not understand the question.

Hoa Vinh

unread,
Jan 4, 2016, 11:10:53 PM1/4/16
to firebreath-dev
The chrome extension source is found in the build directory after you build; you'll likely need to customize some of those files, which can be done by copying them to the folder "crx_template" under your project directory.  You are correct that it requires the extension to function. 
=> Does FB auto install chrome extension? OR Installation Extension is separately? 
You will need Visual Studio 2013 or later and CMake 2.8 or later.
I have used VS2013, Cmake 3.1, win 7 64bit BUT I still get this error "does not appear to contain Cmakelist.txt " . And I does not change any thing in project FB 2.0 downloaded in  https://github.com/firebreath/FireBreath/tree/2.0 => Can you help me fix this error?
Vào 01:30:25 UTC+7 Thứ Ba, ngày 05 tháng 1 năm 2016, Richard Bateman (taxilian) đã viết:

Richard Bateman

unread,
Jan 5, 2016, 12:21:11 AM1/5/16
to FireBreath Dev Group

The installer has been updated to attempt to install the extension automatically, but Chrome must be restarted for that to work.  Also, the extension has to be on the Chrome app store for any of this to work.  We found that it is easier to install the extension from a web page using javascript which doesn't require restarting the browser.  see https://downloads.gradecam.com in Chrome for our install experience.

To prep with FireBreath2 you must provide the full path to the project you want to build, e.g:

prep2013 examples\EchoTestPlugin buildex

That will create buildex\EchoTestPlugin.sln

Does that help?

Richard

Hoa Vinh

unread,
Jan 5, 2016, 2:12:52 AM1/5/16
to firebreath-dev
Many thanks Richard,
I still 2 questions :)
1. 
The installer has been updated to attempt to install the extension automatically, but Chrome must be restarted for that to work.  Also, the extension has to be on the Chrome app store for any of this to work. 
=> It mean, I just register plugin with system by command line eg:"regsvr32 npPlugin.dll" => The extension installed automatically? OR What's I must do ?
2. 
To prep with FireBreath2 you must provide the full path to the project you want to build, e.g:
prep2013 examples\EchoTestPlugin buildex
That will create buildex\EchoTestPlugin.sln
=> If I want to create my project with other name eg: "FB 2 Plugin", ... I need rename the EchoTestPlugin? Is there any way?
Vào 12:21:11 UTC+7 Thứ Ba, ngày 05 tháng 1 năm 2016, Richard Bateman (taxilian) đã viết:

Richard Bateman

unread,
Jan 5, 2016, 11:20:21 AM1/5/16
to FireBreath Dev Group

1) I mean the generated WiX installer from the fbgen project.

2) if you want to create your own project then you should use fbgen to make a new one. I'd recommend building the example projects and get them working first before trying your own, since the documentation is still not fantastic.

Richard

Hoa Vinh

unread,
Jan 7, 2016, 11:38:36 PM1/7/16
to firebreath-dev
Thanks!
1) I mean the generated WiX installer from the fbgen project.
=> WiX installer is:  files FireWyrmNativeMessageHost.exe, npEchoTestPlugin.dll and folder NativeMessageExtension?

Vào 23:20:21 UTC+7 Thứ Ba, ngày 05 tháng 1 năm 2016, Richard Bateman (taxilian) đã viết:

Richard Bateman

unread,
Jan 8, 2016, 1:17:05 PM1/8/16
to FireBreath Dev Group

No, the wix installer is the installer which is generated with wix if you have wix installed. FireWyrmNativeMessageHost and npEchoTestPlugin.dll are both files that would be in that installer.  The extension you have to build and deploy to the chrome app store yourself.

Richard

Hoa Vinh

unread,
Jan 14, 2016, 11:56:42 AM1/14/16
to firebreath-dev
Hi,
 wix installer is https://www.firegiant.com/wix/tutorial/? With npEchoTestPlugin.dll I must use regsvr32 command line and with FireWyrmNativeMessageHost .exe I must do like this: https://developer.chrome.com/extensions/nativeMessaging#native-messaging-host-location?

Vào 01:17:05 UTC+7 Thứ Bảy, ngày 09 tháng 1 năm 2016, Richard Bateman (taxilian) đã viết:

Richard Bateman

unread,
Jan 14, 2016, 12:21:55 PM1/14/16
to FireBreath Dev Group

That's the same WiX technology, but you might find http://www.firebreath.org/display/documentation/WiX+Installer+Help (or google "firebreath wix") more helpful in utilizing the tools built into firebreath to help you create a wix installer.  The wix installer generated will perform the steps needed rather than doing a regsvr32 when you actually install and yes the native messaging host will have to be installed as described in that link -- but this is also taken care of by the generated WiX installer.

Look at the .wxs files in the generated (or example) plugin project.

Richard

Tuấn Trần

unread,
Jan 15, 2016, 11:51:02 PM1/15/16
to firebreath-dev
Thanks for your help!
I run test plugin FB 2.0 on chrome but it's not worked. I use JS code in http://pastebin.com/xRcC1Lz4 and I have not modified FireWyrmNativeMessageHost .exe, I have added NativeMessageExtension to chrome. When I call initPlugin() in http://pastebin.com/xRcC1Lz4 I see background console have connected Native host BUT FireWyrmNativeMessageHost .exe is crashed.
=> Can you help me check it, why FireWyrmNativeMessageHost .exe crashed?
Vào 00:21:55 UTC+7 Thứ Sáu, ngày 15 tháng 1 năm 2016, Richard Bateman (taxilian) đã viết:
Reply all
Reply to author
Forward
0 new messages