Closed Bug 293781 Opened 19 years ago Closed 19 years ago

[FIXr]Add some bulletproofing to sizeToContent

Categories

(Core :: Layout, defect, P1)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla1.8beta2

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Right now if someone calls sizeToContent on a window that's not done parsing
yet, we'll happily size it to NS_UNCONSTRAINEDSIZE twips in both directions. 
That seems unwanted, and generally hangs/crashes X (if nothing else, by having
the OOM handling on Linux kill it).
Attached patch Proposed patchSplinter Review
Attachment #183300 - Flags: superreview?(roc)
Attachment #183300 - Flags: review?(roc)
Priority: -- → P1
Summary: Add some bulletproofing to sizeToContent → [FIX]Add some bulletproofing to sizeToContent
Target Milestone: --- → mozilla1.8beta2
Attachment #183300 - Flags: superreview?(roc)
Attachment #183300 - Flags: superreview+
Attachment #183300 - Flags: review?(roc)
Attachment #183300 - Flags: review+
Summary: [FIX]Add some bulletproofing to sizeToContent → [FIXr]Add some bulletproofing to sizeToContent
Comment on attachment 183300 [details] [diff] [review]
Proposed patch

Requesting approval.  This just makes sizeToContent not create huge windows
that crash X servers if it's called at the wrong time.
Attachment #183300 - Flags: approval1.8b2?
Blocks: 205530
Comment on attachment 183300 [details] [diff] [review]
Proposed patch

a=asa
Attachment #183300 - Flags: approval1.8b2? → approval1.8b2+
Fixed
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Blocks: 293094
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: