Commit Graph
247 Commits
Author SHA1 Message Date
Hubert B Manilla 962dac0406 Bug 2040349 - [devtools] Remove duplicate context menu items for network messages in the console r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D301500
2026-06-08 12:53:43 +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
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
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
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
Mark Banner e4d3bbab0b Bug 1881270 - Fix no-case-declarations in devtools/ code. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D266006
2025-09-25 18:33:14 +00:00
agoloman f0289ea0d2 Revert "Bug 1881270 - Fix no-case-declarations in devtools/ code. r=devtools-reviewers,jdescottes" for causing mochitest failures @test_suppressed_events_nested_iframe.html.
This reverts commit 8e7d559526.

Revert "Bug 1881270 - Fix no-case-declarations issues in extensions code. r=extension-reviewers,willdurand"

This reverts commit 2a0800455d.

Revert "Bug 1881270 - Fix ESLint no-case-declarations issues in various files. r=frontend-codestyle-reviewers,necko-reviewers,media-playback-reviewers,layout-reviewers,dom-worker-reviewers,padenot,mossop,asuth,TYLin"

This reverts commit 3c05c4bfee.
2025-09-25 15:04:21 +00:00
Mark Banner 8e7d559526 Bug 1881270 - Fix no-case-declarations in devtools/ code. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D266006
2025-09-25 10:34:16 +00:00
Julian Descottes be339e5a68 Bug 1967461 -[devtools] Fix propType warnings in shared/components/object-inspector r=frontend-codestyle-reviewers,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D265939
2025-09-24 13:18:55 +00:00
Alexandre Poirot 2817046a27 Bug 1985446 - [devtools] Fix mismatch in column offset between console and debugger. r=devtools-reviewers,bomsy
SmartTrace is actually consuming 1-based columns coming from ObjectActor grip
for JS Error object's stacktrace.
But it maps to 0-based columns as it relies on Debugger Frames components.
This is made uterly complicated as we also have to deal with source maps
and original locations which are 0-based as well.

Differential Revision: https://phabricator.services.mozilla.com/D263580
2025-09-22 08:52:55 +00:00
Mr. Beedell, Roke Julian Lockhart e20dae27bf Bug 1969599 – improve external syntax highlighting by replacing .txt with .log r=nchevobbe,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D252010
2025-06-02 08:58:16 +00:00
Mark Banner 14d11733e4 Bug 1881702 - Fix ESLint complexity issues raised after upgrading to v9. r=frontend-codestyle-reviewers,extension-reviewers,devtools-reviewers,anti-tracking-reviewers,tabbrowser-reviewers,omc-reviewers,nchevobbe,timhuang,mossop,nsharpley,emcminn
Differential Revision: https://phabricator.services.mozilla.com/D251254
2025-05-29 08:30:36 +00:00
Alexandre Poirot bd9cc9ff8c Bug 1898485 - [devtools] Fix column number displayed in console and link when opening in the debugger. r=devtools-reviewers,nchevobbe
There was three issues:
* one specific to original source. We were asking to resolve the 1-based column to SourceMapURLService,
whereas it expects a 0-based column (fix made to savedFrameToLocation).
* then for all sources, we were trying to open the debugger from 1-based column for generated sources,
whereas the debugger expects 0-based column. (And original source were 0-based, but mapped from the wrong generated location...)
* log point were emiting CONSOLE_MESSAGE resource whose `frame` objects were using 0-based columns,
whereas regular console message resource were using 1-based columns (as they are pulled from Spidermonkey's SavedFrame
which is 1-based)

Also adapt the tracer to the new behavior of Frame component and acknowledge that frames
use 1-based numbers.

Differential Revision: https://phabricator.services.mozilla.com/D249065
2025-05-15 23:51:02 +00:00
gautam-panakkal ce706cfda0 Bug 1640117 - update console warnings to state 'enhanced tracking protection' instead of 'content blocking' r=emz,necko-reviewers,devtools-reviewers,flod,anti-tracking-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D243023
2025-04-14 12:03:05 +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
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
Alexandre Poirot a1f71632ba Bug 1929387 - [devtools] Convert Reps to ES Modules. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D228996
2025-03-05 17:05:55 +00:00
Alexandre Poirot 64c54392e0 Bug 1941284 - [devtools] Ensure clearing console and netmonitor when reloading addons. r=devtools-reviewers,bomsy
For most debugging contexts, the top level target will be destroyed, and all panels should be cleared.
But currently, Web Extension are special and their top level target, which is about the "fallback document"
isn't destroyed on reload. We need to clear manually clear panels to better handle this usecase.

Differential Revision: https://phabricator.services.mozilla.com/D234515
2025-01-22 17:30:39 +00:00
Logan Rosen d24c9d9ff4 Bug 1857834 - auto-formatting with Prettier v3 r=linter-reviewers,webdriver-reviewers,perftest-reviewers,search-reviewers,devtools-reviewers,sync-reviewers,reusable-components-reviewers,profiler-reviewers,dom-storage-reviewers,android-reviewers,firefox-ai-ml-reviewers,hjones,mcheang,mstange,sparky,janv,nchevobbe,tarek,Standard8,markh
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D230598
2024-11-29 15:18:25 +00:00
Alexandre Poirot adeb60b754 Bug 1929390 - [devtools] Import objectInspector without going through Reps. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D228994
2024-11-14 21:43:34 +00:00
Nicolas Chevobbe ace5751aaf Bug 1926075 - [devtools] Don't repeat Symbols with different names in console. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D226438
2024-10-22 14:11:06 +00:00
Henrik Skupin 3a548b37ef Bug 1912237 - [devtools] Remove backward compatibility code for Firefox 131 release. r=devtools-backward-compat-reviewers,devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D219877
2024-08-23 17:22:32 +00:00
Alexandre Poirot 4c946b19bd Bug 1885054 - [devtools] Display tracer data in a debugger sidebar. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D204446
2024-07-22 18:49:43 +00:00
Sandor Molnar 0e45f1b380 Backed out changeset b6571a4222fb (bug 1885054) for causing bug 1909068 CLOSED TREE 2024-07-22 18:24:44 +03:00
Alexandre Poirot c2af106622 Bug 1885054 - [devtools] Display tracer data in a debugger sidebar. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D204446
2024-07-18 09:02:06 +00:00
Andrea Marchesini 7a354c3edd Bug 1906914 - Fix the max-age cookie attribute parser, r=edgul,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D216067
2024-07-15 09:33:58 +00:00
Alexandre Poirot 4b332c5c73 Bug 1906291 - [devtools] Avoid mutation of the tracer frame array in the console. r=devtools-reviewers,nchevobbe,perftest-reviewers,kshampur
The array may also be used by the debugger.

Differential Revision: https://phabricator.services.mozilla.com/D215129
2024-07-10 13:29:21 +00:00
Alexandre Poirot b7497920ef Bug 1906291 - [devtools] Align events array with trace. r=devtools-reviewers,nchevobbe
This will help use the same indexes for all the shared attributes.

Differential Revision: https://phabricator.services.mozilla.com/D215128
2024-07-10 13:29:20 +00:00
Sandor Molnar d22465071b Backed out 5 changesets (bug 1873060, bug 1906291) for causing talos perma failures @ jstracer/jstracer.js CLOSED TREE
Backed out changeset 6f0fa044aa35 (bug 1906291)
Backed out changeset 53b5ad4055ed (bug 1906291)
Backed out changeset d72f48618f38 (bug 1906291)
Backed out changeset 17873318ca4a (bug 1906291)
Backed out changeset f3c126a6f60b (bug 1873060)
2024-07-09 02:50:07 +03:00
Alexandre Poirot 5f24ddbbf5 Bug 1906291 - [devtools] Avoid mutation of the tracer frame array in the console. r=devtools-reviewers,nchevobbe
The array may also be used by the debugger.

Differential Revision: https://phabricator.services.mozilla.com/D215129
2024-07-08 13:10:41 +00:00
Alexandre Poirot d7c7c229a0 Bug 1906291 - [devtools] Align events array with trace. r=devtools-reviewers,nchevobbe
This will help use the same indexes for all the shared attributes.

Differential Revision: https://phabricator.services.mozilla.com/D215128
2024-07-08 13:10:40 +00:00
Andrea Marchesini 523346a117 Bug 1904557 - part 3 - Improve cookie logging - Groupping the console warnings, r=timhuang,devtools-reviewers,cookie-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D214808
2024-06-28 13:19:40 +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 df9fea0485 Bug 1901644 - [devtools] Uncapsulate CONSOLE_MESSAGE resource. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D213225
2024-06-18 18:33:18 +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 d22ddaa6e6 Bug 1884717 - [devtools] Only log "returns" when logging exit frames without tracing values. r=devtools-reviewers,bomsy
We were logging "returns undefined" everywhere.

Differential Revision: https://phabricator.services.mozilla.com/D204301
2024-03-13 13:48:54 +00:00
Alexandre Poirot de907e9f52 Bug 1879087 - [devtools] Trace DOM mutations. r=devtools-reviewers,nchevobbe
Also allow logging trace whenever any DOM Element get added, removed or modified.
For now this is exposed only via the console command via:
  :tracer --dom-mutations  (for all types of mutation)
  :tracer --dom-mutations add,attributes,remove (coma separated list of mutation types you want to listen for)

Also revise the handling of "isWorker" so that all checks have the best possible check.

Differential Revision: https://phabricator.services.mozilla.com/D201976
2024-02-22 08:52:21 +00:00
Alexandre Poirot d42ef20edd Bug 1852028 - [devtools] Log function return in javascript tracer. r=devtools-reviewers,nchevobbe
For now, we were only logging when we enter a function call, but not when we exit.

Differential Revision: https://phabricator.services.mozilla.com/D200173
2024-02-13 09:38:50 +00:00
Alexandre Poirot 6fc6849dbd Bug 1848159 - [devtools] Use tracing icon for all messages related to the tracing. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D199975
2024-01-30 20:18:51 +00:00
Alexandre Poirot 87632826c1 Bug 1873007 - [devtools] Show the reason why the JS tracer stopped. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D197660
2024-01-09 17:49:02 +00:00
Alexandre Poirot 17410e0a75 Bug 1870801 - [devtools] Log JS tracer start/stop, even when not initiated from console command. r=devtools-reviewers,nchevobbe
The JavaScript Tracer may be initiated by the debugger, or stoped by itself when reaching some limit.
In these cases, the start and stop messages wouldn't have been logged in the console.

Differential Revision: https://phabricator.services.mozilla.com/D196831
2024-01-09 17:49:01 +00:00
Natalia Csoregi 1275fd0f83 Backed out 3 changesets (bug 1873007, bug 1870801) for causing failures on browser_dbg-javascript-tracer.js. CLOSED TREE
Backed out changeset f94198e20472 (bug 1873007)
Backed out changeset c0f126c79de5 (bug 1870801)
Backed out changeset 885f112d1076 (bug 1870801)
2024-01-09 04:27:57 +02:00
Alexandre Poirot 798ab0197c Bug 1873007 - [devtools] Show the reason why the JS tracer stopped. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D197660
2024-01-08 16:24:12 +00:00
Alexandre Poirot 3035bf5707 Bug 1870801 - [devtools] Log JS tracer start/stop, even when not initiated from console command. r=devtools-reviewers,nchevobbe
The JavaScript Tracer may be initiated by the debugger, or stoped by itself when reaching some limit.
In these cases, the start and stop messages wouldn't have been logged in the console.

Differential Revision: https://phabricator.services.mozilla.com/D196831
2024-01-08 16:24:11 +00:00
Alexandre Poirot 641c35b909 Bug 1835614 - [devtools] Use a custom resource for traces. r=devtools-reviewers,nchevobbe
This help reduce the RDP overhead by only transferring what is strictly necessary.
The console message resources bundles various useless attributes.

This also help use a custom rendering in the frontend so that traces can
be displayed distinctly and differently from the console API calls.

Differential Revision: https://phabricator.services.mozilla.com/D196020
2023-12-19 18:01:52 +00:00
Narcis Beleuzu 54a3764889 Backed out 2 changesets (bug 1835614) for xpcshell failure on test_tracer.js . CLOSED TREE
Backed out changeset 4501d1fb176a (bug 1835614)
Backed out changeset 60b933696a41 (bug 1835614)
2023-12-19 12:54:32 +02:00