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)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: cjones, Assigned: cjones)
References
Details
Attachments
(1 file)
1.86 KB,
patch
|
jaas
:
review+
benjamin
:
approval2.0+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•14 years ago
|
||
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?
Assignee | ||
Updated•14 years ago
|
Attachment #460770 -
Flags: review? → review?(joshmoz)
Attachment #460770 -
Flags: review?(joshmoz) → review+
Assignee | ||
Comment 2•14 years ago
|
||
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?
Updated•14 years ago
|
Attachment #460770 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Comment 3•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/6642cfe74e2c
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•2 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•