Closed Bug 947612 Opened 11 years ago Closed 11 years ago

VariablesView `Editable#_onCleanup` is not called when it should be

Categories

(DevTools :: Debugger, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 29

People

(Reporter: vporof, Assigned: bbenvie)

References

Details

Attachments

(1 file, 3 obsolete files)

Regression after bug 808371. STR: 1. Open debugger on http://htmlpad.org/debugger/ 2. Add a watch expression (ex: "window") 3. Double click the expression in the variables view 4. Press RETURN The value hides. https://bugzilla.mozilla.org/show_bug.cgi?id=808371#c46
Flags: needinfo?(bbenvie)
Summary: Bug 947611 - Double clicking on watch expressions in the debugger and then unfocusing the text intput hides their value → Double clicking on watch expressions in the debugger and then unfocusing the text intput hides their value
Blocks: 808371
Regression from bug 808371 probably. I'll look into it.
Assignee: nobody → bbenvie
Status: NEW → ASSIGNED
Flags: needinfo?(bbenvie)
Priority: -- → P1
Attached patch variables-view-onCleanup.patch (obsolete) — Splinter Review
This patch should fix the issue. `_onCleanup` was not being called at the appropriate time.
Attachment #8347512 - Flags: review?(vporof)
Summary: Double clicking on watch expressions in the debugger and then unfocusing the text intput hides their value → VariablesView `Editable#_onCleanup` is not called when it should be
Comment on attachment 8347512 [details] [diff] [review] variables-view-onCleanup.patch Review of attachment 8347512 [details] [diff] [review]: ----------------------------------------------------------------- Please add a test.
Attachment #8347512 - Flags: review?(vporof) → review-
Any progress with the test Benvie? This bug makes it really hard to work with watch expressions in the debugger.
Flags: needinfo?(bbenvie)
Sorry about that! This fell off my radar with all the promise stuff. I'll work on this today.
Flags: needinfo?(bbenvie)
Attached patch variables-view-onCleanup.patch (obsolete) — Splinter Review
Adds a test.
Attachment #8347512 - Attachment is obsolete: true
Attachment #8361296 - Flags: review?(vporof)
Comment on attachment 8361296 [details] [diff] [review] variables-view-onCleanup.patch Review of attachment 8361296 [details] [diff] [review]: ----------------------------------------------------------------- r+ with the comments addressed and a green try. ::: browser/devtools/debugger/test/browser_dbg_variables-view-edit-cancel.js @@ +8,5 @@ > + > +const TAB_URL = EXAMPLE_URL + "doc_watch-expressions.html"; > + > + > +let {console} = Cu.import("resource://gre/modules/devtools/Console.jsm", {}); Remove this if not needed. @@ +16,5 @@ > + let win = panel.panelWin; > + let vars = win.DebuggerView.Variables; > + > + win.DebuggerView.WatchExpressions.addExpression("this"); > + executeSoon(() => debuggee.ermahgerd()); Please document the reason for this executeSoon.
Attachment #8361296 - Flags: review?(vporof) → review+
Attached patch variables-view-onCleanup.patch (obsolete) — Splinter Review
Remove leftover debug line and add a comment explaining executeSoon.
Attachment #8361296 - Attachment is obsolete: true
Attachment #8361308 - Flags: review+
Comment on attachment 8361308 [details] [diff] [review] variables-view-onCleanup.patch Try is all orange :(
Attachment #8361308 - Flags: review+ → review-
Flags: needinfo?(bbenvie)
EditableNameAndValue no longer has an _onCleanup hook, this fixes it.
Attachment #8361308 - Attachment is obsolete: true
Flags: needinfo?(bbenvie)
Comment on attachment 8361827 [details] [diff] [review] variables-view-onCleanup.patch Adding back r+ with fix.
Attachment #8361827 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 29
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: