Commit Graph
245 Commits
Author SHA1 Message Date
Nicolas Chevobbe cad0ed1f22 Bug 1320161 - Fix objectLink in Attribute Rep; r=Honza
MozReview-Commit-ID: IaHGVZbxHhR
2016-11-24 19:19:28 +01:00
Astley Chen 2fbfda6ee9 Bug 1270406 - Unprefix pseudo-class dir in DevTool resources. r=pbro
MozReview-Commit-ID: Dw5DhErHkY8
2016-11-22 23:05:18 +08:00
Nicolas Chevobbe 3f9b359e8f Bug 1312178 - Make Reps modes constants; r=Honza
Edit tests and component creation accordingly.

MozReview-Commit-ID: Gsj6QwNTjL0
2016-11-20 19:53:16 +01:00
Nicolas Chevobbe f71d45c89a Bug 1314573 - Modify textNode Reps modes to match elementNodeRep; r=Honza
On elementNodeRep, we have different outputs for tiny and short modes, and
short and long modes are the same.
Since the current long mode of textNodeRep aren't used anywhere, we can do the
same, i.e. have a really small representation for tiny mode, and then the same
rendering for short and long modes.
Modify tests to adapt them to the new rendering.

MozReview-Commit-ID: BRA7iADkn1C
2016-11-17 18:04:55 +01:00
Nicolas Chevobbe 6baf424327 Bug 1314573 - Make Reps "long" mode displays first 10 items for object & array-like grips; r=Honza
Adapt tests that relied on an other length for long mode.

MozReview-Commit-ID: J00UmOa2AwJ
2016-11-17 08:02:28 +01:00
Nicolas Chevobbe c0445d7013 Bug 1307941 - Add DOM nodes highlighter in new console frontend; r=bgrins
Add in serviceContainer highlight and unhighlight utils function so they can
be accessible in components.
Fix EvaluationResult component to pass the serviceContainer to the MessageBody.
Modify ElementNodeRep and TextNodeRep to allow passing them function properties
`onDOMNodeMouseOver` and `onDOMNodeMouseOut` that will be called respectively
on mouseOver and mouseOut.
Add a mochitest in the webconsole to make sure we indeed highlight and unhighlight
node as expected, and add tests in Reps to make sure the passed functions get called
as expected.

MozReview-Commit-ID: 8o8WM7vBfMM
2016-11-04 23:53:35 +01:00
Nicolas Chevobbe d7115d8df4 Bug 1316225 - Add a Rep for Error objects; r=Honza
Handle the different kind of error objects.
Allow to pass a className to the objectLink component.
Add test to make sure we handle those objects as expected.

MozReview-Commit-ID: IC7ruV9odw1
2016-11-11 01:20:55 +01:00
Tim Nguyen f2c4416df2 Bug 1316723 - Fix more eslint errors in devtools/client/shared/. r=tromey
MozReview-Commit-ID: IzXyqkQECKb
2016-11-11 09:09:50 +00:00
Carsten "Tomcat" Book cabaa5540f Merge mozilla-central to mozilla-inbound 2016-11-11 16:43:07 +01:00
Tooru Fujisawa 6b08c64b79 Bug 1315242 - Part 6: Update test_frame_01.html to follow new behavior of location. r=bgrins 2016-11-11 06:34:14 +09:00
Tooru Fujisawa 5e6a8b0923 Bug 1315242 - Part 2: Display line number and column number in error message for console input. r=bgrins 2016-11-11 01:06:26 +09:00
Tooru Fujisawa f518a6c51e Backed out changeset fd1505a03d78 for mochitest chrome bustage (bug 1315242) 2016-11-11 03:04:46 +09:00
Carsten "Tomcat" Book fb24d5c10e Merge mozilla-central to mozilla-inbound 2016-11-10 17:08:43 +01:00
Tooru Fujisawa 671d325dd4 Bug 1315242 - Part 2: Display line number and column number in error message for console input. r=bgrins 2016-11-11 01:06:26 +09:00
Nicolas Chevobbe f3047054a0 Bug 1302982 - Add Rep for LongString; r=Honza
Display a longString with what is available on the grip.
Straight from the server, a longString grip has a "initial"
property, which contains the first 10000 chars of the string.
The grip can also contains a "fullText" property that should
be set when the user want to display the full text of the string.
For example, in the DOM Panel, it would be when the user click on
the expand arrow.
The fullText needs to be computed with the result of the
LongStringClient.substring function, but it's not the responsability
of the Reps to do such thing.

In rep-utils, we extract the logic that replace non-printable
characters in its own function and export it, so we can use it outside
the cropString function.

Add some test to make sure LongString are displayed as expected in the
several modes.

MozReview-Commit-ID: 3P9fPBixm2v
2016-11-03 18:08:16 +01:00
Nicolas Chevobbe 5f00a911b7 Bug 1311168 - Handle document fragment in grip array rep; r=Honza
MozReview-Commit-ID: Cq2YyKlMjjQ
2016-10-23 19:31:41 +02:00
Nicolas Chevobbe 5a5088156b Bug 1314590 - Add Mozilla license header in devtools/client/shared/components/test/mochitest/ files. r=Honza;
MozReview-Commit-ID: FayTCRXuAWN
2016-11-03 22:41:18 +01:00
Ricky Chien 508258701d Bug 1309192 - Implement search filter in Net Panel Toolbar r=jsnajdr
MozReview-Commit-ID: FjVo69jmE7e
2016-10-20 13:58:35 +08:00
Nicolas Chevobbe 3bc62a0860 Bug 1307938 - Add a Rep for DOM nodes. r=Honza,pbro;
Add tests based on existing browser_webconsole_output_dom_elements_*.js tests.

MozReview-Commit-ID: Wmzg0knuuh
2016-10-17 19:29:32 +02:00
Nicolas Chevobbe aa88c7eb94 Bug 1313765 - Make Rep handles Proxy. r=Honza;
In the GripRep, we were using the root property `ownPropertyLength` to
retrieve additionnal uninterresting props on the Grip. For Proxy
objects, we don't have this property, but a `preview.ownPropertiesLength`.
This adds a test case similar to the one for Proxy in browser_webconsole_output_05.js.

MozReview-Commit-ID: 652cfTlW7Sg
2016-10-31 20:02:02 +01:00
Tom Tromey 1976c3df85 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
Wes Kocher 20d9f9713d Backed out 2 changesets (bug 1312041) for mass failures a=backout
Backed out changeset c4f42d7d5453 (bug 1312041)
Backed out changeset 9bfbc8480d43 (bug 1312041)
2016-11-01 10:30:45 -07:00
Tom Tromey d1b2d82846 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
Ryan VanderMeulen 112d5746d5 Merge autoland to m-c. a=merge 2016-10-29 09:12:45 -04:00
Towkir Ahmed dcd6bd57ba Bug 1306942 - Fix all-tabs-menu position in RTL locales. r=ntim 2016-10-28 01:50:00 -04:00
Jan Odvarko 061357d124 Bug 1310801 - Remove non-printable characters. r=nchevobbe 2016-10-27 13:31:54 +02:00
Lin Clark 4680dc507d Bug 1313050 - Handle invalid dates in reps. r=nchevobbe 2016-10-26 09:42:00 -04:00
Nicolas Chevobbe e13905c730 Bug 1311426 - Handle Grip with wrapped value in Reps. r=Honza;
Handle object created from a constructor function, like `new Boolean(true)`,
`new Number(42)` or `new String("foo")`.
It displays the wrapped value using Rep so the primitives are displayed like
expected.

MozReview-Commit-ID: JrJVeV0C0wO
2016-10-24 07:32:32 +02:00
Nicolas Chevobbe 6e5189afd0 Bug 1310608 - Add a Rep for Promises. r=Honza;
MozReview-Commit-ID: BkeHonHQ28M
2016-10-24 19:24:10 +02:00
J. Ryan Stinnett cd2e2f271f Bug 1311178 - Expose some DevTools CSS as resource:// only. r=ntim
For CSS files which were used via both chrome:// and resource://, I converted
all usages to resource:// and removed the chrome:// copy to reduce file
duplication.

I believe most DevTools CSS could be using resource:// throughout, but that's
left as follow up work for now.

MozReview-Commit-ID: G7oxZqjodwv
2016-10-19 16:19:29 -05:00
Nicolas Chevobbe 57f03bddb9 Bug 1307908 - Implement custom styles in new console frontend. r=linclark,tromey;
Add the possibility to pass a style object to StringRep.
Parse the styles strings passed as argument using a dummy node element
to strip off forbidden properties and forbidden values.
Add a mocha test to ensure custom styles are rendered as expected.

MozReview-Commit-ID: I3LgeNRujaL
2016-10-08 15:31:11 +02:00
Nicolas Chevobbe e24b7b822e Bug 1311266 - Preserve line breaks for comment node rep in short mode. r=Honza;
Use `cropString` instead of `cropMultipleLines` to keep line breaks.
Edit tests accordingly.

MozReview-Commit-ID: 1fBVqtH0lb
2016-10-19 13:57:47 +02:00
Nicolas Chevobbe 067ec7855c Bug 1311266 - Add a rep for comment node. r=Honza;
MozReview-Commit-ID: B5ofNavxQIX
2016-10-19 07:51:37 +02:00
Jan Odvarko 176e5a0176 Bug 1281051 - Fix text-node rep. r=linclark 2016-09-28 17:43:34 +02:00
Phil Ringnalda 770d92a74f Merge autoland to m-c, a=merge
MozReview-Commit-ID: 3nuTAHtJkkD
2016-10-19 18:25:54 -07:00
Phil Ringnalda 82387edd0e Merge m-c to m-i
MozReview-Commit-ID: Ihd0iacfcIW
2016-10-18 19:45:02 -07:00
Phil Ringnalda 5359f7fbb2 Merge m-i to m-c, a=merge
MozReview-Commit-ID: FA9OZyjP59N
2016-10-18 19:36:18 -07:00
Carsten "Tomcat" Book 7c090ab8d2 Merge mozilla-central to mozilla-inbound 2016-10-18 10:44:04 +02:00
Gabriel Luong 9f48fd5235 Bug 1308227 - Add a CSS Grid accordion container to the layout panel r=jdescottes
MozReview-Commit-ID: ElJnsdJYXA
2016-10-14 20:31:04 -04:00
Nicolas Chevobbe e48d859fcb Bug 1309749 - Add reps for NaN and Infinity. r=Honza;
Add reps and test for it.
Edit Number rep's `supportsObject` function because there was
an error for `-0` object, due to some change in the function which
detect which rep to use.

MozReview-Commit-ID: 8Dz40E7LBb0
2016-10-15 10:58:29 +02:00
Carsten "Tomcat" Book 715217a8b5 Merge mozilla-central to autoland 2016-10-18 10:45:57 +02:00
Mark Banner 233309fbe2 Bug 1251003 - Change .eslintrc files to .eslintrc.js to avoid obsolete config file format. r=mossop
MozReview-Commit-ID: JrbFxQ5rj6I
2016-10-18 08:38:10 +01:00
Jan Odvarko 00b7cac513 Bug 1308742 - Preserve line breaks in String rep; r=linclark 2016-10-17 15:58:49 +02:00
Julian Descottes 48f014a16d Bug 1310615 - eslint: force unix style linebreaks in devtools;r=jryans
MozReview-Commit-ID: BOmZ5vBJ3Fm
2016-10-17 11:47:03 +02:00
Andrea Marchesini ae47ca23c2 Bug 1308956 - Get rid of MessagePortList - part 1 - MessagePortList removed from events, r=smaug 2016-10-13 15:19:24 +02:00
Sebastian Hengst f2200afdb1 Bug 1154789 - Create shared React component for searchbox: tell eslint that search-box.js has windows as global. r=eslint-fix 2016-10-12 19:35:09 +02:00
Tim Nguyen 18d957bec3 Bug 1154789 - Create shared React component for searchbox. r=jsnajdr
MozReview-Commit-ID: 3C2OinOHDY3
2016-10-12 18:17:39 +01:00
Tim Nguyen e8c152625c Bug 1306840 - Fix RTL in DOM panel. r=Honza
MozReview-Commit-ID: Djaa4douEBY
2016-10-11 09:54:29 +01:00
Nicolas Chevobbe 2e3b2c65d2 Bug 1305981 - Fix grip truncation on object with non-enumerable properties. r=Honza;
The problem is that we are checking the computed props against `object.ownPropertyLength` to see if there's more to show.
But, if an object has a non-enumerable property (like `prototype`), `ownPropertyLength` counts it,
but it does not appear `object.preview`.
To fix that, we do a simple check : if there is more item in the preview object than `max`, then we show the "more..." label.
Adds a test to ensure the problem is fixed.

In the same time, I did a little refactor on how we deal with the last object delimiter when we get the props, so we don't have
to go back to the last object and remove the comma.

MozReview-Commit-ID: 1drpuUOsLNI
2016-10-06 08:07:15 +02:00
Jan Odvarko 506cbafcc3 Bug 1276206 - Avoid caption clobber if more prop exists. r=linclark 2016-09-27 16:30:01 +02:00