Closed Bug 460979 Opened 16 years ago Closed 16 years ago

No display crashes in nsIdleServiceGTK.cpp

Categories

(Core :: Widget: Gtk, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED FIXED
mozilla1.9.1b2

People

(Reporter: jcranmer, Assigned: jcranmer)

References

Details

(Keywords: crash, regression)

Attachments

(1 file)

If there is no display, nsIdleServiceGTK crashes in GetIdleTime because it calls PR_LOG on a null sIdleLog.
Regression from bug 397607, based on hg annotate and analysis of patch.
Blocks: 397607
Keywords: crash, regression
This patch moves the initialization of the module back into the constructor instead of the Initialize function (which is called too late).
Assignee: nobody → Pidgeot18
Status: NEW → ASSIGNED
Attachment #344111 - Flags: superreview?(roc)
Attachment #344111 - Flags: review?(roc)
Comment on attachment 344111 [details] [diff] [review]
Stop the crashing

This looks sensible.
Attachment #344111 - Flags: superreview?(roc)
Attachment #344111 - Flags: superreview+
Attachment #344111 - Flags: review?(roc)
Attachment #344111 - Flags: review+
Checked in:
changeset:   20744:20de2f0b83c8
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b2
No longer depends on: 461283
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: