Commit Graph
153 Commits
Author SHA1 Message Date
Darren M. OConnell e42a00ae38 Bug 1402397 - CamelCase React component files in /devtools/client/webconsole/new-console-output; r=pbro
MozReview-Commit-ID: JcsKS8w0Pec
2017-09-28 12:09:31 +02:00
Nicolas Chevobbe fee723d060 Bug 1403895 - Remove devtools/shared/client/main.js; r=ochameau.
Remove the main file that we don't need anymore and modify all
the imports to target the specific file they now need.

MozReview-Commit-ID: 2uWjTnAMAU0
2017-09-29 15:24:14 +02:00
Brian Grinstead 735876aedb Bug 1402237 - Always scroll to bottom when the first messages are rendered;r=nchevobbe
MozReview-Commit-ID: B3YY3Tvwk5A
2017-09-29 09:50:17 -07:00
Dan Epstein c958bdf812 Bug 1402394 CamelCase all React component files in \devtools\client\shared\components\. r=pbro
MozReview-Commit-ID: HH4mbqB6RTK
2017-09-27 01:12:13 -04:00
Alexandre Poirot 85e1e7d7dd Bug 1371721 - Resolve dispatchMessageAdd promise only when the related message is logged. r=nchevobbe
`timeStamp` was no longer passed with `new-messages` event.

MozReview-Commit-ID: 6yF9B6CSrPs
2017-09-19 11:04:29 +02:00
Nicolas Chevobbe c862daa0c4 Bug 1399460 - Adapt the console to the new Reps bundle. r=Honza.
This is mainly changing the props we pass to the ObjectInspector,
and removing actions, state properties and reducers that we used to
handle in the console but are now managed by the ObjectInspector
itself.

MozReview-Commit-ID: F2GabDqDjPe
2017-09-07 13:09:24 +02:00
Jan Odvarko ad6bcf0197 Bug 1394681 - Properly open links. r=rickychien
MozReview-Commit-ID: HdtFyQnIOUj
2017-09-06 12:27:17 +02:00
Gabriel Luong e011a4beb9 Bug 1396345 - Add a separator between the clear and filter buttons in the console. r=nchevobbe 2017-09-04 08:52:00 -04:00
Brian Grinstead ca5564824e Bug 1307881 - Part 2 - Provide a UI within the Web Console for managing persistence;r=nchevobbe
MozReview-Commit-ID: GVkOms1o74c
2017-08-31 21:43:42 -07:00
Jan Odvarko 90394f0670 Bug 1362036 - Open in network panel; r=nchevobbe
MozReview-Commit-ID: 3Cg0PVITRVG
2017-08-30 15:16:39 +02:00
Jan Odvarko 8cf25b940f Bug 1362036 - Remember active network tab id; r=nchevobbe
MozReview-Commit-ID: BXiWywtQMwI
2017-08-30 15:16:39 +02:00
Jan Odvarko 2e7af478f2 Bug 1362036 - Implement http inspection in new console; r=nchevobbe
MozReview-Commit-ID: FhYePLM2T3O
2017-08-30 15:16:39 +02:00
Gabriel Luong e60a898c8d Bug 1394513 - Part 2: Fix the devtools separator styling in the webconsole and make the filter message text unselectable. r=bgrins 2017-08-29 20:39:55 -04:00
Nicolas Chevobbe 970a014803 Bug 1307880 - Show the number of filtered messages. r=bgrins
This adds a "filteredMessagesCount" property to the messages store,
which is updated at the same time as we update the "visibleMessages"
property.
The global number of hidden messages is then shown next to the text search
input, and a button can be clicked to Reset the filters to their original
values.
This only takes into account messages that are filtered-out because
the default filters changes. Which means that non-default filters, like
CSS, Network and XHR don't impact filteredMessagesCount.

We take this as an opportunity to rename the match*Filter functions to
pass*Filter, since it better represents what the function does (a network
message is not impacted by a level filter, but it can be misleading to say
that it matches level filters).

MozReview-Commit-ID: BLPmCFNtzEl
2017-08-18 14:01:38 +02:00
Nicolas Chevobbe a881a40c9c Bug 1389803 - Scroll the console to the bottom on Evaluation result. r=bgrins
This ensures that we scroll to the bottom when the user evaluate
something in the console.
A test is added to make sure this works as expected.

MozReview-Commit-ID: Arh6rftQeKo
2017-08-18 17:46:52 +02:00
Jan Odvarko d83e1e42d3 Bug 1385791 - Fix message filtering; r=nchevobbe
MozReview-Commit-ID: 4iPLGUor0Pu
2017-08-11 17:10:54 +02:00
Nicolas Chevobbe 9e2d46f4f4 Bug 1389161 - Fix console.table for nested object with falsy values; r=Honza.
A loose checking was causing 0 and undefined values to be rendered as Object.
We fix this by checking explicitely if the grip has a value property.
A test is added to make sure we handle those cases as expected.

MozReview-Commit-ID: 1wdBVs7bF61
2017-08-11 10:12:43 +02:00
Nicolas Chevobbe 0c90f98e7c Bug 1307931 - Make urls in output clickable; r=bgrins.
This passes an openLink callback to the Reps which handles the output.

MozReview-Commit-ID: L6q9wAWmwrp
2017-08-03 16:25:40 +02:00
Nicolas Chevobbe 3b590a4bd7 Bug 1307931 - devtools reps: update bundle to v0.12.1. r=bgrins
This required some changes in the ConsoleTable component. Since
it uses GripMessageBody, we need to pass it props that it might
need.

MozReview-Commit-ID: DNeBsmJqCFI
2017-08-10 19:02:56 +02:00
Nicolas Chevobbe 94acc569b1 Bug 1380709 - Fetch Map/Set entries when expanding the Object Inspector. r=bgrins
Add getObjectEntries and loadObjectEntries as props for the ObjectInspector so
we can display entries on Maps and Sets.

MozReview-Commit-ID: Cy6SjxwclHI
2017-08-01 16:17:00 +02:00
Sebastian Hengst cbb8f10459 Backed out changeset 306169f86028 (bug 1380709) 2017-08-02 18:05:21 +02:00
Nicolas Chevobbe 92875b786e Bug 1380709 - Fetch Map/Set entries when expanding the Object Inspector. r=bgrins
Add getObjectEntries and loadObjectEntries as props for the ObjectInspector so
we can display entries on Maps and Sets.

MozReview-Commit-ID: Cy6SjxwclHI
2017-08-01 16:17:00 +02:00
Nicolas Chevobbe abb470b008 Bug 1383017 - Remove border for top-level messages. r=bgrins
This adds a data-indent attribute to the message indent component
so we can target it in CSS.

MozReview-Commit-ID: DEUTHe42Pa0
2017-07-18 17:00:14 +01:00
Nicolas Chevobbe 032e8ce73a Bug 1374680 - Retrieve indent property from the message in the messages types components; r=bgrins
We don't retrieve the indent from the MessageContainer anymore, but from the lowest-level
component where we have access to the full message data, i.e. the messages types components (e.g.
ConsoleApi, EvaluationResult, … ).

MozReview-Commit-ID: JkaIcxnyt3W
2017-06-22 11:57:28 +02:00
Nicolas Chevobbe 2e1627a607 Bug 1379570 - Adapt the inspect command to the new console frontend. r=bgrins
MozReview-Commit-ID: LsT12pOJhvV
2017-07-11 13:50:59 +02:00
Wes Kocher 4bc98bfd1b Backed out changeset c676af6947ac (bug 1379570) for devtools failures in browser_webconsole_check_stubs_console_api.js a=backout
MozReview-Commit-ID: GMaDw6nXEwJ
2017-07-17 14:12:35 -07:00
Nicolas Chevobbe d4a4ecd2ad Bug 1379570 - Adapt the inspect command to the new console frontend. r=bgrins
MozReview-Commit-ID: LsT12pOJhvV
2017-07-11 13:50:59 +02:00
Nicolas Chevobbe cd7cd71ba5 Bug 1307922 - Add support for console.dir(); r=Honza
MozReview-Commit-ID: 9TKWqF5FOWr
2017-07-12 14:57:00 +02:00
Nicolas Chevobbe 6666fbf743 Bug 1308566 - Use Object Inspector in Console. r=bgrins,Honza
MozReview-Commit-ID: 9jzXwHlBu3X
2017-07-11 16:29:41 +02:00
Nicolas Chevobbe ab5d787675 Bug 1373568 - Retrieve message data in MessageContainer instead of in ConsoleOutput; r=bgrins.
Prior to this patch, we were retrieving the message data in the ConsoleOutput
render, for each message. This means that for each message addition, we were
retrieving the data for each message in the store.
This doesn't impact performance if there are not many messages in the store, but
if the store is "full", we might end up calling the function to get those messages
a lot. And since the messages are in an Immutable.OrderedMap, it can be very costly.

Moving the retrieval of the message data in ConsoleOutput allow us to only call this
function when a message is added or updated, which allow us to save some time on
the rendering path.

MozReview-Commit-ID: S4NSSW5Mvw
2017-06-16 10:03:05 +02:00
Nicolas Chevobbe 5b53eaba61 Bug 1361541 - Fix warning messages in dev mode. r=Honza
MozReview-Commit-ID: KrndGb2zQuD
2017-06-16 14:48:31 +02:00
Nicolas Chevobbe 74568bbd46 Bug 1363681 - Move the network update information outside of the message type. r=Honza
This moves network update messages to their own property on the store.
We take this as an opportunity to only dispatch the last network update,
i.e. `eventTimings` since it has all we need and saves us some time (there
are 8 network update per network messages, which can be costly).

MozReview-Commit-ID: 2AQN3IlgHg7
2017-06-06 11:56:22 +02:00
Nicolas Chevobbe a53b63b8ae Bug 1363680 - Move the repeat information outside of the message type. r=Honza
MozReview-Commit-ID: J7IJgEYnLhn
2017-06-05 14:15:09 +02:00
Nicolas Chevobbe 885cbcb798 Bug 1363678 - Move the filtering logic to the reducer. r=bgrins
We used to do the filtering on the selector, which can be costly because
we're looping through all the messages of the store on each new message.
Moving the logic to the reducer allow us to be more thoughtful about which
messages to evaluate and when.

In order to make this change, we need to pass the filter state to the message
reducer. This is done by ditching the combineReducers helper function and do
the plumbing by ourselves, which isn't complex.

MozReview-Commit-ID: Lw37XgEFf7e
2017-05-31 09:27:43 +02:00
Jan Odvarko 559f9ca162 Bug 1368022 - Remove autoscroll property from UI reducer; r=nchevobbe
MozReview-Commit-ID: IwOvNrJjS1l
2017-05-30 17:03:34 +02:00
Sebastian Hengst d2b796d929 Backed out changeset 7b9687c90aea (bug 1368022) for eslint failures, e.g. in console-output.js. r=backout 2017-05-29 18:08:01 +02:00
Jan Odvarko 895e0bfc4e Bug 1368022 - Remove autoscroll property from UI reducer; r=nchevobbe
MozReview-Commit-ID: 6KnCE7uj6pz
2017-05-29 10:33:44 +02:00
Jan Odvarko a999bac0e4 Bug 1363696 - Compute the indent of a message in the message add reducer; r=nchevobbe
MozReview-Commit-ID: EAebgUG0FTh
2017-05-26 11:20:57 +02:00
Sebastian Hengst 54d8c34dad Backed out changeset ac956e9a5d32 (bug 1363696) for eslint failure at devtools/client/webconsole/new-console-output/components/console-output.js:85. r=backout 2017-05-26 10:35:30 +02:00
Jan Odvarko f08f21e0fa Bug 1363696 - Compute the indent of a message in the message add reducer; r=nchevobbe
MozReview-Commit-ID: EAebgUG0FTh
2017-05-26 08:28:52 +02:00
Brian Grinstead 25665a39b0 Bug 1364353 - Remove unused onClickFiltersClear function;r=nchevobbe
MozReview-Commit-ID: 18vhqno816A
2017-05-18 11:00:53 -07:00
Tom Tromey 97e45c1b8b Bug 1317962 - use source maps in stack traces in the console; r=jryans
MozReview-Commit-ID: 9SPZDi50XZv
2017-05-02 12:51:51 -06:00
Brian Grinstead 1287ed5f20 Bug 1363768 - Prevent creating constant elements during render;r=nchevobbe
MozReview-Commit-ID: IPWczrp1TOA
2017-05-11 09:59:49 -07:00
Phil Ringnalda 479af68a2c Backed out changeset 8ff81b6fdfb8 (bug 1317962) for frequent Windows failures in browser_console_copy_entire_message_context_menu.js
CLOSED TREE

MozReview-Commit-ID: ADIiRxXlKs1
2017-05-04 20:56:39 -07:00
Tom Tromey 469d05c675 Bug 1317962 - use source maps in stack traces in the console; r=jryans
MozReview-Commit-ID: 9SPZDi50XZv
2017-05-02 12:51:51 -06:00
Brian Grinstead aeabbbbb9a Bug 1361429 - Convert FilterButton to functional component;r=nchevobbe
MozReview-Commit-ID: 5ILDOVR3GS7
2017-05-03 07:31:35 -07:00
Brian Grinstead 67b715fe2a Bug 1361429 - Grab only the filterBarVisible property to limit number of re-renders for FilterBar;r=nchevobbe
MozReview-Commit-ID: JJMPDEDNbhZ
2017-05-03 07:27:52 -07:00
nchevobbe 2330b148e2 Bug 1358507 - Simplify component tree. r=bgrins
MozReview-Commit-ID: 3os1JlDVeEI
2017-04-28 11:38:13 +02:00
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