The default bug view has changed. See this FAQ.

Leak when forcing layout during mutation event for table attribute

RESOLVED FIXED in mozilla9

Status

()

Core
DOM: Core & HTML
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: Jesse Ruderman, Assigned: Ms2ger)

Tracking

(Blocks: 3 bugs, {assertion, mlk, regression})

Trunk
mozilla9
assertion, mlk, regression
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments, 1 obsolete attachment)

(Reporter)

Description

6 years ago
Created attachment 556167 [details]
testcase

###!!! ASSERTION: potential leak, plus waste of work: 'mTableInheritedAttributes == TABLE_ATTRS_DIRTY', file content/html/content/src/nsHTMLTableElement.cpp, line 1228

+ trace-refcnt reports a leaked "nsMappedAttributes" object
(Reporter)

Comment 1

6 years ago
Created attachment 556168 [details]
stack trace
Using nsHTMLTableElement::SetAttr is just buggy
I think this is a regression from bug 211636
Depends on: 211636
Yes, bug 211636 should have used Before/AfterSetAttr, not override SetAttr.
(Reporter)

Updated

6 years ago
Blocks: 211636
No longer depends on: 211636
Keywords: regression
Olli, are you fixing this?  Or is Bernd?

Requesting tracking for the leak regression.
tracking-firefox9: --- → ?

Comment 6

6 years ago
I don't feel comfortable with this, see https://bugzilla.mozilla.org/show_bug.cgi?id=211636#c9 
>I am insecure about the changes in SetAttr and UnsetAttr
(Assignee)

Comment 7

6 years ago
Created attachment 556252 [details] [diff] [review]
Patch v1

Something like this? (Untested)
Attachment #556252 - Flags: review?(Olli.Pettay)
Attachment #556252 - Flags: review?(Olli.Pettay) → review+

Comment 8

6 years ago
Try run for edb5c7975703 is complete.
Detailed breakdown of the results available here:
    http://tbpl.allizom.org/?tree=Try&usebuildbot=1&rev=edb5c7975703
Results (out of 229 total builds):
    success: 212
    warnings: 15
    failure: 2
Builds available at http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/Ms2ger@gmail.com-edb5c7975703
(Assignee)

Comment 9

6 years ago
Created attachment 556383 [details] [diff] [review]
Patch for checkin

As suggested by Bernd, fixed bug 211636 comment 16 as well. Ed, if you don't mind? (Passed try: <http://tbpl.allizom.org/?tree=Try&usebuildbot=1&rev=edb5c7975703>)
Assignee: nobody → Ms2ger
Attachment #556252 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #556383 - Flags: checkin?(bmo)
http://hg.mozilla.org/integration/mozilla-inbound/rev/f1cf848b1ff2
OS: Mac OS X → All
Hardware: x86_64 → All
Target Milestone: --- → mozilla9
Attachment #556383 - Flags: checkin?(bmo) → checkin+
http://hg.mozilla.org/mozilla-central/rev/f1cf848b1ff2
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED

Updated

6 years ago
tracking-firefox9: ? → ---
You need to log in before you can comment on or make changes to this bug.