Closed Bug 586740 Opened 14 years ago Closed 14 years ago

Microformats test leak fix

Categories

(Core :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fennec 2.0b1+ ---

People

(Reporter: stechz, Assigned: stechz)

References

Details

Attachments

(1 file)

A microformat mochitest adds a microformat to a long-lived module's scope, but does not clean it up.  This fixes a leak in one of my patches that for some reason does not show up normally.
Attached patch PatchSplinter Review
Attachment #465323 - Flags: review?(myk)
tracking-fennec: --- → 2.0b1+
Erm, I have never hacked on this code (perhaps you thought of me because I worked on microsummaries?).  Based on the log, Michael Kaply or Robert Sayre would be better reviewers.
This looks ok to me, but shouldn't there be another remove for the other hTest add?
OS: Mac OS X → All
what is the patch that this helps?
OS: All → Mac OS X
(In reply to comment #3)
> This looks ok to me, but shouldn't there be another remove for the other hTest
> add?

No, the second hTest replaces the first hTest in the module, so only one removal is necessary.

> what is the patch that this helps?

Here's a couple actually:
https://bugzilla.mozilla.org/show_bug.cgi?id=552827
https://bugzilla.mozilla.org/show_bug.cgi?id=550936

They leak in mochitest chunk 5.  Basically, we are noticing this when messageManager is being used with an addEventListener call in the frame script.
Attachment #465323 - Flags: review?(myk) → review?(mozilla)
And you're sure that this patch fixes those leaks?
OS: Mac OS X → Windows XP
Yes.  Alon Zakai and I have verified it fixes the leak on mochitest 5 on our own respective bugs.
Attachment #465323 - Flags: review?(mozilla) → review+
Blocks: 552828
Blocks: 550936
Pushed to e10s.  will merge into m-c shortly:

http://hg.mozilla.org/projects/electrolysis/rev/0346acf59bc6
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
bugspam
Assignee: nobody → ben
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: