Closed
Bug 1093349
Opened 10 years ago
Closed 10 years ago
Add pretty printing and blackboxing traits and hide buttons conditionally
Categories
(DevTools :: Debugger, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 36
People
(Reporter: jlong, Assigned: jlong)
Details
Attachments
(1 file, 2 obsolete files)
6.06 KB,
patch
|
Details | Diff | Splinter Review |
This is for Fever Dream, which right now doesn't support pretty printing or blackboxing. We want to simply remove those buttons in the debugger if those actions aren't supported, and we specify that by adding some traits.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8516311 -
Attachment is obsolete: true
Assignee | ||
Comment 3•10 years ago
|
||
Comment on attachment 8516317 [details] [diff] [review] 1093349.patch Not sure who I should ask to review this; past could you take a quick look?
Attachment #8516317 -
Flags: review?(past)
Comment 4•10 years ago
|
||
Comment on attachment 8516317 [details] [diff] [review] 1093349.patch Review of attachment 8516317 [details] [diff] [review]: ----------------------------------------------------------------- Could you also add a simple test for this? Something like manually starting a debugger server, forcing the new traits to true, opening the toolbox and then verifying that the buttons are hidden. ::: browser/devtools/debugger/debugger-view.js @@ +72,5 @@ > }, > > + connect: function() { > + if (gClient.mainRoot.traits.noPrettyPrinting) { > + this.Sources.hidePrettyPrinting(); My only concern is that you are now introducing a dependency to the remote debugging protocol in DebuggerView. We've tried to only make the controller protocol-aware, so if you could move this function there, this would be perfect!
Attachment #8516317 -
Flags: review?(past) → feedback+
Assignee | ||
Comment 5•10 years ago
|
||
(In reply to Panos Astithas [:past] (overloaded, please needinfo) from comment #4) > > My only concern is that you are now introducing a dependency to the remote > debugging protocol in DebuggerView. We've tried to only make the controller > protocol-aware, so if you could move this function there, this would be > perfect! Great, already done. Just need to write the test, will do that first thing tomorrow.
Assignee | ||
Comment 6•10 years ago
|
||
Added a test and made the controller hide the buttons
Attachment #8516317 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 7•10 years ago
|
||
Hi, can we get a try link for this changes ? :) Thanks!
Keywords: checkin-needed
Assignee | ||
Comment 8•10 years ago
|
||
Sure thing. https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=c7b0ddfba982 This only touches the debugger
Keywords: checkin-needed
Updated•10 years ago
|
Assignee: nobody → jlong
https://hg.mozilla.org/mozilla-central/rev/85786620f4af
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 36
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•