Closed
Bug 1145262
Opened 9 years ago
Closed 9 years ago
Modularize debugger frontend
Categories
(DevTools :: Debugger, defect)
Tracking
(firefox40 fixed)
RESOLVED
FIXED
Firefox 40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: jlong, Assigned: jlong)
Details
Attachments
(2 files, 4 obsolete files)
245.25 KB,
patch
|
Details | Diff | Splinter Review | |
128.99 KB,
patch
|
Details | Diff | Splinter Review |
As part of a Q1 goal to being cleaning up the debugger some, let's start by making things more componentized and removing the globals. I think this might be pretty painless, but I could be wrong.
Assignee | ||
Comment 1•9 years ago
|
||
Renaming because I'm not going to do as much refactoring as I originally thought. The most important thing right now is to split up the views into separate files and change some of the global references to local where it's easy. There are still a bunch of global variables but that's ok for now.
Summary: Reduce use of globals in debugger frontend → Modularize debugger frontend
Assignee | ||
Comment 2•9 years ago
|
||
Assignee | ||
Comment 3•9 years ago
|
||
Comment on attachment 8587026 [details] [diff] [review] 1145262.patch This basically just splits up debugger-panes.js into multiple files (1 per view). I'd like to also do this to debugger-toolbar.js. It's a lot more files, which is annoying because of jar.mn, but I find it a whole lot easier to navigate and we can start treating each view more modularly so they are easier to improve individually.
Attachment #8587026 -
Flags: review?(vporof)
Assignee | ||
Comment 4•9 years ago
|
||
Previously I wanted to re-use our module system but that requires a bunch of refactoring to pass window/document instances around. It pains me that we don't have modules yet, but this is a really good start at least.
Assignee | ||
Comment 5•9 years ago
|
||
victor, I'm going on PTO for the rest of the week but it would be nice to land this when I get back, as it will bitrot quickly. if you have time!
Assignee | ||
Comment 6•9 years ago
|
||
Forgot to add the license text to the new files
Attachment #8587026 -
Attachment is obsolete: true
Attachment #8587026 -
Flags: review?(vporof)
Attachment #8589250 -
Flags: review?(vporof)
Assignee | ||
Comment 7•9 years ago
|
||
also forgot to add strict mode to the new files. I'm going to post another patch which breaks up debugger-toolbar.js in a similar fashion.
Attachment #8589250 -
Attachment is obsolete: true
Attachment #8589250 -
Flags: review?(vporof)
Attachment #8591891 -
Flags: review?(vporof)
Assignee | ||
Comment 8•9 years ago
|
||
Victor, don't worry if you can't get to these this week. I can get Eddy to take a look next week. Note that these are only incremental restructurings, it feels a little weird how we are passing DebuggerView and DebuggerController instances around but this is just a first step towards making dependencies more explicit. Please keep in mind this a first step. Landing things in pieces is the only way this will work.
Attachment #8591894 -
Flags: review?(vporof)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → jlong
Comment 9•9 years ago
|
||
Comment on attachment 8591891 [details] [diff] [review] 1145262-panes.patch Review of attachment 8591891 [details] [diff] [review]: ----------------------------------------------------------------- Looks like a mechanical change to me. rs=me with green try push
Attachment #8591891 -
Flags: review?(vporof) → review+
Comment 10•9 years ago
|
||
Comment on attachment 8591894 [details] [diff] [review] 1145262-toolbar.patch Review of attachment 8591894 [details] [diff] [review]: ----------------------------------------------------------------- rs=me with green try push
Attachment #8591894 -
Flags: review?(vporof) → review+
Assignee | ||
Comment 11•9 years ago
|
||
I thought I had done a try push, but I can't find it anymore, so here's a new one: https://treeherder.mozilla.org/#/jobs?repo=try&revision=0700aea454ec
Assignee | ||
Comment 12•9 years ago
|
||
Green try, let's try to get it checked in!
Keywords: checkin-needed
Assignee | ||
Comment 14•9 years ago
|
||
Attachment #8591891 -
Attachment is obsolete: true
Assignee | ||
Comment 15•9 years ago
|
||
Attachment #8591894 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 16•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/972e2aea8912 https://hg.mozilla.org/integration/fx-team/rev/28cf16c94de5
Comment 17•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/972e2aea8912 https://hg.mozilla.org/mozilla-central/rev/28cf16c94de5
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 40
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•