hust-marx / firebreath

Automatically exported from code.google.com/p/firebreath
0 stars 0 forks source link

linux plugin working incorrectly #169

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have used firebreath to generate a new project called ImageSlider. I have 
successfully build it and copy the so file to /usr/lib/firefox-addon/plugins/. 
I also write a test.html and use firefox to open the html file. You can see the 
log below, when the plugin successfully create, the NPP_Destroy was called and 
the plugin is shutdown. I don't know why this happend cause I just follow the 
document to create this plugin. Can anyone help me about this? Thanks.

08-23-12 15:05:20,705 [3078666656] INFO FireBreath <> - 
/home/dms/firebreath-dev/projects/ImageSlider/ImageSlider.cpp:25 - static void 
ImageSlider::StaticInitialize() - Static Initialize called!

08-23-12 15:05:20,706 [3078666656] INFO FireBreath <> - 
/home/dms/firebreath-dev/src/PluginAuto/X11/np_x11main.cpp:44 - NPError 
NP_Initialize(NPNetscapeFuncs*, NPPluginFuncs*) - Initialization done
08-23-12 15:05:20,708 [3078666656] INFO FireBreath <> - 
/home/dms/firebreath-dev/src/NpapiCore/NpapiPluginModule_NPP.cpp:149 - static 
NPError FB::Npapi::NpapiPluginModule::NPP_New(char*, NPP_t*, uint16_t, int16_t, 
char**, char**, NPSavedData*) - NPP_New: 0xacc5a68c
08-23-12 15:05:20,710 [3078666656] INFO FireBreath <> - 
/home/dms/firebreath-dev/src/PluginCore/PluginCore.cpp:40 - static void 
FB::PluginCore::setPlatform(const std::string&, const std::string&) - os: 
0xbfce19c0; browser: NPAPI
08-23-12 15:05:20,775 [3078666656] INFO FireBreath <> - 
/home/dms/firebreath-dev/src/PluginAuto/X11/PluginWindowX11.cpp:50 - 
FB::PluginWindowX11::PluginWindowX11(const FB::WindowContextX11&) - Creating 
new PluginWindowX11
08-23-12 15:05:20,777 [3078666656] INFO FireBreath <> - 
/home/dms/firebreath-dev/projects/ImageSlider/ImageSlider.cpp:123 - virtual 
bool ImageSlider::onWindowAttached(FB::AttachedEvent*, FB::PluginWindow*) - 
window attached, set window pointer!

08-23-12 15:05:20,790 [3078666656] INFO FireBreath <> - 
/home/dms/firebreath-dev/src/NpapiCore/NpapiPluginModule_NPP.cpp:207 - static 
NPError FB::Npapi::NpapiPluginModule::NPP_Destroy(NPP_t*, NPSavedData**) - 
NPP_Destroy: 0xacc5a68c
08-23-12 15:05:20,792 [3078666656] INFO FireBreath <> - 
/home/dms/firebreath-dev/projects/ImageSlider/ImageSlider.cpp:133 - virtual 
bool ImageSlider::onWindowDetached(FB::DetachedEvent*, FB::PluginWindow*) - 
window detached, set window pointer to NULL!

Original issue reported on code.google.com by dory....@gmail.com on 23 Aug 2012 at 7:15