Closed Bug 991376 Opened 11 years ago Closed 11 years ago

The variables inspection popup shouldn't open when hovering js literals

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 31

People

(Reporter: vporof, Assigned: vporof)

Details

Attachments

(1 file)

When hovering "foo", you don't want to see \""foo\"" in a variable inspection popup. You already see what it is :)
And for people who are really troubled by the poor escaping in comment 0, I obviously meant, "\"foo\"".
Attached patch v1Splinter Review
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Attachment #8400964 - Flags: review?(past)
Comment on attachment 8400964 [details] [diff] [review] v1 Review of attachment 8400964 [details] [diff] [review]: ----------------------------------------------------------------- Make sure you fix the typo, and I wouldn't mind getting rid of the specific tests FWIW. ::: browser/devtools/debugger/debugger-panes.js @@ +1814,5 @@ > /** > + * Specifies whether literals can be (redundantly) inspected in a popup. > + * This behavior is deprecated, but still tested in a few places. > + */ > + _ignoreLiterals: true, Do you think it's still worth keeping the behavior and tests around though? ::: browser/devtools/debugger/debugger.xul @@ +56,5 @@ > oncommand="DebuggerView.Filtering._doFileSearch()"/> > <command id="globalSearchCommand" > oncommand="DebuggerView.Filtering._doGlobalSearch()"/> > <command id="functionSearchCommand" > + oncommand="DepbuggerView.Filtering._doFunctionSearch()"/> Eeek! ::: browser/devtools/debugger/test/browser_dbg_variables-view-popup-15.js @@ +25,5 @@ > + ok(false, "The variable inspection popup shouldn't have been opened."); > + }); > + > + reopenVarPopup(panel, { line: 17, ch: 27 }); > + yield waitForTime(1000); Hmmm, this could give false negatives, for example when we've broken that code and the popup is going to show up at some point, but the machine is overloaded and stalls. The alternative would be to reach deep into the implementation code from the test and infer the code path taken. Not sure if it's worth the effort though for something that we'll eventually catch.
Attachment #8400964 - Flags: review?(past) → review+
(In reply to Panos Astithas [:past] from comment #3) > Comment on attachment 8400964 [details] [diff] [review] > v1 > > Review of attachment 8400964 [details] [diff] [review]: > ----------------------------------------------------------------- > > Make sure you fix the typo, and I wouldn't mind getting rid of the specific > tests FWIW. > > ::: browser/devtools/debugger/debugger-panes.js > @@ +1814,5 @@ > > /** > > + * Specifies whether literals can be (redundantly) inspected in a popup. > > + * This behavior is deprecated, but still tested in a few places. > > + */ > > + _ignoreLiterals: true, > > Do you think it's still worth keeping the behavior and tests around though? It's just one test. I don't know actually, it might be? I don't see *too much* keeping this around, at least for a short while. > ::: browser/devtools/debugger/debugger.xul > @@ +56,5 @@ > > oncommand="DebuggerView.Filtering._doFileSearch()"/> > > <command id="globalSearchCommand" > > oncommand="DebuggerView.Filtering._doGlobalSearch()"/> > > <command id="functionSearchCommand" > > + oncommand="DepbuggerView.Filtering._doFunctionSearch()"/> > > Eeek! > Damn, there's some accidental changes in this patch. I'll remove them. Thanks for the review!
I had to back this out (along with the other patches in that push) in https://hg.mozilla.org/integration/fx-team/rev/fc4b6e71a8e7 for causing browser-chrome-1 tests to start leaking by adding tests, which pushed other tests into a different chunk, making them leak.
Whiteboard: [fixed-in-fx-team]
Please backout the backout at some point.
Keywords: checkin-needed
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #8) > *shuffles the deck* > https://hg.mozilla.org/integration/fx-team/rev/57a393d69f32 Thank you.
Summary: The variables inspection popup shouldn't opening when hovering js literals → The variables inspection popup shouldn't open when hovering js literals
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 31
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: