Closed
Bug 257721
Opened 21 years ago
Closed 21 years ago
nsPresShell::PostAttributeChange crashes
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
People
(Reporter: neil, Assigned: neil)
Details
(Keywords: crash)
Attachments
(1 file)
1.28 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
roc suggested I use this to set/clear the disabled attribute on scrollbars.
Unfortunately it allocates some memory without constructing it.
Assignee | ||
Comment 1•21 years ago
|
||
Using placement new as suggested by brendan.
Note that HandlePostedAttributeChanges already calls the destructor.
Assignee | ||
Comment 2•21 years ago
|
||
Comment on attachment 157663 [details] [diff] [review]
Proposed patch
Since it was you who asked me to use it in the first place ;-)
Attachment #157663 -
Flags: superreview?(roc)
Attachment #157663 -
Flags: review?(roc)
Comment on attachment 157663 [details] [diff] [review]
Proposed patch
How does this change anything? Or do you want nsAttributeChangeRequest to have
a nontrivial constructor in the future?
Assignee | ||
Comment 4•21 years ago
|
||
Yes, I missed off some detail as usual...
The constructor is nontrivial because the structure contains an nsAutoString.
Comment on attachment 157663 [details] [diff] [review]
Proposed patch
containing an nsAutoString is evil... we should change that to some other sort
of string. but this patch is good.
Attachment #157663 -
Flags: superreview?(roc)
Attachment #157663 -
Flags: superreview+
Attachment #157663 -
Flags: review?(roc)
Attachment #157663 -
Flags: review+
Assignee | ||
Comment 6•21 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Core Graveyard
Updated•7 years ago
|
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•