Closed Bug 191021 Opened 23 years ago Closed 23 years ago

Put the null plugin back where it belongs

Categories

(Core Graveyard :: Plug-ins, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stdowa+bugzilla, Assigned: timeless)

Details

Attachments

(2 files, 1 obsolete file)

With today's Windows installer build, the null plugin isn't being displayed when a plugin can't be found; about:mozilla doesn't display anything about the null plugin. The null plugin is located in the GRE plugins dir, but it appears Mozilla isn't scanning that dir for plugins.
do we really want the default plugin in the GRE ?
hmm...different embedders may have overriden their default plugins with their own implementations so I think we may need to scan the GRE dir in addition to the app plugins dir but keep the null plugin in the app dir. Also, another embedding project has asked for a sharable location for plugins so maybe we can have a system global folder like on Mac or GRE global that embedders can opt in? Here's the code in nsAppFileLocationProvider that causes the scan of bin/plugins: 197 else if (nsCRT::strcmp(prop, NS_APP_PLUGINS_DIR) == 0) 198 { 199 rv = CloneMozBinDirectory(getter_AddRefs(localFile)); 200 if (NS_SUCCEEDED(rv)) 201 rv = localFile->AppendRelativeNativePath(PLUGINS_DIR_NAME); http://lxr.mozilla.org/seamonkey/source/xpcom/io/nsAppFileLocationProvider.cpp#583
wouldn't it be nice if the plugin code just registered their own directory service provider :-)
it could (and I recall it did at one point in time) but embedders requested finer control
the null plugin we're packaging is really really horrible, we should be encouraging embedders to replace it by making them opt into using it.
we don't want the null plugin in the gre.
Assignee: peterlubczynski → timeless
Summary: Make Mozilla aware of plugins located in the GRE plugins dir → Put the null plugin back where it belongs
Comment on attachment 112926 [details] [diff] [review] put the null plugin back where it belongs r=peterl
Attachment #112926 - Flags: review+
Comment on attachment 112926 [details] [diff] [review] put the null plugin back where it belongs this is a small build change but it's important for the gre not to include this file.
Attachment #112926 - Flags: approval1.3b?
Comment on attachment 112926 [details] [diff] [review] put the null plugin back where it belongs a=asa (on behalf of drivers) for checkin to 1.3beta.
Attachment #112926 - Flags: approval1.3b? → approval1.3b+
checked in
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
*sigh* why oh why are the gre packaging files pathwise incompatible with the mozilla packaging files?
Attachment #112926 - Attachment is obsolete: true
timeless, you also need to check this patch in. browser.xpi should no longer be deleting the npnul32.dll during installation because it's installing it now.
right, thanks. drivers: the gre changes currently mean we aren't shipping a null plugin on windows. given that the null plugin can crash in edge cases that might not be a bad thing, but most people would probably be annoyed by the you're missing the null plugin dialog. and it's a usability loss. the patch pair here is simple and imo worth committing.
Status: RESOLVED → REOPENED
Flags: blocking1.3b?
Resolution: FIXED → ---
Comment on attachment 113933 [details] [diff] [review] really put it back where it belongs this correctly packages the null plugin.
Attachment #113933 - Flags: review?(ssu)
Attachment #113933 - Flags: approval1.3b?
Comment on attachment 113938 [details] [diff] [review] patch to remove code that deletes npnul32.dll this prevents the installer from killing the null plugin ... ... ...
Attachment #113938 - Flags: review+
Attachment #113938 - Flags: approval1.3b?
Comment on attachment 113933 [details] [diff] [review] really put it back where it belongs a=asa (on behalf of drivers) for checkin to 1.3b.
Attachment #113933 - Flags: approval1.3b? → approval1.3b+
Comment on attachment 113938 [details] [diff] [review] patch to remove code that deletes npnul32.dll a=asa (on behalf of drivers) for checkin to 1.3beta.
Attachment #113938 - Flags: approval1.3b? → approval1.3b+
checked in
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
clearing blocking1.3b?, as the patch is checked in
Flags: blocking1.3b?
Attachment #113933 - Flags: review?(ssu)
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: