Commit Graph
892 Commits
Author SHA1 Message Date
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
Alexandre Poirot f3e9c821ce Bug 1371721 - Wait for redux store events before dispatching network-request-payload-ready and network-message-updated events. r=nchevobbe
MozReview-Commit-ID: LJGiuNI44QB
2017-09-18 19:26:28 +02:00
Alexandre Poirot 986ad16d95 Bug 1371721 - Keep logging repeated messages even when we reached the log-limit. r=nchevobbe
MozReview-Commit-ID: J0BXOay3huU
2017-09-18 17:51:31 +02:00
bgrins 5280a9f304 Bug 1371721 - Create a MESSAGES_ADD action to add batches of messages at once. r=nchevobbe
MozReview-Commit-ID: GUp3lQpNxfn
2017-09-15 11:10:11 +02:00
Tom Tromey aab59e7b78 Bug 1385337 - add MDN learn more link to source map errors; r=bgrins
MozReview-Commit-ID: 185sNVSJIrz
2017-09-15 14:15:10 -06:00
Nicolas Chevobbe 73d6077e92 Bug 1399460 - Fix for browser_webconsole_check_stubs_console_api. r=Honza
The test that checked console api stubs was failing because we were trying
to reach the server while the connection was closed, which throws an error.
This patch filters-out log messages in the console output so we don't get
unwanted server communication. The output is not important here since we
are only listening to the consoleAPICall event.

MozReview-Commit-ID: Ay5fQ1CSbLx
2017-09-14 18:49:43 +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
Nicolas Chevobbe 7594f16476 Bug 1399161 - Fix filter bar mocha test. r=Honza
MozReview-Commit-ID: Jd5QkCrnLKq
2017-09-12 17:43:38 +02:00
Jan Odvarko 3a4dcd4a86 Bug 1395834 - Launchpad is broken; r=nchevobbe
MozReview-Commit-ID: CdeEvvE6ExB
2017-09-14 09:50:54 +02:00
Tom Tromey 3370dfb58a Bug 1398869 - regenerate console css message fixture; r=KWierso CLOSED TREE
This is fallout from the servo patch mentioned in this bug.
https://hg.mozilla.org/integration/autoland/rev/578381b9e794825ff32dce7b4e8a9db82631038f

MozReview-Commit-ID: FNkaSkRnafr
2017-09-12 14:49:34 -06:00
Tom Tromey 7d2e54a89e Bug 1388497 - apply source maps to CSS warnings in the console; r=bgrins
MozReview-Commit-ID: 8ObL0uwENrM
2017-08-15 14:32:56 -06:00
Sebastian Hengst 1197f950f9 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JSRVc5yW6Kx
2017-09-07 12:39:12 +02:00
J. Ryan Stinnett 2c73e773e8 Bug 1386384 - Update DevTools CSS stubs for Stylo. r=bgrins
Two specific changes have occurred with Stylo:

* `lineText` is no longer set because it caused performance regressions to
  compute it and it is currently unused by DevTools.
* `columnNumber` is computed differently with Stylo.  It's currently the
  beginning of property, instead of the end.  Bug 1378861 is filed for future
  improvements to this info.

MozReview-Commit-ID: 5vTdjNbuhXe
2017-09-06 12:34:57 -05:00
Wes Kocher 706305cec6 Backed out changeset 3adbca67c67a (bug 1386384) for failures in browser_webconsole_check_stubs_css_message.js a=backout
MozReview-Commit-ID: KcVljvaTReX
2017-09-06 13:47:13 -07:00
J. Ryan Stinnett 220d5c973c Bug 1386384 - Update DevTools CSS stubs for Stylo. r=bgrins
Two specific changes have occurred with Stylo:

* `lineText` is no longer set because it caused performance regressions to
  compute it and it is currently unused by DevTools.
* `columnNumber` is computed differently with Stylo.  It's currently the
  beginning of property, instead of the end.  Bug 1378861 is filed for future
  improvements to this info.

MozReview-Commit-ID: 5vTdjNbuhXe
2017-09-06 12:34:57 -05: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
Jan Odvarko ad6bcf0197 Bug 1394681 - Properly open links. r=rickychien
MozReview-Commit-ID: HdtFyQnIOUj
2017-09-06 12:27:17 +02:00
Jan Odvarko 7119c1bd92 Bug 1395515 - Introduce webpack aliases for netmonitor modules; r=nchevobbe
MozReview-Commit-ID: GH2lFglw67O
2017-09-01 16:44:28 +02:00
Tom Tromey fa23abfa8b Bug 1395545 - test that an invalid source map is reported to the console; r=nchevobbe
MozReview-Commit-ID: 4a1auGMOKGT
2017-08-31 12:03:24 -06:00
Brian Grinstead 3237a729ef Bug 1307881 - Part 3 - Remove unused filteredMessageVisible prop from the state;r=nchevobbe
MozReview-Commit-ID: D5TKjuuvpgt
2017-08-31 21:45:00 -07: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
Nicolas Chevobbe 7d3da27779 Bug 1390815 - Fix console launchpad. r=bgrins,Honza,jdescottes
This updates devtools-launchpad to 0.0.96, and thus
makes the console launchpad uses Webpack 3.
Because of this version bump, the console launchpad
config needed some adjustments to keep working:
- Replace loaders with rules
- Pass the babelExclude property in the option argument for launchpad config
- Change the name of the svg filter to exclude
- Add a workaround "raw!" required-files (remove the "raw!" prefix in a loader).

An alias needed to be added as well for devtools/shim/locales.

MozReview-Commit-ID: 3cWXYw6gNc7
2017-08-29 09:46:49 +02:00
Tom Tromey 2c4ab81b95 Bug 1395262 - use plain console.error in devtools promise catches; r=bgrins
MozReview-Commit-ID: C8IhVPckQJ7
2017-08-30 12:05:41 -06:00
Jan Odvarko df469ba9f2 Bug 1362036 - Generate stubs; r=nchevobbe
MozReview-Commit-ID: ILcUaOuO3IG
2017-08-30 15:16:40 +02:00
Jan Odvarko 85f91d53dd Bug 1362036 - Implement tests; r=nchevobbe
MozReview-Commit-ID: KvvWrHUC8m6
2017-08-30 15:16:39 +02: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
Ryan VanderMeulen 8884303c17 Bug 1390001 - Disable various webconsole tests on Win64 that permafail after the uplift to Beta. f=pbro, r=me 2017-08-30 10:24:03 -04:00
Sebastian Hengst 5a5c7d0dc6 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gf0QPFp52Bj
2017-08-30 11:05:16 +02:00
Wes Kocher 61dcd00825 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 5c1Pgm4aVKe
2017-08-29 16:17:50 -07:00
Masatoshi Kimura 8cbbf538bb Bug 1098412 - Remove and update tests that use __iterator__. r=luke
MozReview-Commit-ID: 7mxZYAceiuN
2017-08-24 22:25:25 +09: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
André Bargull 61df51ba77 Bug 1381433 - Throw when Date.prototype.toString is called with non-Date object per ES2018 spec draft. r=till, r=bgrins 2017-07-17 03:43:15 -07:00
Nicolas Chevobbe 12c033676a Bug 1307880 - Add tests for the "Hidden messages" toolbar. r=bgrins
This adds some tests to ensure the hidden messages toolbar works
as expected. There are some for testing the component itself, as
well as some to test the store.
Some fixtures were modified as well to better represent the state
of the application.


MozReview-Commit-ID: 3Swqff1mbck
2017-08-08 15:27:03 +02: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
Nicolas Chevobbe b1432d2d65 Bug 1380512 - Fix intermittent on browser_webconsole_check_stubs_console_api; r=Honza.
This hopefully fix the frequent intermittent on this test.
In the cleanPacket function, we are overriding the actor
of arguments. Thus, some server-calls were using an unknown
actorId, which resulted in errors.
We now create a new object for the argument for the stub so
we don't override anything.

MozReview-Commit-ID: EcvVUqQS3Dt
2017-08-16 11:23:54 +02:00
Brian Grinstead ee0f10fae7 Bug 1390176 - Increase console logLimit;r=nchevobbe
MozReview-Commit-ID: 3Ynr58lLQcs
2017-08-16 10:05:31 -07:00
Brian Grinstead 53d677102d Bug 1390176 - Fix the jsterm stub in test_render_perf;r=nchevobbe
MozReview-Commit-ID: 8qYIthlQtXa
2017-08-16 10:04:45 -07:00
Jan Odvarko 0410ab11a5 Bug 1390077 - Add readme about stubs generator instructions; r=nchevobbe
MozReview-Commit-ID: Ka6igCDyqRE
2017-08-15 15:10:49 +02:00
Nicolas Chevobbe 05e2e56e0b Bug 1380512 - Fix intermittent on browser_webconsole_check_stubs_console_api; r=Honza
There was an error because of the console.dir call, which is calling
the server to fetch the properties of the inspected object.
But, since the console.dir call was the last command to be called,
the actor were cleared before the properties fetch call was done,
resulting in an error on the server (no such actor for ID).
To fix this, we wait for the properties fetch call to be done
before closing the tab.

MozReview-Commit-ID: 9bsh3vHVPVa
2017-08-14 10:30:59 +02:00
Jan Odvarko 9d341eb964 Bug 1385791 - Fix tests; r=nchevobbe
MozReview-Commit-ID: LFKwQHj1pIk
2017-08-11 17:10:55 +02:00
Jan Odvarko d83e1e42d3 Bug 1385791 - Fix message filtering; r=nchevobbe
MozReview-Commit-ID: 4iPLGUor0Pu
2017-08-11 17:10:54 +02:00
Jan Odvarko 8c9f05df00 Bug 1385791 - New stubs for tests; r=nchevobbe
MozReview-Commit-ID: JoD9ej6689V
2017-08-11 17:10:54 +02:00
Jan Odvarko 4b6b80d8e9 Bug 1385791 - Babel support for async func; r=nchevobbe
MozReview-Commit-ID: LTgs0iPG2j0
2017-08-11 17:10:54 +02:00
Wes Kocher 1865918a1a Merge m-c to autoland a=merge
MozReview-Commit-ID: LsPv9Mdodvf
2017-08-11 13:39:17 -07:00
Wes Kocher 399a13fd39 Merge inbound to central, a=merge
MozReview-Commit-ID: GArkKmOFIVH
2017-08-11 13:15:33 -07:00
Nicolas Chevobbe 66b30b5346 Bug 1389528 - Fix mocha tests; r=Honza.
Tests were failing because we did not pass the expected serviceContainer prop
to the EvaluationResult component.

MozReview-Commit-ID: F6xKoY6vggb
2017-08-11 17:37:55 +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