Closed Bug 67933 Opened 24 years ago Closed 23 years ago

null plugin registered twice

Categories

(Core Graveyard :: Plug-ins, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9

People

(Reporter: dbaron, Assigned: peterlubczynski-bugs)

Details

(Whiteboard: [seeking reviews])

Attachments

(4 files)

A checkin sometime between 2001-02-06 16:45 and 17:17 (based on tinderbox logs)
caused the null plugin registration message to show up twice:


********** Got plugins path: /builds/seamonkey/obj/debug/dist/bin/plugins
IsPluginFile(/builds/seamonkey/obj/debug/modules/plugin/default/unix/libnullplugin.so)
LoadPlugin()
/builds/seamonkey/obj/debug/modules/plugin/default/unix/libnullplugin.so
returned 81b28e0
GetMIMEDescription() returned "*:.*:All types"
Registering plugin 0 for: "*","All types",".*"
********** Got plugins path: /builds/seamonkey/obj/debug/dist/bin/plugins
IsPluginFile(/builds/seamonkey/obj/debug/modules/plugin/default/unix/libnullplugin.so)
LoadPlugin()
/builds/seamonkey/obj/debug/modules/plugin/default/unix/libnullplugin.so
returned 81b28e0
GetMIMEDescription() returned "*:.*:All types"
Registering plugin 0 for: "*","All types",".*"


This seems wrong -- like we're doing extra work.  I suspect the checkins by
peterlubczynski@netscape.com to nsPluginHostImpl.cpp and nsPluginsDir.h.
The code I checked in recently is XP_WIN only. This is an old problem. Notice 
about:plugins shows two Default Plugins. I don't believe it's registered twice 
on Windows or Mac.
This is not limited to the null plugin. See same behavior after installing the
Java 2 plugin from
ftp://ftp.netscape.com/pub/netscape6/english/6.0/unix/linux22/xpi/jre.xpi

Also, when you do "about:plugins", Mozilla is running through the "Registering
plugin # for:" code another 6 times.

BUILD ID: Mozilla 0.8 on Linux
Keywords: helpwanted
Target Milestone: --- → mozilla0.9
Yeah, I figure out how to use gdb.

Working on this. Looks like mPluginsLoaded = PR_TRUE was not being set ouside 
the #IFDEF. Patch on it's way. Setting milestone.
Status: NEW → ASSIGNED
Keywords: patch
Target Milestone: mozilla0.9 → mozilla0.8.1
Keywords: helpwanted
David/Andrei reviews?
Peter, why do you do mPluginsLoaded = PR_TRUE; separately for the Mac? Isn't it 
enough that you put it after all ifdef's once?
That probably is true, but the Mac doesn't have the problem. Will try that 
approach on Mac.
Target Milestone: mozilla0.8.1 → mozilla0.9
Looks like you attached not exactly what you intended.
Whiteboard: [seeking reviews]
[s]r=attinasi
Peter, would please attach cvs diff -u ? My line numbering is screwed so I 
cannot be sure I'm looking at the right place.
Attached patch a unified patchSplinter Review
ra=av
Patch checked in. 

new revision: 1.212; previous revision: 1.211
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
verified on linux 0412, null plugin registers only once.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: