Commit Graph

48 Commits

Author SHA1 Message Date
Jan Odvarko
ac09fb665e Bug 1264312 - DOM panel support for Firebug Theme; r=ntim
MozReview-Commit-ID: Cg2oSr4bbfP
2016-04-13 17:35:42 +02:00
Jan Odvarko
3dd29ed55b Bug 1201475 - Implement DOM Panel; r=linclark, bgrins, helenvholmes
MozReview-Commit-ID: rNpieyIVNt
2016-02-09 23:23:29 +01:00
Julian Descottes
44b0ec5883 Bug 1258114 - use invisible borders to drag devtools splitters on both sides;r=bgrins
Devtools splitters now have a clickable area on both sides of the splitter.
The previous layout provided a 3px clickable area (2px empty content + 1px
visible border).

The new layout uses invisible borders on both sides and a visible (clipped)
content. New draggable areas:
- side splitters : 1px left + 1px splitter + 4px right
- horizontal splitters : 2 px top + 1px splitter + 2px bottom

Variables are defined in splitters.css to adjust these settings.
Modified two test helpers opening context menus: the click should be
performed with a slight offset in order to avoid clicking on the splitter.

MozReview-Commit-ID: 94uFZoIBL7B

--HG--
extra : rebase_source : 55e6cb0f8f2ecbe1ae27ef9490925edfab7d62ce
extra : source : 4d5b0cdb72fe52f843c61a5df8f6b8ed35758be8
2016-04-15 12:36:17 +02:00
Carsten "Tomcat" Book
06ed529e31 Backed out changeset 4d5b0cdb72fe (bug 1258114) for m-oth test failures 2016-04-18 10:24:06 +02:00
Julian Descottes
93cda884fb Bug 1258114 - use invisible borders to drag devtools splitters on both sides;r=bgrins
Devtools splitters now have a clickable area on both sides of the splitter.
The previous layout provided a 3px clickable area (2px empty content + 1px
visible border).

The new layout uses invisible borders on both sides and a visible (clipped)
content. New draggable areas:
- side splitters : 1px left + 1px splitter + 4px right
- horizontal splitters : 2 px top + 1px splitter + 2px bottom

Variables are defined in splitters.css to adjust these settings.
Modified two test helpers opening context menus: the click should be
performed with a slight offset in order to avoid clicking on the splitter.

MozReview-Commit-ID: 94uFZoIBL7B

--HG--
extra : rebase_source : 8683e8700c83feae6bddc869cacda03b156a9f91
extra : amend_source : 10cdeed511c02a907e99b74295fe25a3ad623030
2016-04-15 12:36:17 +02:00
Nick Fitzgerald
c6425cbdee Bug 1221384 - Scroll the Tree component when focusing new items with the arrow keys; r=jsantell 2016-04-04 16:54:00 +02:00
Ryan VanderMeulen
1bb567e688 Merge fx-team to m-c. a=merge 2016-04-02 13:34:45 -04:00
Nick Fitzgerald
9260975b8f Bug 1261505 - Use consistent syntax for prototype methods; r=jsantell
All the other methods use the style

  {
    myMethod() { ... }
  }

while these two methods use

  {
    myMethod: function () { ... }
  }

For consistency, we should use the common style here.

MozReview-Commit-ID: 5rg8uPoULyN
2016-04-01 19:03:47 -07:00
Nick Fitzgerald
af75ceece1 Bug 1258172 - Use C-style for loops instead of for/of to cut down on the number of CCWs when using the Tree component. r=jimb 2016-03-23 14:54:00 -04:00
Jan Odvarko
51ea0cd87e Bug 1211525 - HTTP log inspection in the Console panel; r=jlongster,helenvholmes,bgrins,linclark a=kwierso
MozReview-Commit-ID: AA1xxjJtCPQ
2016-02-12 18:25:09 +01:00
Jan Odvarko
26b7a789ee Bug 1244912 - JSON Viewer: hide object summary when object is expanded; r=jryans 2016-03-22 15:36:52 +01:00
Victor Porof
1cfbac47ef Bug 1258305 - Update all occurences of ViewHelpers.L10N and MultiL10N to use the new module, r=jsantell 2016-03-22 10:17:21 +01:00
Jan Odvarko
5a87bb375c Bug 1256757 - Use shared tree component for JSON Viewer. r=jryans 2016-03-21 13:45:06 +01:00
Jan Odvarko
298e20ef4f Bug 1256757 - Support AMD in tree modules. r=jryans 2016-03-21 13:29:17 +01:00
Jordan Santell
48966d1486 Bug 1255529 - Make all of a location (source, line, column) clickable/linkable to another tool in the frame component. r=fitzgen,bgrins 2016-03-17 22:23:13 -07:00
Jordan Santell
8aab5a4b33 Bug 1251033 - Part 4 - Integrate Frame component in webconsole. r=linclark 2016-03-11 08:33:44 -08:00
Jan Odvarko
a83efd2468 Bug 1247065 - Implement Tree Component. r=bgrins, r=linclark, r=jlongster 2016-02-09 22:38:20 +01:00
Jordan Santell
01777b48df Bug 1254736 - Do not link to unlinkable frames in Frame component. r=fitzgen 2016-03-09 23:29:48 -08:00
Jordan Santell
bf88202287 Bug 1251033 - Part 3 - Fix unmerged chunk from eb9b84702b2c. a=philor 2016-03-08 21:58:47 -08:00
Jordan Santell
62f6b6c19c Bug 1251033 - Part 2 - FrameComponent should correctly handle erroneous line/column formats. r=fitzgen 2016-03-08 19:19:10 -08:00
Jordan Santell
afb1708698 Bug 1251033 - Part 1 - BrowserLoader now has an option to only load shared components and not require an additional directory. r=jryans 2016-03-08 19:19:09 -08:00
Nick Fitzgerald
f92f7a7fae Bug 1251492 - Don't prevent default behavior of unrelated mouse events in HSplitBox. r=linclark 2016-03-02 11:05:00 -05:00
Jordan Santell
677cbcffcd Bug 1251084 - Remove WebConsoleUtils.abbreviateSourceURL with source-utils function. r=linclark 2016-03-01 14:32:11 -08:00
Alexandre Poirot
d3b05e8c5a Bug 1245530 - Use require(Services) instead of Cu.import(Services.jsm). r=jryans 2016-02-27 04:51:10 -08:00
Nick Fitzgerald
4711239ff7 Bug 1249147 - Add a resizable split pane component to devtools/client/shared/components; r=jsantell,linclark
This commit adds HSplitBox which gives two panes aligned horizontally and a
splitter between them to resize their relative widths as needed.
2016-02-23 15:38:29 -08:00
Jan Odvarko
13aa4cf354 Bug 1247434 - fix eslint, add comments and remove Locale; r=jryans, pbrosset
MozReview-Commit-ID: LDYftQOw35M
2016-02-19 16:17:50 +01:00
Jan Odvarko
ff3855bf84 Bug 1247434 - Move all rep component into shared directory; r=jryans
MozReview-Commit-ID: 9G6TpiJhCPd

--HG--
rename : devtools/client/jsonview/components/reps/array.js => devtools/client/shared/components/reps/array.js
rename : devtools/client/jsonview/components/reps/caption.js => devtools/client/shared/components/reps/caption.js
rename : devtools/client/jsonview/components/reps/moz.build => devtools/client/shared/components/reps/moz.build
rename : devtools/client/jsonview/components/reps/null.js => devtools/client/shared/components/reps/null.js
rename : devtools/client/jsonview/components/reps/number.js => devtools/client/shared/components/reps/number.js
rename : devtools/client/jsonview/components/reps/object-box.js => devtools/client/shared/components/reps/object-box.js
rename : devtools/client/jsonview/components/reps/object-link.js => devtools/client/shared/components/reps/object-link.js
rename : devtools/client/jsonview/components/reps/object.js => devtools/client/shared/components/reps/object.js
rename : devtools/client/jsonview/components/reps/rep-utils.js => devtools/client/shared/components/reps/rep-utils.js
rename : devtools/client/jsonview/components/reps/rep.js => devtools/client/shared/components/reps/rep.js
rename : devtools/client/jsonview/components/reps/string.js => devtools/client/shared/components/reps/string.js
rename : devtools/client/jsonview/components/reps/undefined.js => devtools/client/shared/components/reps/undefined.js
2016-02-18 12:58:51 +01:00
Julian Descottes
8a5bb348c4 Bug 1243131 - memory tool: select snapshot using ACCEL+{UP/DOWN};r=fitzgen
Adds a keydown listener on the memory panel window. Select previous/next snapshot
when user presses UP/DOWN with the accelKey modifier (metaKey on OSX, ctrlKey on
windows).

Keydown events with modifiers are no longer listened to by the tree node elements.

Updated tree node test.
Added new mochitest to test the new keyboard navigation on the census view. )
2016-02-12 11:03:34 +01:00
Phil Ringnalda
e877ebe734 Back out c578a05bb9d6 (bug 1243131) for browser_memory_keyboard-snapshot-list.js timeout threshold exceeded on Linux32 debug 2016-02-11 21:50:07 -08:00
Julian Descottes
383c4ab364 Bug 1243131 - memory tool: select snapshot using ACCEL+{UP/DOWN};r=fitzgen
Adds a keydown listener on the memory panel window. Select previous/next snapshot
when user presses UP/DOWN with the accelKey modifier (metaKey on OSX, ctrlKey on
windows).

Keydown events with modifiers are no longer listened to by the tree node elements.

Updated tree node test.
Added new mochitest to test the new keyboard navigation on the census view. )

--HG--
extra : commitid : 20wu80BaRXB
2016-02-08 16:30:01 +01:00
Alexandre Poirot
a2341d65e4 Bug 1245462 - Cleanup various require/import in devtools. r=jryans 2016-02-11 04:29:47 -08:00
Alexandre Poirot
51759742d1 Bug 1245462 - Replace usages of gDevTools.jsm by module imports. r=jryans 2016-02-11 04:29:47 -08:00
J. Ryan Stinnett
e7d6c84c0a Bug 1204127 - Clean up paths added after migration. r=ochameau 2016-02-08 17:32:07 -06:00
Jordan Santell
0e5e1d2b01 Bug 1176056 - Tests for the JITOptimizations react component. r=fitzgen 2016-02-03 12:04:51 -08:00
Jordan Santell
5b4a50f7d7 Bug 1226319 - Part 3 - Land JIT Viewer implemented in react. r=fitzgen 2016-01-28 13:00:54 -08:00
Jordan Santell
71b80d896b Bug 1226319 - part 2 - move the common localized strings from the heap view into the frame component itself. Also make the frame component configurable to optionally display the function name and host, and handle scenarios where the column does not exist -- all in preparation for the JIT optimizations view. r=fitzgen 2016-01-22 12:47:03 -08:00
Julian Descottes
7bff6c515d Bug 1239673 - memorytable: set tree-node-odd from JS. r=vporof
Only visible table rows are rendered, therefore we
cannot rely on :nth-child(2) to create background stripes.

This commit adds the source index to the treeNode props.
Using this index, the treeNode can add a "tree-node-odd"
className to its element.

In css, tree-node-odd is then used to add the alternate
background color to a row,

--HG--
extra : rebase_source : 9ce30781c0e7a2197486a7e0271283f87fc8dff5
2016-01-19 01:44:44 +01:00
Julian Descottes
e337d68642 Bug 1238941 - Remove caching in devtools tree widget (react). r=fitzgen
--HG--
extra : source : 3cea1d886e9e6861a8720de42825185381a208a3
2016-01-14 20:33:09 +01:00
Wes Kocher
a330ff03a6 Backed out changeset 3cea1d886e9e (bug 1238941) for being a possible cause of frequent devtools failures in browser_profiler_tree-abstract-02.js a=backout
--HG--
extra : commitid : 3MYM5fevzDQ
2016-01-15 10:42:50 -08:00
Julian Descottes
d2af8685f1 Bug 1238941 - Remove caching in devtools tree widget (react). r=fitzgen 2016-01-14 20:33:09 +01:00
Nick Fitzgerald
46ec4d3cc4 Bug 1229229 - Display dominator trees in the memory tool's UI; r=jsantell
This patch overhauls the memory tool's frontend from being in a state of viewing
a snapshot's census (the implicit default) or viewing a census diff (a special
cased kind of thing) to one of three recognized view states: (1) census, (2)
diffing, or (3) dominator tree. The logic surrounding our current view is more
explicit now. View option (3) is the new one, whose introduction required those
clean ups.

Dominator trees are too large to render in full, all at once. Instead, we
eagerly load and render a few levels deep and then incrementally fetch further
subtrees as their parents are expanded in the UI. This means that we get new
Tree component instances across incremental fetches. Before this commit, the
Tree component stored a bunch of state internally (in this.state rather than
this.props) and we would lose focus and expansion state across incremental
fetches. This internal state has been pulled out and made as explicit props,
which are now managed by actions and reducers just like the rest of the state.

--HG--
rename : devtools/client/memory/components/tree-item.js => devtools/client/memory/components/census-tree-item.js
2016-01-13 12:27:30 -08:00
Nick Fitzgerald
da8c4ebfce Bug 1236053 - Remove the filtering functionality from the Tree component; r=jsantell
In practice, we filter trees off-main-thread in a worker and the tree that we
pass to the Tree component is already filtered, which is a better architecture
anyways. Additionally, we lack any kind of tests for the Tree component's
built-in filtering. And finally, there isn't even a single user of the built-in
filtering functionality.

Dead it!
2016-01-06 13:57:12 -08:00
Nick Fitzgerald
cf124810a9 Bug 1235933 - Fix auto expansion of nodes in the Tree component; r=jsantell
--HG--
rename : devtools/client/shared/components/test/mochitest/test_tree_03.html => devtools/client/shared/components/test/mochitest/test_tree_10.html
2016-01-06 13:57:12 -08:00
Nick Fitzgerald
ab7c58b587 Bug 1235909 - Add optional props for expand/collapse event handlers to the Tree component; r=jsantell 2016-01-06 13:57:12 -08:00
Alexandre Poirot
e73331bccf Bug 1236457 - Stop using deprecated dbg-server.jsm/dbg-client.jsm from /devtools. r=jryans 2016-01-05 02:41:50 -08:00
Jordan Santell
d971af30f9 Bug 1219544 - Decouple the react Frame component from the memory view and pull out source utilities from frame utilities in performance tool. r=fitzgen
--HG--
rename : devtools/client/shared/source-utils.js => devtools/client/shared/view-source.js
2015-12-29 13:23:05 -05:00
J. Ryan Stinnett
b15fc8df78 Bug 1226570 - Remove chrome://browser/skin/ from DevTools. r=bgrins 2015-11-23 18:10:11 -06:00
Jordan Santell
aed2e04481 Bug 1226319 - pt1 - Move react tree widget in memory tool to shared components. r=fitzgen
--HG--
rename : devtools/client/memory/components/test/mochitest/chrome.ini => devtools/client/shared/components/test/mochitest/chrome.ini
rename : devtools/client/memory/components/tree.js => devtools/client/shared/components/tree.js
2015-11-20 17:50:31 -08:00