Closed Bug 442666 Opened 16 years ago Closed 16 years ago

FireFox 3.0 will create two plugin objects when only one is expected (using javascript)

Categories

(Core Graveyard :: Plug-ins, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 438830

People

(Reporter: mange72, Unassigned)

References

()

Details

User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.9) Gecko/2008052906 Firefox/3.0 The idea is to declare the scriptable plugin object when used. A "place holder" element is declared in the web page (id="Object_Location") and will be replaced with the plugin object using Javascript. This works with Netscape/Mozilla and earlier FireFox, but not FireFix 3.0. The problem is that we get two instances of the plugin object. The first object is created when expected, but during the script execution the first object is deleted and a second object created. Reproducible: Always Steps to Reproduce: 1. Install FireFox 3.0 2. Install plugin http://www.islite.com/ff3/iidsetup.exe 3. Verify installation, open about:plugins 4. Open http://www.islite.com/ff3/test.html 5. Click the 'Do Action' to start the Javascript execution Actual Results: 1. FireFox 3.0 installed 2. Net iD plugin installed 3. Net iD plugin in list 4. You will see a button with 'Do Action' and two links 5. Dialog box is shown. You can't push any button and if trying to close will result in FireFox crash. Expected Results: 1-4: As expected 5. You should at least be able to push Cancel button The reason for failure, is that the plugin object is created, but when the modal dialog box is shown will the plugin object be created and a new instance of the object is created. The follwing NPP calls are made: <Plugin object creation> 000.000 NPP_GetJavaClass ... 000.000 NPP_GetJavaClass ... FAILED 000.015 NPP_Initialize 000.015 NPP_Initialize - Plugin version 0.13 000.015 NPP_Initialize - Navigator version 0.19 000.015 NPP_New ... 000.562 NPP_New ... (0) 000.562 NPP_SetWindow ... 000.562 NPP_SetWindow ... (0) 000.562 NPP_GetValue 15 ... 000.562 NPP_GetValue ... (9) 000.562 NPP_GetValue 11 ... 000.562 NPP_GetValue ... (0) 000.562 NPP_GetValue 10 ... 000.562 NPP_GetValue ... (0) 000.562 NPP_SetWindow ... 000.562 NPP_SetWindow ... (0) 000.562 NPP_GetValue 15 ... 000.562 NPP_GetValue ... (9) 000.562 NPP_GetValue 11 ... 000.562 NPP_GetValue ... (0) 000.562 NPP_GetValue 10 ... 000.562 NPP_GetValue ... (0) <First script function called> 000.562 Web - SetProperty 'DataToBeSigned' ... 000.562 Web - SetProperty 'DataToBeSigned' ... done <Second script function called> 000.562 Web - Invoke Sign < Destroy start > 000.593 NPP_SetWindow ... 000.593 NPP_SetWindow ... (0) 000.593 NPP_Destroy ... 000.843 NPP_Destroy ... (0) 000.843 NPP_Shutdown <Next plugin object creation> 000.843 NPP_GetJavaClass ... 000.843 NPP_GetJavaClass ... FAILED 000.843 NPP_Initialize 000.843 NPP_Initialize - Plugin version 0.13 000.843 NPP_Initialize - Navigator version 0.19 000.843 NPP_New ... 001.375 NPP_New ... (0) 001.375 NPP_SetWindow ... 001.375 NPP_SetWindow ... (0) 001.375 NPP_GetValue 15 ... 001.375 NPP_GetValue ... (9) 001.375 NPP_GetValue 11 ... 001.375 NPP_GetValue ... (0) 001.375 NPP_GetValue 10 ... 001.375 NPP_GetValue ... (0) 001.375 NPP_SetWindow ... 001.375 NPP_SetWindow ... (0)
Component: Extension Compatibility → Plug-ins
Product: Firefox → Core
QA Contact: extension.compatibility → plugins
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.