Closed
Bug 7505
Opened 26 years ago
Closed 26 years ago
Search for old plug-in directory fails for Navigator 4.5
Categories
(Core Graveyard :: Plug-ins, defect, P3)
Tracking
(Not tracked)
VERIFIED
INVALID
M8
People
(Reporter: cohn, Assigned: serhunt)
Details
Attachments
(1 file)
|
4.10 KB,
text/plain
|
Details |
I assume this is just a temporary hack, but the code in
[modules/plugin/nglsrc/nsPluginsDirWin.cpp]nsPluginsDir::nsPluginsDir() doesn't
deal correctly with Navigator 4.5. Apparently the registry settings changed so
that you need to look for "Plugins Directory" in
HKEY_LOCAL_MACHINE\SOFTWARE\Netscape\Netscape Navigator\4.5 (en)\Main
Here's my fix:
// RC: start add for 4.5
result = ::RegOpenKeyEx(HKEY_LOCAL_MACHINE,
"Software\\Netscape\\Netscape Navigator\\4.5 (en)
\\Main",
0, KEY_READ, &keyloc);
if (result == ERROR_SUCCESS)
{
pathlen = sizeof(path);
result = ::RegQueryValueEx(keyloc, "Plugins Directory",
NULL, &type,
(LPBYTE)&path, &pathlen);
::RegCloseKey(keyloc);
}
else
{
// RC: end add for 4.5
result = ::RegOpenKeyEx(HKEY_CURRENT_USER,
"Software\\Netscape\\Netscape Navigator\\Main",
0, KEY_READ, &keyloc);
if (result == ERROR_SUCCESS)
{
pathlen = sizeof(path);
result = ::RegQueryValueEx(keyloc, "Install Directory",
NULL, &type, (LPBYTE)&path, &pathlen);
if (result == ERROR_SUCCESS)
{
PL_strcat(path, "\\Program\\Plugins");
}
::RegCloseKey(keyloc);
}
}// RC: add brace for 4.5
Updated•26 years ago
|
Status: NEW → ASSIGNED
Updated•26 years ago
|
Target Milestone: M8
Comment 1•26 years ago
|
||
This works fine for me - what exact version of Com 4.5 do you have installed?
| Reporter | ||
Comment 2•26 years ago
|
||
I'm running vanilla 4.5 WinNT. (Mozilla/4.5 [en] (WinNT; U))
You may not see the problem because you had a previous version of Navigator
running on the machine. Have you tried this on a machine that never had an older
version running?
Comment 3•26 years ago
|
||
Reassigning Plugin bugs to Andrei
What you are proposing will probably not work after you install 4.51 e.g. Are
you saying that 4.5 does not write anything to
HKEY_CURRENT_USER\Software\Netscape\Netscape Navigator\Main ?
| Reporter | ||
Comment 5•26 years ago
|
||
| Reporter | ||
Comment 6•26 years ago
|
||
> Are you saying that 4.5 does not write anything to
> HKEY_CURRENT_USER\Software\Netscape\Netscape Navigator\Main ?
Yes. See attached registry export.
I just removed Navigator from my machine including folders and registry entries
and installed 4.61. Everything looks fine, i.e. it creates Main entry with
InstallDirectory specified, and 5.0 does not have any problems finding plugins.
It could be a bug in 4.5, I doubt it though...
Anyways, I do not beleive this is a 5.0 bug, and have a temptation to mark it
invalid. Beth, could you try to reproduce this with 4.5?
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
Marking invalid. If this is still an issue and a registry entry is not created
by 4.x installation, a separate bug should be filed against 4.x.
Comment 9•26 years ago
|
||
"rubber stamping" Verified Invalid...beppe, can you really verify this please?
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 10•26 years ago
|
||
Verifying as invalid, did a clean install of 4.5 and registry entry
HKEY_CURRENT_USER\Software\Netscape\Netscape Navigator\Main shows the correct
path
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•