Commit Graph
170 Commits
Author SHA1 Message Date
Nicolas Chevobbe 1347b04fcc Bug 2017058 - [devtools] Make classes extend EventEmitter instead of calling EventEmitter.decorate. r=devtools-reviewers,profiler-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D283517
2026-02-17 10:45:11 +00:00
Lorenz A c19da6e773 Bug 1665702 - [devtools] Remove unused idGenerator argument of networkMessageUpdates action method. r=devtools-reviewers,nchevobbe
Seems like `idGenerator` was added to mirror messagesAdd but was never used

Differential Revision: https://phabricator.services.mozilla.com/D274645
2025-12-02 07:57:47 +00:00
Mark Banner b38cd3110b Bug 1999554 - Automatically fix ESLint rule jsdoc/check-types for devtools/. r=devtools-reviewers,devtools-backward-compat-reviewers,profiler-reviewers,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D272173
2025-11-21 16:16:08 +00:00
Mark Banner 2542790f53 Bug 1998787 - Automatic fixes for enabling ESLint jsdoc/tag-line rule everywhere. r=frontend-codestyle-reviewers,mtigley,perftest-reviewers,nchevobbe,home-newtab-reviewers,Gijs,mconley,sparky
Differential Revision: https://phabricator.services.mozilla.com/D271745
2025-11-10 21:27:12 +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
Alexandre Poirot 49e23bea5b Bug 1953578 - [devtools] Migrate all usage of react-dom CommonJS module to the ES Module version and remove the CommonJS version. r=profiler-reviewers,devtools-reviewers,canaltinova,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D241280
2025-03-19 13:30:50 +00:00
Nicolas Chevobbe f882ce2fd3 Bug 1953384 - [devtools] Fix AppErrorBoundary Report Bug link in Browser Console. r=devtools-reviewers,ochameau.
Pass the openLink prop that will handle the click on the link.

Differential Revision: https://phabricator.services.mozilla.com/D241207
2025-03-13 08:08:08 +00:00
Alexandre Poirot 80305c89ee Bug 1902229 - [devtools] Use a independent resource for each trace data type. r=perftest-reviewers,devtools-reviewers,nchevobbe,sparky
Differential Revision: https://phabricator.services.mozilla.com/D213611
2024-06-20 08:15:06 +00:00
Alexandre Poirot 45fbf2dbeb Bug 1900982 - [devtools] Migrate JS tracer from Objects to Array as trace payloads. r=devtools-reviewers,perftest-reviewers,kshampur,nchevobbe
Using arrays speeds up the serialization and transmission of traces between the server and the client
as it goes through JS Actors/IPC by serializing the JSON RDP packets.

This also allows to better align with the profiler data format.

Differential Revision: https://phabricator.services.mozilla.com/D212807
2024-06-12 10:03:19 +00:00
Alexandre Poirot 9454c9e3e8 Bug 1651518 - [devtools] Ensure waiting for CSS Warning full listening when toggling the filter from tests. r=devtools-reviewers,nchevobbe
The enhancer was brittle as nothing was waiting for its completion.
We should rather do such work from the action layer. At least this can delay the action completion,
which the test header (setFilterState) already wait for.

Differential Revision: https://phabricator.services.mozilla.com/D205602
2024-05-27 09:53:53 +00:00
Cristian Tuns d0272b92b7 Backed out 8 changesets (bug 1651518, bug 1883847) dt failures in nsTArray.h. CLOSED TREE
Backed out changeset 481558275c1d (bug 1651518)
Backed out changeset 5337435e8bca (bug 1651518)
Backed out changeset 8fe0c1a4da7f (bug 1651518)
Backed out changeset 840a0d9db260 (bug 1651518)
Backed out changeset eaab9de5819d (bug 1651518)
Backed out changeset cf71de92d782 (bug 1651518)
Backed out changeset d778691464db (bug 1651518)
Backed out changeset af28e5f719e8 (bug 1883847)
2024-05-22 09:02:19 -04:00
Alexandre Poirot 2ca6803e58 Bug 1651518 - [devtools] Ensure waiting for CSS Warning full listening when toggling the filter from tests. r=devtools-reviewers,nchevobbe
The enhancer was brittle as nothing was waiting for its completion.
We should rather do such work from the action layer. At least this can delay the action completion,
which the test header (setFilterState) already wait for.

Differential Revision: https://phabricator.services.mozilla.com/D205602
2024-05-22 11:50:43 +00:00
Cristina Horotan ca70119cfa Backed out 8 changesets (bug 1651518, bug 1883847) for causing damp failures at toolbox/browser-toolbox.js CLOSED TREE
Backed out changeset 4ec70db12f48 (bug 1651518)
Backed out changeset b2b138889ad6 (bug 1651518)
Backed out changeset efda5c09b0ea (bug 1651518)
Backed out changeset b0de4113f8fb (bug 1651518)
Backed out changeset 03cf235d2a80 (bug 1651518)
Backed out changeset 58e71c27f1fd (bug 1651518)
Backed out changeset f7fb390c3965 (bug 1651518)
Backed out changeset b8a2473c47c0 (bug 1883847)
2024-05-22 04:00:53 +03:00
Alexandre Poirot 77d5f78f48 Bug 1651518 - [devtools] Ensure waiting for CSS Warning full listening when toggling the filter from tests. r=devtools-reviewers,nchevobbe
The enhancer was brittle as nothing was waiting for its completion.
We should rather do such work from the action layer. At least this can delay the action completion,
which the test header (setFilterState) already wait for.

Differential Revision: https://phabricator.services.mozilla.com/D205602
2024-05-21 14:09:33 +00:00
Hubert Boma Manilla aae1a14a42 Bug 1858076 - [devtools] Show notification in the console when original variable mapping is disabled r=devtools-reviewers,nchevobbe
This patch displays a notification in the console when the debugger is paused
in an original file with original variable mapping is turned off.

The notification is displayed when console input is focused, also if the user selects
a generated file, or is no longer paused or switches on varaible mapping, the notification is removed
once the console input is refocused.

Also added support for specific notifications to control displaying the close button.

Differential Revision: https://phabricator.services.mozilla.com/D191568
2023-11-14 07:35:49 +00:00
Sandor Molnar bcd249053b Backed out 4 changesets (bug 1858652, bug 1858032, bug 1858076, bug 1856270) for causing talos damp failures
Backed out changeset 569b6a151d3e (bug 1858076)
Backed out changeset 3c66fbe494de (bug 1858652)
Backed out changeset 966ce8c9e339 (bug 1858032)
Backed out changeset 3e08029e8f01 (bug 1856270)
2023-11-08 07:21:25 +02:00
Hubert Boma Manilla 513736cd5d Bug 1858076 - [devtools] Show notification in the console when original variable mapping is disabled r=devtools-reviewers,nchevobbe
This patch displays a notification in the console when the debugger is paused
in an original file with original variable mapping is turned off.

The notification is displayed when console input is focused, also if the user selects
a generated file, or is no longer paused or switches on varaible mapping, the notification is removed
once the console input is refocused.

Also added support for specific notifications to control displaying the close button.

Differential Revision: https://phabricator.services.mozilla.com/D191568
2023-11-07 19:51:31 +00:00
Iulian Moraru e0636fa387 Backed out 4 changesets (bug 1856270, bug 1858652, bug 1858032, bug 1858076) for causing dt failures on browser_dbg-reducer-cleanup-on-target-removal.js. CLOSED TREE
Backed out changeset 492052d366fe (bug 1858076)
Backed out changeset a5a765a10588 (bug 1858652)
Backed out changeset 7797ecc20515 (bug 1858032)
Backed out changeset b8a3c66f7fdc (bug 1856270)
2023-11-06 17:54:12 +02:00
Hubert Boma Manilla a52a4207b0 Bug 1858076 - [devtools] Show notification in the console when original variable mapping is disabled r=devtools-reviewers,nchevobbe
This patch displays a notification in the console when the debugger is paused
in an original file with original variable mapping is turned off.

The notification is displayed when console input is focused, also if the user selects
a generated file, or is no longer paused or switches on varaible mapping, the notification is removed
once the console input is refocused.

Also added support for specific notifications to control displaying the close button.

Differential Revision: https://phabricator.services.mozilla.com/D191568
2023-11-06 14:00:53 +00:00
Nicolas Chevobbe f5210de43f Bug 1267856 - [devtools] Don't clear output on console.clear() when persist logs is on. r=devtools-reviewers,bomsy.
When persist log is enabled and console.clear is called,
don't clear the output and display a message to indicate
the method was ignored

Differential Revision: https://phabricator.services.mozilla.com/D183854
2023-07-20 14:48:27 +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 d873a95592 Bug 1811806 - [devtools] Fix Browser Console issues when closing it during its initialization. r=devtools-reviewers,jdescottes
Closing during its initialization (easy to reproduce with the multiprocess mode)
ends up disallowing any further reopening of the browser console.
You would have to restart firefox to make it work again.

This was related to _browserConsoleInitializing never been cleared.

There was another one highlighted by the test related to waitAsyncDispatches.
As the wrapper module is loaded via the browser loader,
it uses the document's setTimeout method which is disabled when the console closes
and its document is destroyed. This ended up creating a never resolving promise...

Do not try to run the test on verify as it is quite intensive already.

Differential Revision: https://phabricator.services.mozilla.com/D167527
2023-01-26 08:34:31 +00:00
Nicolas Chevobbe 4cf60bdd90 Bug 1543012 - [devtools] Migrate console node test to jest. r=jdescottes.
This makes the console behave like the other React panels.
We can also get rid of the specific bits for mocha in devtools-node-test-runner.js

Differential Revision: https://phabricator.services.mozilla.com/D167233
2023-01-19 14:55:39 +00:00
Alexandre Poirot 44c4e9f6d7 Bug 1807898 - [devtools] Reuse toolbox's Telemetry instance from all panels. r=devtools-reviewers,nchevobbe
This was slightly more tricky in the debugger as the toolbox's telemetry should be provided to the telemetry module.

Differential Revision: https://phabricator.services.mozilla.com/D165934
2023-01-04 18:28:33 +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
Alexandre Poirot 0f32f335e3 Bug 1789201 - [devtools] Expose Services as a global to all DevTools modules. r=perftest-reviewers,nchevobbe,julienw,AlexandruIonescu
This will help transition to ES Modules as this symbol is exposed to them.

$ sed -ie "/require(.Services.)/d" $(git grep -l 'require("Services")' devtools/)
$ sed -ie "/loader.lazyRequireGetter(this, .Services./d" $(git grep -l 'loader.lazyRequireGetter(this, "Services"' devtools/)
+ the edition of builtin-modules.js + eslintrc.js
+ manual eslint fixes
+ removal of devtools-services in the debugger, except for jest tests

Differential Revision: https://phabricator.services.mozilla.com/D156401
2022-09-09 07:22:51 +00:00
Mark Banner 3387a89bc7 Bug 1786197 - Turn on ESLint rule for prefer-boolean-length-check for devtools. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D155167
2022-08-26 13:39:34 +00:00
Nicolas Chevobbe 8246357b2a Bug 1777253 - [devtools] Remove content messages from console when switching to parent process only mode. r=jdescottes.
We remove all messages from target destroy with `isModeSwitching`, as well as
prune unhandled resources in the WebconsoleWrapper queues.
Finally, we also cleanup the resource command pendingEvents so we don't receive
resources after the target was destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D152031
2022-08-01 09:33:19 +00:00
Nicolas Chevobbe 5c69992d9a Bug 1776853 - [devtools] Show ChromeDebugToolbar in Browser Console. r=ochameau.
We need to load the toolbox.ftl bundle and wrap the WebConsole App in a LocalizationProvider
when we're in the Browser Console.

Differential Revision: https://phabricator.services.mozilla.com/D150576
2022-08-01 09:33:18 +00:00
Bogdan Szekely 69bbe7a93b Backed out 5 changesets (bug 1777253, bug 1776853) for causing devtools failures on browser_console_modes.js CLOSED TREE
Backed out changeset dbd68a657d6f (bug 1777253)
Backed out changeset f401150fb142 (bug 1776853)
Backed out changeset 209aade12fc6 (bug 1776853)
Backed out changeset dc24308ff8ef (bug 1776853)
Backed out changeset ea98ed858bae (bug 1776853)
2022-08-01 10:43:40 +03:00
Nicolas Chevobbe 895996a26e Bug 1777253 - [devtools] Remove content messages from console when switching to parent process only mode. r=jdescottes.
We remove all messages from target destroy with `isModeSwitching`, as well as
prune unhandled resources in the WebconsoleWrapper queues.
Finally, we also cleanup the resource command pendingEvents so we don't receive
resources after the target was destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D152031
2022-08-01 06:55:56 +00:00
Nicolas Chevobbe 74022f1fe6 Bug 1776853 - [devtools] Show ChromeDebugToolbar in Browser Console. r=ochameau.
We need to load the toolbox.ftl bundle and wrap the WebConsole App in a LocalizationProvider
when we're in the Browser Console.

Differential Revision: https://phabricator.services.mozilla.com/D150576
2022-08-01 06:55:55 +00:00
Nicolas Chevobbe c4a8f53905 Bug 1780502 - [devtools] Unmount webconsole React node on destroy. r=ochameau,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D152357
2022-07-26 08:55:02 +00:00
Nicolas Chevobbe 0846183179 Bug 1780156 - [devtools] Add EvaluationContextSelector to BrowserConsole. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D150090
2022-07-20 07:17:15 +00:00
Cristian Tuns 3af62db16b Backed out 3 changesets (bug 1780156, bug 1777249) for causing mochitest on failures browser_console_evaluation_context_selector.js CLOSED TREE
Backed out changeset 6040e53370dc (bug 1777249)
Backed out changeset 61c455e77edc (bug 1780156)
Backed out changeset 2acbfa79b63e (bug 1780156)
2022-07-19 13:35:45 -04:00
Nicolas Chevobbe cdc58be90b Bug 1780156 - [devtools] Add EvaluationContextSelector to BrowserConsole. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D150090
2022-07-19 14:02:58 +00:00
Alexandre Poirot e9d2d13e2b Bug 1619296 - [devtools] Make the TargetCommand populate its own redux store. r=nchevobbe
This allows to pull out target management code out from toolbox back to TargetCommand.
And then allows to more easily share this store in the context of the browser console,
where there is no toolbox.

This is also an interesting example on how commands may populate redux store directly
so that we avoid having each panel translate commands's event into actions.

An alternative here, would be to introduce some generic layer between commands and redux.
Which would be the glue between a command and populating a store.

Differential Revision: https://phabricator.services.mozilla.com/D151493
2022-07-18 14:54:43 +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
Hubert Boma Manilla c81fa5cbf5 Bug 1764348 - Cleanup hidePersistLogsCheckbox and hideShowContentMessagesCheckbox property r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D145550
2022-06-06 13:56:05 +00:00
Iulian Moraru c9a321526f Backed out 4 changesets (bug 1764348, bug 1771277) for causing multiple dt failures. CLOSED TREE
Backed out changeset 21c03813c9d0 (bug 1771277)
Backed out changeset 0ee89f81d7da (bug 1764348)
Backed out changeset 47658c248d9e (bug 1764348)
Backed out changeset 712947c3a514 (bug 1764348)
2022-06-02 23:13:28 +03:00
Hubert Boma Manilla 3c574a5ef9 Bug 1764348 - Cleanup hidePersistLogsCheckbox and hideShowContentMessagesCheckbox property r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D145550
2022-06-02 14:35:24 +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
colin_czb 7f85bfc3d4 Bug 1661921 - [devtools] Console Instant Value no refresh after page refresh r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139770
2022-03-10 07:50:59 +00:00
Nicolas Chevobbe b2aa9bbb4f Bug 1432343 - [devtools] Mutate messagesById in console redux state. r=ochameau.
The property is renamed, prefixed with `mutable` to better highlight that it is
special; the associated selector is renamed as well.
The only change necessary was adding a `messageCount` prop to the `ConsoleOutput`
component so its lifecycle method could check if the number of messages changed.

Differential Revision: https://phabricator.services.mozilla.com/D138293
2022-02-16 09:03:16 +00:00
Claudia a714b2cf2e Bug 1675762 - [devtools] Use AppErrorBoundary component in the Console panel r=bomsy,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D129946
2021-12-13 08:23:46 +00:00
Butkovits Atila bbd07ea3cb Backed out changeset 5d37c5a5e07a (bug 1735024) for causing node failure. CLOSED TREE 2021-10-22 14:10:27 +03:00
Hubert Boma Manilla 17598d4ff7 Bug 1735024 - [devtools] Fix the leaks from firefox data provider r=ochameau
Fixes the leaks of the cached stacktrace info in stackTraceInfoByActorID.
Prior to this fix, the stacktrace info in the cache is only removed when the stacktrace
details panel is opened, meaning if the details panel is never opened the
info is never cleared and leaks.
This fixes the netmonitor and the webconsole as they both use the data provider

### Leak Info

####  Netmonitor
Before: 151 leaked objects (14611 with missing allocation site) in the parent process
After: -111 leaked objects (14150 with missing allocation site) in the parent process

#### Webconsole
Before: 271 leaked objects (13996 with missing allocation site) in the parent process
After: 1 leaked objects (13810 with missing allocation site) in the parent process

Differential Revision: https://phabricator.services.mozilla.com/D128015
2021-10-22 10:43:34 +00:00