Closed Bug 110768 Opened 23 years ago Closed 23 years ago

Mozilla does not check handles of loaded plugins

Categories

(Core Graveyard :: Plug-ins, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 110781

People

(Reporter: tenthumbs, Assigned: serhunt)

Details

If you symlink a plugin with another name, mozilla seems to notice; about:plugins shows only one instance. However, if you use a hard link, about:plugins shows two instances. On Linux, loading the same library (the same file system object, actually) by different names returns the same handle. I would think mozilla should check the handles from PR_LoadLibrary for duplicates.
I think the larger, XP problem here is that we need to do a deep comparison between plugins found at scan time. I need to open another bug and mark this depends.
Depends on: 110781
Sure. Just remember that symlinks and hard links are not XP so an XP solution may not work.
Right, but this check will happen at a completely different level than at the filesystem. We already have all the info about the name, description and mime handlers of a plugin cached in our registry from the last time we loaded. Before "picking up" (and therfore appears in about:plugins), this plugin information will be compared to find true plugin duplicates, not just based on filename.
Actually, this is really a dup of bug 110781. Should be fixed in tomorrow build. *** This bug has been marked as a duplicate of 110781 ***
Status: NEW → RESOLVED
Closed: 23 years ago
No longer depends on: 110781
Resolution: --- → DUPLICATE
mass duplicate verifications . For filtering purposes, pls use keywd "massdupverification"
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.