Commit Graph
1352 Commits
Author SHA1 Message Date
Leo McArdle 10b22032e4 Bug 2044941 - [devtools] replace generic icon in network panel with mdn icon r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D304687
2026-06-09 15:14:42 +00:00
Julian Descottes 5be4b83391 Bug 2044062 - [devtools] Record additional toolbox metadata to toolbox server error telemetry r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D303818
2026-06-03 08:51:15 +00:00
Alexandre Poirot b33f115eb0 Bug 2042894 - [devtools] Show AppErrorBoundary when the inspector fails rendering the markup view. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D302827
2026-06-02 14:17:10 +00:00
Atila Butkovits 811834ef32 Revert "Bug 2042894 - [devtools] Show AppErrorBoundary when the inspector fails rendering the markup view. r=devtools-reviewers,jdescottes" for causing failures at browser_toolbox_backward_forward_navigation.js.
This reverts commit e001fd3251.
2026-06-01 22:57:09 +00:00
Alexandre Poirot e001fd3251 Bug 2042894 - [devtools] Show AppErrorBoundary when the inspector fails rendering the markup view. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D302827
2026-06-01 20:54:45 +00:00
Chris Vander Linden f391b53273 Bug 2027582 - Move CloseButton to shared components. r=bomsy,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D292686
2026-05-29 11:05:58 +00:00
Chris Vander Linden 8c8db126be Bug 2027580 - Move DebuggerImage to shared components. r=bomsy,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D292685
2026-05-29 11:05:55 +00:00
Chris Vander Linden a73a3f85d7 Bug 2019260 - Move SearchInput to shared components. r=bomsy,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D286439
2026-05-29 11:05:52 +00:00
Chris H-C d89527a234 Bug 2039650 - Remove Legacy Telemetry devtools probes r=jdescottes,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D300855
2026-05-28 16:32:18 +00:00
Julian Descottes a4c93ea48f Bug 2040563 - [devtools] Add session_id to toolbox_server_error events r=devtools-reviewers,nchevobbe
Data classification: adding the toolbox session id to existing events, does not leak any personal data.

Differential Revision: https://phabricator.services.mozilla.com/D301238
2026-05-19 12:54:56 +00:00
Alexandre Poirot 59149c9a82 Bug 2019873 - [devtools] Transfer stack to the parent process for content process exceptions. r=devtools-reviewers,jdescottes
When any exception happens from the DevToolsProcess's JSProcessActor,
the stacktrace is lost when the exception reaches the parent process.
Manually transfer the exception payload between processes
so that RDP server can send the full stack to the client.

Using callbacks was losing async stack trace, so I moved super.sendQuery
into an inline async function to be able to use await and preserve async
stacks in case of errors.

Differential Revision: https://phabricator.services.mozilla.com/D298390
2026-05-14 00:42:17 +00:00
Nicolas Chevobbe 705a23973e Bug 2038935 - [devtools] Bump devtools-reps version to 0.27.7. r=devtools-reviewers,bomsy,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D299997
2026-05-12 12:17:40 +00:00
Nicolas Chevobbe 4ce0eeb3c7 Bug 2035950 - [devtools] Remove usage of React.createFactory in Reps. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D298784
2026-05-06 12:34:01 +00:00
Julian Descottes b103ab938f Bug 2035120 - [devtools] Add is_destroying flag to devtoolsMain.toolboxServerError event r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D298474
2026-05-05 08:02:47 +00:00
Alexandru Marc 92e193f910 Revert "Bug 2027582, Bug 2027580, Bug 2019260) for causing devtools failures @ browser_dbg-javascript-tracer-sidebar-values-search.js
This reverts commit 00fed8f688.

Revert "Bug 2027580 - Move DebuggerImage to shared components. r=bomsy,devtools-reviewers"

This reverts commit 1a242a685c.

Revert "Bug 2019260 - Move SearchInput to shared components. r=bomsy,devtools-reviewers"

This reverts commit 67968b1de4.
2026-04-26 07:38:57 +00:00
Chris Vander Linden 00fed8f688 Bug 2027582 - Move CloseButton to shared components. r=bomsy,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D292686
2026-04-26 06:55:57 +00:00
Chris Vander Linden 1a242a685c Bug 2027580 - Move DebuggerImage to shared components. r=bomsy,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D292685
2026-04-26 06:55:53 +00:00
Chris Vander Linden 67968b1de4 Bug 2019260 - Move SearchInput to shared components. r=bomsy,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D286439
2026-04-26 06:55:50 +00:00
Alexandra Borovova 574778d7e5 Bug 2005054 - [devtools] Extract "formatMessageParametersAndText" into a shared module to make it easier to reuse in WebDriver BiDi. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D289754
2026-03-31 09:40:31 +00:00
Sylvestre Ledru 074b376055 Bug 2023419 - Remove Emacs/Vim modelines from devtools/ r=emilio,devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287841
2026-03-28 10:21:10 +00:00
Alexandre Poirot 316bcefe78 Bug 2026115 - Bug 2014811 - [devtools] Ship a new version of devtools-reps to npm. r=devtools-reviewers,nchevobbe
Bump version to the released version number.
Document publishing with access token.
Allow publishing with changes outside of reps folder.

Differential Revision: https://phabricator.services.mozilla.com/D289758
2026-03-26 14:41:56 +00:00
Nicolas Chevobbe 7680f67e98 Bug 1962343 - [devtools] Add <global> node in ObjectInspector. r=devtools-reviewers,devtools-backward-compat-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D254223
2026-03-19 15:18:42 +00:00
alexical 1d812ec911 Bug 2020060 - Allow filtering the argument values buffer from a trace r=ochameau,devtools-reviewers,profiler-reviewers,canaltinova
The profiler frontend needs this in order to filter down to a specified time
range. Unfortunately we can't cheaply filter the shapes table as that would require
reading every entry in the buffer, but I would expect the shapes table to be
substantially less sensitive.

Differential Revision: https://phabricator.services.mozilla.com/D285340
2026-03-18 19:30:16 +00:00
Alexandru Marc 630e6cf0e8 Revert "Bug 2023419 - Remove Emacs/Vim modelines from devtools/ r=emilio,devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe" for causing devtools failures
This reverts commit ed535dace9.
2026-03-17 12:46:01 +00:00
Sylvestre Ledru ed535dace9 Bug 2023419 - Remove Emacs/Vim modelines from devtools/ r=emilio,devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe
replaced by .editorconfig

Differential Revision: https://phabricator.services.mozilla.com/D287841
2026-03-17 12:03:34 +00:00
Hubert B Manilla 21260f873f Bug 2022166 - [devtools] Move shared debugger icons to a shared folder r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D286898
2026-03-16 09:50:00 +00:00
Alexandru Marc 73d1dc9c20 Revert "Bug 2022166 - [devtools] Move shared debugger icons to a shared folder r=devtools-reviewers,ochameau" for causing devtools failures @ nsNetUtil
This reverts commit 811ab0573b.
2026-03-12 23:38:02 +00:00
Hubert B Manilla 811ab0573b Bug 2022166 - [devtools] Move shared debugger icons to a shared folder r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D286898
2026-03-12 22:07:11 +00:00
Chris Vander Linden fe85ac5c2e Bug 2020518 - Move the locale strings used in File Search Input component to the shared component.properties r=bomsy,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D285978
2026-03-05 23:57:09 +00:00
Chris Vander Linden c8390b5d99 Bug 2019256 - Move SearchInFileBar to shared and add Debugger wrapper. r=devtools-reviewers,bomsy
Move SearchInFileBar into devtools/client/shared/components as FileSearchBar, and
add a Debugger-side FileSearch wrapper that wires editor/search helpers and
selectors/actions without debugger-specific imports in the shared component.

Differential Revision: https://phabricator.services.mozilla.com/D278736
2026-03-03 10:56:47 +00:00
Julian Descottes dd14a6d6a2 Bug 2015389 - [devtools] Add telemetry for toolbox AppErrorBoundary r=devtools-reviewers,nchevobbe
Adds two new glean events recorded when the devtools toolbox shows an error panel,
which marks the end of the session for users (from that state the only possible action
is to close the toolbox).

Those errors can occur because of a frontend/react issue in a devtools react
component. This is logged as Glean.devtoolsMain.toolboxComponentError.
In this case the data collected is: the error name, the devtools react component stack
and the error stack.

They can also occur after a server error, which prevents the proper initialization
of the toolbox. This is logged as Glean.devtoolsMain.toolboxServerError.
In this case the data collected is: the error name, the frontend error stack,
the server error stack, the type of the RDP packet where the server error occurred
and the id of the devtools server actor targeted by this packet.

The goal in both case was to restrict the data only to items which can only contain
information purely related to devtools' codebase and not anything that could tangentially
contain user data.

A test is added to cover the Glean.devtoolsMain.toolboxComponentError.
A test for the toolboxServerError would require a way to force a toolbox initialization failure
which is not possible at the moment.

Differential Revision: https://phabricator.services.mozilla.com/D283249
2026-02-20 10:21:58 +00:00
Alexandre Poirot fc2d3d8b83 Bug 2014811 - [devtools] Remove any reference to chrome URLs in reps npm package. r=devtools-reviewers,nchevobbe
None of these styles are actually used in the profiler (nor in jsonviewer).
Let's do this stopgap solution until we better organize files within Reps.

Differential Revision: https://phabricator.services.mozilla.com/D282012
2026-02-10 10:40:34 +00:00
Alexandre Poirot 05aed88bc1 Bug 1953891 - [devtools] Expose reps as a npm package. r=devtools-reviewers,nchevobbe
See README.md for full instructions.

Differential Revision: https://phabricator.services.mozilla.com/D241471
2026-02-10 10:40:31 +00:00
Julian Descottes f8d2e20c42 Bug 2012759 - [devtools] Frame component should skip sourcemap resolution for line=0 locations r=devtools-reviewers,ochameau
Locations with line=0 normally indicate that we have no line information for the location.
In this case, it is useless to query the sourcemap service from the Frame component.
Additionally check if column is 0 or 1 to be more confident that this is a default location.

Differential Revision: https://phabricator.services.mozilla.com/D281033
2026-02-09 14:14:42 +00:00
Nicolas Chevobbe a7039c5b82 Bug 2012091 - [devtools] Render only attribute name in ElementNode rep when attribute has empty value r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D280225
2026-01-27 15:30:53 +00:00
iulian moraru 1ae3353ab8 Revert "Bug 2012091 - [devtools] Render only attribute name in ElementNode rep when attribute has empty value r=devtools-reviewers,jdescottes" for causing bc failures on browser_test_feature_jstracing_objtestutils.js.
This reverts commit c2a9c038f4.
2026-01-27 11:17:48 +00:00
Nicolas Chevobbe c2a9c038f4 Bug 2012091 - [devtools] Render only attribute name in ElementNode rep when attribute has empty value r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D280225
2026-01-27 09:19:31 +00:00
Nicolas Chevobbe f957ab13f6 Bug 2010233 - [devtools] Don't change state in TabBar#select if function is called with activeTab. r=devtools-reviewers,ochameau.
Since we're now avoiding unnecessary work, we were missing events in the
openInspectorSidebarTab test helper.
To fix this, we make ToolSidebar#select return a Promise that resolves once
the select is done (or directly if the panel was already selected).
Callsites of ToolSidebar#select are updated accordingly.

We also add initialized promises to both the BoxModel and LayoutView so we
can wait on those instead of waiting for specific events.
We stop emitting the `grid-panel-updated` event as it's not listened for anymore.

Differential Revision: https://phabricator.services.mozilla.com/D278942
2026-01-21 18:54:15 +00:00
Mark Banner fd62657728 Bug 2004680 - Fix ESLint rule jsdoc/check-tag-names issues in devtools. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D275754
2025-12-22 12:41:26 +00:00
Nicolas Chevobbe ec5a49bab7 Bug 2005484 - [devtools] Explicitly set color for .tabs-menu a. r=devtools-reviewers,ochameau.
Otherwise the link might get its color from global style.

Differential Revision: https://phabricator.services.mozilla.com/D275961
2025-12-18 09:47:43 +00:00
Tom Marble 5ce09d7446 Bug 1995583 - test manifest cleanup for idiomatic usage r=jmaher,necko-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,media-playback-reviewers,sessionstore-reviewers,tabbrowser-reviewers,translations-reviewers,omc-reviewers,browser-installer-reviewers,twisniewski,masayuki,dom-core,smaug,nalexander,emcminn,sthompson,alwu,ai-ondevice-reviewers,valentin
For TOML manifests:

1. Change processor -> arch
2. Use arch instead of bits bits == '64' =>
   aarch64 (default on mac 15.30) or x86_64 bits == '32' => x86
3. Replace android_version with corresponding os_version
4. Remove conditions with linux os_version=="18.04"
   (unless they contain verify or verify-standalone)
5. Remove conditions with mac os_version=='11.20',
   (unless they contain verify or verify-standalone)
6. Remove conditions with win os_version=='11.2009' or win11_2009,
   (unless they contain verify or verify-standalone)
7. Linux conditions should have os_version, arch and display
   (simple "os == 'linux'" will get expanded to these two)
   "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland'"
   "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11'"
8. Mac conditions should have os_version and arch
   (simple "os == 'mac'" will get expanded to these three)
   "os == 'mac' && os_version == '10.15' && arch == 'x86_64'",
   "os == 'mac' && os_version == '14.70' && arch == 'x86_64'",
   "os == 'mac' && os_version == '15.30' && arch == 'aarch64'",
9. Replace apple_catalina with
   os == 'mac' && os_version == '10.15' && arch == 'x86_64'
10. Replace apple_silicon with
   os == 'mac' && os_version = '15.30' && arch == 'aarch64'
11. Replace win10_2009 with
   os == 'win' && os_version = '10.2009' && arch == 'x86_64'
12. Replace "!debug" with three conditions "asan", "opt", or "tsan"
13. Replace literal boolean comparison with variables
    (e.g. "debug == false" => "!debug)

Resolves 2000285

Signed-off-by: Tom Marble <[email protected]>

Differential Revision: https://phabricator.services.mozilla.com/D272815
2025-11-22 00:30:39 +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
Tooru Fujisawa f8f007a94e Bug 2000416 - Allow dragging with pen. r=masayuki,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D272800
2025-11-18 08:44:38 +00:00
Florian Quèze faf9462bdd Bug 1997209 - Add a toolbar button in the JSON Viewer to open a size profile of the JSON file in the Firefox Profiler, r=devtools-reviewers,nchevobbe,mstange.
Differential Revision: https://phabricator.services.mozilla.com/D270623
2025-11-13 17:12:50 +00:00
Nicolas Chevobbe 65ea9dbd82 Bug 1997847 - [devtools] Cleanup pseudo element handling in inspector client and server. r=devtools-reviewers,ochameau
We used to compute the pseudo element name (e.g. `::before`, `::marker`, …) in a
few places, both on the server and the client.
This patch does it directly from `getNodeDisplayName`, which is called for assigning
the NodeActorForm displayName.
We also use `getNodeDisplayName` in `getBindingElementAndPseudo` to avoid duplicating
code.
On the client we now use displayName in the few places we used to re-construct
the pseudo element text in (markup view, breadcrumb, rules view, …)

We also no longer pass "individual" pseudo element booleans (e.g. `isAfterPseudoElement`)
in the NodeActor form, but a more generic `isPseudoElement` one so it's easier
to handle future pseudo element (e.g. `::view-transition`).
And we take this as an opportunity to remove the utility functions that we were
using to build those properties, and instead switch to look into `Node.implementedPseudoElement`
to detect when we do handle pseudo elements.

Differential Revision: https://phabricator.services.mozilla.com/D271002
2025-11-13 14:02:38 +00:00
Sandor Molnar ad2eab95e5 Revert "Bug 1997847 - [devtools] Cleanup pseudo element handling in inspector client and server. r=devtools-reviewers,ochameau" for causing dt failures @ browser_computed_inherited-element-backed-pseudo-elements.js
This reverts commit b653b2c342.
2025-11-13 11:47:27 +00:00
Nicolas Chevobbe b653b2c342 Bug 1997847 - [devtools] Cleanup pseudo element handling in inspector client and server. r=devtools-reviewers,ochameau
We used to compute the pseudo element name (e.g. `::before`, `::marker`, …) in a
few places, both on the server and the client.
This patch does it directly from `getNodeDisplayName`, which is called for assigning
the NodeActorForm displayName.
We also use `getNodeDisplayName` in `getBindingElementAndPseudo` to avoid duplicating
code.
On the client we now use displayName in the few places we used to re-construct
the pseudo element text in (markup view, breadcrumb, rules view, …)

We also no longer pass "individual" pseudo element booleans (e.g. `isAfterPseudoElement`)
in the NodeActor form, but a more generic `isPseudoElement` one so it's easier
to handle future pseudo element (e.g. `::view-transition`).
And we take this as an opportunity to remove the utility functions that we were
using to build those properties, and instead switch to look into `Node.implementedPseudoElement`
to detect when we do handle pseudo elements.

Differential Revision: https://phabricator.services.mozilla.com/D271002
2025-11-13 10:00:41 +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
Florian Quèze 723ed202c0 Bug 1901215 - bucket long arrays in the JSON viewer, r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D270516
2025-11-04 14:47:23 +00:00
Nicolas Chevobbe 6bb59cc042 Bug 1821876 - [devtools] Change color of colon after property name in JSON viewer. r=devtools-reviewers,ochameau.
This makes it consistent with what we do in Reps.

Differential Revision: https://phabricator.services.mozilla.com/D270804
2025-11-04 12:54:21 +00:00