Closed
Bug 987368
Opened 11 years ago
Closed 11 years ago
DebuggerView doesn't destroy its editor properly
Categories
(DevTools :: Debugger, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 31
People
(Reporter: mossop, Assigned: mossop)
References
Details
Attachments
(1 file)
717 bytes,
patch
|
fitzgen
:
review+
|
Details | Diff | Splinter Review |
This causes the add-on debugger tests to leak.
Assignee | ||
Comment 1•11 years ago
|
||
Actually destroy the editor and drop its reference
Comment 2•11 years ago
|
||
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+
Assignee | ||
Comment 3•11 years ago
|
||
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
Comment 4•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 31
Assignee | ||
Comment 6•11 years ago
|
||
It's covered by automated tests.
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•