Closed Bug 987368 Opened 11 years ago Closed 11 years ago

DebuggerView doesn't destroy its editor properly

Categories

(DevTools :: Debugger, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 31

People

(Reporter: mossop, Assigned: mossop)

References

Details

Attachments

(1 file)

This causes the add-on debugger tests to leak.
Attached patch patch rev 1Splinter Review
Actually destroy the editor and drop its reference
Comment on attachment 8395946 [details] [diff] [review] patch rev 1 Review of attachment 8395946 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/devtools/debugger/debugger-view.js @@ +273,5 @@ > > DebuggerController.Breakpoints.destroy().then(() => { > window.emit(EVENTS.EDITOR_UNLOADED, this.editor); > + this.editor.destroy(); > + this.editor = null; This should probably happen before we emit the event, no?
Attachment #8395946 - Flags: review+
Per IRC I ignored the requested change since we pass the editor to the emitted event so we probably shouldn't destroy it first. https://hg.mozilla.org/integration/fx-team/rev/561868618cb4
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 31
Does this need tests?
Flags: in-testsuite?
It's covered by automated tests.
Flags: in-testsuite? → in-testsuite+
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: