Closed Bug 822115 Opened 12 years ago Closed 12 years ago

nglayout.debug.widget_update_flashing pref cache is not thread safe

Categories

(Core :: Graphics: Layers, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: romaxa, Assigned: romaxa)

References

Details

Attachments

(1 file)

Assertion failure: _mOwningThread.GetThread() == PR_GetCurrentThread() (ValueObserver not thread-safe), at modules/libpref/src/Preferences.cpp:131 I have browser with OMTC enabled and BasicLayerManager::FlashWidgetUpdateArea first time called from Compositor Thread (create observer for nglayout.debug.widget_update_flashing) and when gecko is shutting down, it removes all observers from GeckoThread. which cause assertion above.
Move pref observer initialization to gfxPlatform::Init which is guaranteed to be called in Gecko thread.
Assignee: nobody → romaxa
Status: NEW → ASSIGNED
Attachment #692765 - Flags: review?(matt.woodrow)
Attachment #692765 - Flags: review?(matt.woodrow) → review+
Blocks: 736219
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Depends on: 888289
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: