Closed Bug 582486 Opened 14 years ago Closed 14 years ago

nsPluginTag::RegisterWithCategoryManager unnecessarily reads a pref during XPCOM shutdown

Categories

(Core Graveyard :: Plug-ins, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cjones, Assigned: cjones)

References

Details

Attachments

(1 file)

RegisterWithCategoryManager() is called with aType==ePluginUnregister, and the method reads "plugin.disable_full_page_plugin_for_types" even though it doesn't use the computed values.  This isn't a major big deal, except that in DEBUG builds of content process, this can happen way after the IPC pipe is closed and the IPC shutdown code finished.  In the current implementation, this triggers a fatal assertion.  I'm filing this bug rather than adding a zillion checks to modules/libpref because I don't think we ought to be reading prefs on shutdown.
I should add to comment 0 that I'm not categorically against reading prefs on shutdown, but I'd need to come across a compelling use case before changing libpref.  This case isn't compelling because the value is unused.

Will look for approval+ upon r+.
Assignee: nobody → jones.chris.g
Attachment #460770 - Flags: review?
Attachment #460770 - Flags: review? → review?(joshmoz)
Attachment #460770 - Flags: review?(joshmoz) → review+
Comment on attachment 460770 [details] [diff] [review]
Don't read an unused pref when unregistering from the category manager

(By "approval2.0" here I have in mind fennec 2.0.)
Attachment #460770 - Flags: approval2.0?
Attachment #460770 - Flags: approval2.0? → approval2.0+
http://hg.mozilla.org/mozilla-central/rev/6642cfe74e2c
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
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: