Commit Graph
36 Commits
Author SHA1 Message Date
Alexandre Poirot 1bab0e4ff3 Bug 2013935 - [devtools] Show exception message and stack when failing to render a console message. r=devtools-reviewers,nchevobbe
Also ensure logging an error to the console.

Differential Revision: https://phabricator.services.mozilla.com/D281501
2026-02-09 09:31:14 +00:00
Alexandre Poirot 26260731f1 Bug 1953578 - [devtools] Migrate all usage of react CommonJS module to the ES Module version and remove the CommonJS version. r=devtools-reviewers,profiler-reviewers,nchevobbe,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D241593
2025-03-19 13:30:51 +00:00
Joshua O'Brien 026ddab7bd Bug 1948347 - Add date title to timestamps in developer console. r=nchevobbe,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D241190
2025-03-13 07:18:46 +00:00
Nicolas Chevobbe 468323a509 Bug 1888645 - [devtools] Fix SmartTrace crash with wasm frames. r=devtools-reviewers,bomsy.
In some cases, we were getting null sourceId, which was causing an exception
to be thrown in `getFormattedSourceId` since it expects a string.
We add a simple guard in this function so we don't throw anymore.

But we shouldn't get null sourceId in the first place. It looks like for
some Wasm sources, the SavedFrame sourceId can be 0, which wasn't playing
well with some loose check we were doing in the sources manager.

Finally, the "Copy metadata" button we display when a console message crash
wasn't working. The message now includes the targetFront, which can be serialized
in JSON, so we simply ignore it.

Differential Revision: https://phabricator.services.mozilla.com/D206105
2024-05-13 10:17:15 +00:00
Mark Banner 0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner 91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Alexandre Poirot 59fe57c052 Bug 1793396 - [devtools] Use absolute URLs in all usages of loader.lazyRequireGetter. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D158489
2022-10-03 18:57:13 +00:00
Alexandre Poirot 465fac9684 Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/webconsole. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158380
2022-09-30 15:17:40 +00:00
Hubert Boma Manilla d310c72aff Bug 1775058 - [devtools] Functionality to disable webconsole messages r=nchevobbe
This introduces functionality to support disabling weconsole messages.
Also introduces code to disable all network messages, which would be
used by the netmonitor.

You'll probably need the fullstack of patches to test easily

Will add mochitest in a followup

Differential Revision: https://phabricator.services.mozilla.com/D149753
2022-07-04 17:18:50 +00:00
Nicolas Chevobbe b571060f67 Bug 1764236 - [devtools] Make copy messages action compatible with virtualized console. r=dthayer.
This is a naive implementation where we re-create a ConsoleOutput
element, reusing the existing store, and passing a specific prop
so all the messages would be rendered.

In order to include stacktraces, we pass a `0` initial render delay to the
callsites of the `SmartTrace` component.
We take this as an opportunity to extend the test coverage of `SmartTrace` around
this feature.

Differential Revision: https://phabricator.services.mozilla.com/D142189
2022-04-12 06:45:37 +00:00
Marian-Vasile Laza f67bf0cb70 Backed out changeset db337e401470 (bug 1764236) as requested by the dev. CLOSED TREE 2022-04-11 22:53:55 -07:00
Nicolas Chevobbe 44e655d26a Bug 1764236 - [devtools] Make copy messages action compatible with virtualized console. r=dthayer.
This is a naive implementation where we re-create a ConsoleOutput
element, reusing the existing store, and passing a specific prop
so all the messages would be rendered.

In order to include stacktraces, we pass a `0` initial render delay to the
callsites of the `SmartTrace` component.
We take this as an opportunity to extend the test coverage of `SmartTrace` around
this feature.

Differential Revision: https://phabricator.services.mozilla.com/D142189
2022-04-12 05:36:59 +00:00
Nicolas Chevobbe 92409f469a Bug 1761510 - [devtools] Don't render indent element when it's not needed. r=bomsy.
We move the `data-indent` attribute to the message element so tests can still
query it.

Differential Revision: https://phabricator.services.mozilla.com/D142098
2022-03-31 06:55:10 +00:00
Nicolas Chevobbe 1095bdfd19 Bug 1761510 - [devtools] Remove extra element for console message location. r=bomsy.
we directly use what's returned from the `Frame` component. We allow to pass
an extra `className` prop to it so we can still add the `message-location` class
that is used in the console.

Differential Revision: https://phabricator.services.mozilla.com/D142097
2022-03-31 06:55:09 +00:00
iamnk f3ad8d8a25 Bug 1658460 - Swap collapse and block icons for blocked network message. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D87083
2020-08-17 07:15:37 +00:00
Julian Descottes 8eb819ae0f Bug 1655838 - Set ERROR level for blocked request messages in Webconsole r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D85202
2020-07-29 07:50:31 +00:00
Nicolas Chevobbe b6806d150e Bug 1629875 - Style blocked network messages in console. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D71912
2020-06-10 08:31:42 +00:00
Logan Smyth 40a0721e2a Bug 1642371 - Part 2: Consistently differentiate sourceMapService and sourceMapURLService. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D77738
2020-06-02 22:30:40 +00:00
Nicolas Chevobbe d098714dcc Bug 1616897 - Remove WebReplay-related functions/variables/css rules in devtools. r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D68514
2020-03-27 15:10:53 +00:00
Jason Laster 3694ec93d0 Bug 1622996 - Refactor devtools codebase to use optional chaining (automated changes). r=jdescottes
Depends on D67084

Differential Revision: https://phabricator.services.mozilla.com/D67537
2020-03-19 21:13:38 +00:00
Nicolas Chevobbe d29fe03498 Bug 1601688 - Use emitForTests when events are only used in tests. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D57500
2020-01-09 16:07:42 +00:00
Arthur Iakab ab1e9d340e Backed out 2 changesets (bug 1601688) for causing node-devtools failures.
CLOSED TREE

Backed out changeset 27cec4c76272 (bug 1601688)
Backed out changeset 9aa05612f10f (bug 1601688)
2020-01-09 17:09:55 +02:00
Nicolas Chevobbe bce242e337 Bug 1601688 - Use emitForTests when events are only used in tests. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D57500
2020-01-09 14:50:30 +00:00
Nicolas Chevobbe d38e3fae98 Bug 1579090 - Support ObjectFronts in WebConsole. r=Honza.
Since we may now have ObjectFronts in console messages as
well as in evaluation results, we need to make the webconsole
consume those fronts.

And because we have ObjectFronts, we can now avoid using the
DebuggerClient to release the actors, and simply call front.release.
This simplifies how we track created object, since we only need
to release "root" objects, which will also cause all the sub-fronts
to be released as well. Sadly, this was causing some test failures
in mochitests because some objects were released while the connection
was closed, so we now emit an event when all the actors are released,
which we track in tests to wait until everything is over.

As a side effect, we need to change how we handle stubs for
our tests, since fronts have cycical references and can't
be serialized directly. In order to handle that, we serialize
all front as a plain object with a `_grip` property, containing
the object grip. In the stub file, we don't expose the grips
directly, but Maps that contain those stubs "rehydrated": when
a _grip object is encountered, it's turned back into a front.

Differential Revision: https://phabricator.services.mozilla.com/D54509
2019-12-04 09:03:53 +00:00
Julian Descottes 03cdcd7b0a Bug 1593921 - Use eslint-disable-next-line to disable complexity checks in DevTools r=pbro
Using next-line is less error prone for refactorings than wrapping methods with enable/disable blocks.

Differential Revision: https://phabricator.services.mozilla.com/D51782
2019-11-05 14:29:04 +00:00
Nicolas Chevobbe ce25c3f455 Bug 1519103 - Remove Scratchpad panel. r=bgrins.
Differential Revision: https://phabricator.services.mozilla.com/D50583
2019-10-27 09:05:58 +00:00
Brian Hackett 5efaf938e7 Bug 1585860 - Fix console warping console menu item, r=nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D48064
2019-10-03 14:33:06 +00:00
Jason Laster 3934a4c8a5 Bug 1582870 - Reduxify console actions. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D46674
2019-10-02 22:50:25 +00:00
Nicolas Chevobbe 290ba5cb21 Bug 1568779 - Remove editors settings comments in devtools files. r=pbro.
Differential Revision: https://phabricator.services.mozilla.com/D42300
2019-08-19 12:48:16 +00:00
Armando Ferreira 67ff266803 Bug 1540722 - Copy link location should work for learn-more links. r=nchevobbe
Support for coping link location from within the Console panel (through the context menu) can be extended and cover learn more links too.

Differential Revision: https://phabricator.services.mozilla.com/D38546
2019-07-23 18:34:08 +00:00
Nicolas Chevobbe 5b16c0c2f8 Bug 1567067 - Fix PropTypes error in Message.js .r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D38454
2019-07-18 08:55:36 +00:00
Armando Ferreira 00945f5389 Bug 1546347 - Message location on CSS Warnings has an erroneous title attribute. r=nchevobbe
Adding a new opcional property to Frame.js, messageSource, which will allows us to know the source of the Message. We will be using this property to display the correct tooltip message.

Differential Revision: https://phabricator.services.mozilla.com/D38139
2019-07-18 06:17:16 +00:00
Armando Ferreira 285b1a4450 Bug 1524115 - When clicking and selecting source text on a collapsible message, the message expansion is toggled after releasing the mouse. r=nchevobbe
When clicking and selecting source text on a collapsible message, the message expansion is toggled after releasing the mouse

Differential Revision: https://phabricator.services.mozilla.com/D37607
2019-07-17 15:48:56 +00:00
Nicolas Chevobbe 9d703719af Bug 1564138 - Fix DevTools PropTypes errors when updating eslint. r=Ola.
Differential Revision: https://phabricator.services.mozilla.com/D38093
2019-07-17 10:35:44 +00:00
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Armando Ferreira a3c043f6be Bug 1522104 - Re-organise devtools/client/webconsole/components/ folder. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D35932
2019-06-26 09:19:54 +00:00