Closed Bug 27469 Opened 25 years ago Closed 25 years ago

DOGFOOD PDT+ Plugins won't work if user doesn't have 4.x installed

Categories

(Core Graveyard :: Plug-ins, defect, P3)

x86
All
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: edburns, Assigned: serhunt)

References

Details

Attachments

(1 file)

It looks like a change was recently made to nsPluginHostImpl.cpp 
nsPluginHostImpl::LoadPlugins() that causes plugins to not load when Netscape 
Communicator 4.x IS NOT installed on the user's system.  

Take a look at line 2196:

http://lxr.mozilla.org/mozilla/source/modules/plugin/nglsrc/nsPluginHostImpl.cpp
#2196

2196   if(!pluginsDir4x.Valid() || !pluginsDirMoz.Valid())
2197     return NS_ERROR_FAILURE;

The first part of this || clause will always be TRUE if the user doesn't have 
Communicator 4.x installed.
Attached patch Fix for 27469 (deleted) — Splinter Review
I have attached a patch to fix this bug.
Blocks: 27462
Ah, my fault. So essentially we need to replace OR with AND for that line to 
look like
2196   if(!pluginsDir4x.Valid() && !pluginsDirMoz.Valid())
2197     return NS_ERROR_FAILURE;

Do we need to return NS_OK as you suggested in the patch?
I'm not sure about NS_OK.  Since this is your module, I'd like you to make that 
call.
Checked in the fix. Marking appropriately.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verified this fix. Plugin works now even if there in no 4.x installation.
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

Creator:
Created:
Updated:
Size: