Commit Graph

105 Commits

Author SHA1 Message Date
nchevobbe
e172e6dea1 Bug 1358937 - Fix console crash due to longString error messages; r=bgrins
MozReview-Commit-ID: 95m5bvQDcdB
2017-04-25 14:05:28 +02:00
nchevobbe
07fed53b5b Bug 1307940 - Add toolbox-dependent method to serviceContainer only if toolbox is available. r=bgrins
MozReview-Commit-ID: CjRXKemaJ4f
2017-04-24 10:09:27 +02:00
nchevobbe
be2efe1402 Bug 1307940 - Add icon next to ElementNodeRep to select node in inspector; r=bgrins,jdescottes
MozReview-Commit-ID: InGASswqAAA
2017-04-21 09:23:11 +02:00
Tom Tromey
fc99179caa Bug 1353038 - do not quote whitespace in console evaluation results; r=nchevobbe
Don't escape whitespace in console evaluation results.  This preserves
the behavior of the old console, and in particular makes pprint() more
useful again.

MozReview-Commit-ID: CrWWXjtSBIw
2017-04-20 11:58:35 -06:00
nchevobbe
d8840a78b0 Bug 1358103 - Remove createFactory call on Reps; r=jdescottes
The new Reps bundle from Bug 1357341 is all about functions now,
so we should remove all unnecessary `createFactory` calls
we used to do when creating Reps.

MozReview-Commit-ID: 4KvCThhwphv
2017-04-21 08:50:24 +02:00
nchevobbe
4e79e43782 Bug 1357341 - Fix VariableView with new Reps bundle; r=jdescottes
MozReview-Commit-ID: GSOyL6Nx23Z
2017-04-20 12:12:14 +02:00
nchevobbe
72f4acabef Bug 1355869 - Delay scrollToBottom on next tick in console init. r=bgrins
The call to scrollToBottom could take a good amount of time if there were
already logged messages in the console. This might be related to the fact that
componentDidMount is called although there is some layout or paint work.
Delaying the first call to scrollToBottom in the component greatly reduced the
time spent in scrollToBottom.

MozReview-Commit-ID: F3cRYV4OFhm
2017-04-12 17:21:27 +02:00
nchevobbe
e6b2727561 Bug 1355454 - Move "createFactories" function from Reps to a shared util. r=jdescottes
MozReview-Commit-ID: LmGBg2HSzOC
2017-04-12 08:33:37 +02:00
Tom Tromey
41d00b8e41 Bug 1342526 - quote string expression results in console; r=nchevobbe
MozReview-Commit-ID: 1HFbotCZoZ6
2017-03-14 04:28:43 +01:00
Julian Descottes
ffa358a329 Bug 1340806 - stop using load-reps wrapper;r=nchevobbe
MozReview-Commit-ID: GL9Sm6W2JCM
2017-02-18 22:43:22 +01:00
Tooru Fujisawa
0f794fc52b Bug 1283712 - Part 11.4: Fix assignment. r=me 2017-02-17 05:28:41 +09:00
Tooru Fujisawa
fb86e22154 Bug 1283712 - Part 11.1: Show notes in devtools console. r=nchevobbe 2017-02-15 23:53:07 +09:00
Tim Nguyen
265bbb90e8 Bug 1255116 - Simplify toolbar button styles. r=jryans
MozReview-Commit-ID: 9J11mNk2c5W
2017-02-14 19:34:54 +00:00
Nicolas Chevobbe
41169b8a94 Bug 1336937 - Add aria-pressed to the filter buttons in new console. r=jdescottes
MozReview-Commit-ID: FEvuSd3RQ67
2017-02-06 13:41:08 +01:00
Ricky Chien
6783233089 Bug 1307892 - Add support for network event update message r=nchevobbe
MozReview-Commit-ID: 4lat3RYa4YN
2017-01-29 13:07:58 +08:00
Julian Descottes
8fc2ba66a5 Bug 1307906 - add newline and spaces in console msg for clipboard;r=nchevobbe
MozReview-Commit-ID: 51djydkJx4R
2017-01-23 19:41:44 +01:00
Nicolas Chevobbe
147aef1bcd Bug 1321485 - Localize filter bar. r=jdescottes
MozReview-Commit-ID: p9Pg2Qyz3Q
2017-01-23 13:27:19 +01:00
Nicolas Chevobbe
1e2a920cb7 Bug 1321485 - Cleanup filter bar. r=jdescottes
Remove code for additional toolbar which isn't shown for now.
Fix mocha test since it was failing.

MozReview-Commit-ID: p9Pg2Qyz3Q
2017-01-23 13:26:51 +01:00
Julian Descottes
ad0dcd29ff Bug 1315922 - fix react/prop-types issues in client/webconsole;r=nchevobbe
MozReview-Commit-ID: Am3qt8UxRyr
2017-01-10 15:15:39 +01:00
Julian Descottes
f79f7d5fef Bug 1325401 - Add a reps bundle, disabled by default;r=jlast
MozReview-Commit-ID: IJL8wevR0wo
2017-01-18 14:38:10 +01:00
Ryan VanderMeulen
821fdc514c Backed out changeset 8091269b852c (bug 1325401) for breaking ESLint on a CLOSED TREE. 2017-01-12 14:08:56 -05:00
Jason Laster
fb88b1a4f6 Bug 1325401 - Start using Reps bundle behind a flag. r=bgrins 2017-01-11 09:21:00 -05:00
Sebastian Hengst
c6d9ef3e98 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen
548b6bdbef Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Julian Descottes
ec5e077f01 Bug 1307239 - add context menu to new console frontend;r=nchevobbe
MozReview-Commit-ID: 6btSC89pBmG
2016-12-29 17:06:59 +01:00
Nicolas Chevobbe
55a490a50b Bug 1318796 - Open the appropriate tool when clicking on a location in the new console; r=jdescottes
We were always opening the debugger when clicking on the location link,
which could be wrong since we can have CSS warnings, or logs coming from Scratchpad.
So we add the function to open in StyleEditor and Scratchpad, and copy some mochitests
that where testing the interaction with those links.


MozReview-Commit-ID: 73mQNfy199m
2016-12-01 08:29:43 +01:00
Nicolas Chevobbe
13e25f1a6d Bug 1317069 - Fix ESLint in new console frontend; r=ntim
MozReview-Commit-ID: 7MgHbRxnU1V
2016-12-08 09:16:41 +01: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
c25d8dfa93 Bug 1314573 - Uses Reps in long mode in the console; r=bgrins
In the MessageBody component, we already have the "mode" props we use
to pass it to the Reps. We only default it to "long" so most of the
message will use it.
We only need to specify to use "short" mode in ConsoleTable cells.

MozReview-Commit-ID: 6KyZkN86bHJ
2016-11-17 13:38:23 +01:00
Tim Nguyen
31a07ed744 Bug 1307871 - Add new console frontend support for 'Enable timestamps' pref. r=bgrins
MozReview-Commit-ID: FshE769sETL
2016-11-15 19:23:47 +00: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
Tim Nguyen
16b0ab24c0 Bug 1307942 - Add CSS warnings and errors to new console. r=bgrins
MozReview-Commit-ID: FB0P3X0r7Jz
2016-11-14 17:33:29 +00: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
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
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
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
c6e6f52b04 Bug 1307919 - Add "Learn more" MDN link in message output. r=linclark;
MozReview-Commit-ID: DSAGjD0umzG
2016-10-15 01:06:42 +02:00
Nicolas Chevobbe
b597f028c3 Bug 1308840 - Fixes expanding/collapsing stacktraces. r=linclark;
Fixes the "dispatch is not a function error", passing the dispatch prop from `PageError` to `Message`.
Make the message collapsible only if the message is a group or an error with a stacktrace.
Adds mocha tests.

MozReview-Commit-ID: CkvV2z4yfcV
2016-10-10 08:12:15 +02:00
Nicolas Chevobbe
47b1aa9d50 Bug 1307873 - Add support for console group. r=linclark 2016-10-07 07:17:00 -04:00
Brian Grinstead
d7ab8a54dd Bug 1304178 - Use a different node to scroll in old and new frontends;r=linclark
MozReview-Commit-ID: CirqjyCei5n
2016-10-06 17:10:00 -07:00
Brian Grinstead
b10a55c884 Bug 1304178 - Return a promise from dispatchMessageAdd to support jsterm.execute callback for tests;r=linclark
MozReview-Commit-ID: AeRsjFiyikv
2016-10-04 11:32:45 -07:00
Lin Clark
d7463b348c Bug 1307243 - Part 2: Fix Ctrl-F keyboard shortcut and add test. r=bgrins
MozReview-Commit-ID: 3Z5Vp6UMii4
2016-10-04 11:31:40 -07:00
Lin Clark
8649071822 Bug 1307243 - Part 1: Consolidate services in a service container and add addRefToHud. r=bgrins
MozReview-Commit-ID: 4lDTLFzh5ly
2016-10-04 11:31:38 -07:00
Lin Clark
6d632efe28 Bug 1306751 - New console frontend: Emit new-message from componentDidMount. r=bgrins
MozReview-Commit-ID: 1JS6FcDU9qr
2016-10-02 15:16:50 -07:00
Nicolas Chevobbe
3868d44ac2 Bug 1306781 - New console frontend: Add title on repeat element. r=linclark
MozReview-Commit-ID: L10G6ShRuXR
2016-10-02 15:16:49 -07:00
Lin Clark
ef9ddffa30 Bug 1306775 - New console frontend: Fix classes on page errors and console commands. r=me
MozReview-Commit-ID: 97gjsvbKt1d
2016-10-02 15:16:49 -07:00
Lin Clark
61e402b63a Bug 1306099 - New console frontend: Fix scrolling. r=bgrins
MozReview-Commit-ID: 3xRTUTh53Bp
2016-10-02 15:16:49 -07:00
Lin Clark
2a943f4a13 Bug 1306622 - New console frontend: Fix stacktrace expandable closure. r=me
MozReview-Commit-ID: DugEHmQvbXd
2016-10-02 15:16:49 -07:00
Lin Clark
a63cac5b49 Bug 1306622 - New console frontend: Factor out common HTML structures from message types. r=bgrins
MozReview-Commit-ID: 3JjyRuJyFAP
2016-10-02 15:16:49 -07:00