hust-marx / firebreath

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

Plugin crashed when moving between 2 HTML pages embeding it #149

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build the example plugin
2. Create a copy of test.html (i.e. test2.html)
3. Open test.html, wait for tests to passed and then change to test2.html

What is the expected output? What do you see instead?
Expected: All plugin tests passed
Actual: Plugin crashed:
Assertion failed (!PluginModuleInitialized), function NpapiPluginModule

What version of FireBreath are you using? On what operating system and
browsers?
Mac OS X 10.6.3, Safari 4.0.5, FB 1.4rc1

What version of your compiler or IDE are you using?
Xcode 3.2.2 64 bit

Please provide any additional information below.
It seems pretty obvious that this bug is related to the latest change in 
NpapiPluginModule "Added assert that globalinit not called twice"

Original issue reported on code.google.com by ron...@gmail.com on 22 Feb 2011 at 7:53

GoogleCodeExporter commented 9 years ago
Can you verify that GlobalPluginDeinitialize is called between these two pages? 
 It seems that Safari isn't following the spec and unloading the module after 
calling NP_Shutdown.  I want to make sure that at least the lifecycle is being 
honored, though.

Original comment by richarda...@gmail.com on 22 Feb 2011 at 4:36

GoogleCodeExporter commented 9 years ago
GlobalPluginDeinitialize is being called between these two pages.

Original comment by ron...@gmail.com on 23 Feb 2011 at 7:48

GoogleCodeExporter commented 9 years ago
Fixed in 1.4 and 1.5

Original comment by taxilian on 23 Feb 2011 at 5:50