Commit Graph
214 Commits
Author SHA1 Message Date
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
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
Artem Manushenkov 3224270b77 Bug 1900314 - Bump babel and use its topLevelAwait in parser worker r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D262189
2025-09-16 15:39:57 +00:00
Hubert Boma Manilla 16cdeea6e9 Bug 1953415 - [devtools] Remove CM5 related parser worker apis r=ochameau,perftest-reviewers,sparky
This patch
- Removes most of the parser worker apis related to CM5 (except those related to scope mapping i.e getScopes, mapExpressions)
- Removes all usages of symbols including the actions, reducers, selectors and any utilities

Differential Revision: https://phabricator.services.mozilla.com/D248649
2025-05-13 21:26:50 +00:00
Nicolas Chevobbe 902220872c Bug 1951341 - [devtools] Add Debugger support for scripts using import attributes. r=devtools-reviewers,ochameau.
We need to add the @babel/plugin-syntax-import-attributes plugin to make sure
the outline panel and inline previews are working when using import attributes.

Differential Revision: https://phabricator.services.mozilla.com/D240122
2025-03-04 12:44:51 +00:00
Sandor Molnar 5652fc6f92 Backed out changeset 2a5e9bdc7e8e (bug 1951341) for causing build bustages. CLOSED TREE 2025-03-03 15:04:50 +02:00
Nicolas Chevobbe a7bf0c79f2 Bug 1951341 - [devtools] Add Debugger support for scripts using import attributes. r=devtools-reviewers,ochameau.
We need to add the @babel/plugin-syntax-import-attributes plugin to make sure
the outline panel and inline previews are working when using import attributes.

Differential Revision: https://phabricator.services.mozilla.com/D240122
2025-03-03 12:35:07 +00:00
Logan Rosen 22709f7084 Bug 1947060 - Update Jest-related dependencies r=devtools-reviewers,frontend-codestyle-reviewers,ochameau
Update Jest-related dependencies to latest, while removing the unused jest-junit and jest-serializer-babel-ast dependencies. This involved updating the snapshots to match the new default format that Jest uses.

Differential Revision: https://phabricator.services.mozilla.com/D237509
2025-02-11 04:20:51 +00:00
Hubert Boma Manilla 9d91932ac9 Bug 1873657 - [devtools] Stop using the parser worker for determining JSX and typescript jsx r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D198021
2024-12-02 11:55:19 +00:00
Nicolas Chevobbe ef5434de87 Bug 1933139 - [devtools] Fix debugger preview tooltip on scripts with using keyword. r=devtools-reviewers,bomsy.
This adds the babel plugin supporting the explicit resource management API.

Differential Revision: https://phabricator.services.mozilla.com/D230084
2024-11-28 06:08:24 +00:00
Hubert Boma Manilla cf49de6ef1 Bug 1873432 - [devtools] Cleanup the use of parser worker for framework info r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D197907
2024-11-20 15:32:45 +00:00
Alexandre Poirot 10100b0ce6 Bug 1919785 - [devtools] Improve error logging when an exception is thrown in devtools workers. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D222790
2024-10-07 11:40:04 +00:00
Stanca Serban bfe1d00dbd Backed out 2 changesets (bug 1919785, bug 1919570) for causing damp-other failures.
Backed out changeset a5a762ada6bd (bug 1919785)
Backed out changeset 88fafd5296fe (bug 1919570)
2024-10-01 06:45:04 +03:00
Alexandre Poirot 5d2bda79c8 Bug 1919785 - [devtools] Improve error logging when an exception is thrown in devtools workers. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D222790
2024-09-30 20:48:02 +00:00
Sandor Molnar 4063155409 Backed out 2 changesets (bug 1919570, bug 1919785) for causing dt failures @ browser_dbg-sourcemaps-bogus.js CLOSED TREE
Backed out changeset 3371f31eeb2a (bug 1919785)
Backed out changeset 98d74e2fc2d5 (bug 1919570)
2024-09-30 18:24:49 +03:00
Alexandre Poirot 760fc01014 Bug 1919785 - [devtools] Improve error logging when an exception is thrown in devtools workers. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D222790
2024-09-30 12:04:31 +00:00
Nicolas Chevobbe 4e52e779f7 Bug 1906587 - [devtools] Fix preview for this property access with bracket notation. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D217110
2024-07-22 09:19:31 +00:00
Tooru Fujisawa 0ea5bbc2c6 Bug 1905653 - Part 2: Bundle pretty-print-worker.js. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D215387
2024-07-02 07:48:39 +00:00
Dave Townsend 2af4d349f3 Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D202959
2024-03-05 14:21:15 +00:00
Hubert Boma Manilla 4ed107a930 Bug 1878061 - [devtools] Remove parserWorker.hasSyntaxError r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D200358
2024-02-05 13:16:48 +00:00
Norisz Fay c9a14cedc0 Backed out changeset b1dc6c86f727 (bug 1873432) for causing dt failure on browser_dbg-preview-wrapped-lines.js CLOSED TREE 2024-01-17 23:50:29 +02:00
Hubert Boma Manilla b8450dbe58 Bug 1873432 - [devtools] Cleanup the use of parser worker for framework info r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D197907
2024-01-17 13:56:07 +00:00
Hubert Boma Manilla b66e72ad47 Bug 1859531 - [devtools] Add getClosestOriginalFunctionName for the callstack original frames r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D191185
2024-01-16 02:27:48 +00:00
Nicolas Chevobbe 29843b03b0 Bug 1826503 - [devtools] Properly vendor fuzzaldrin-plus. r=devtools-reviewers,sylvestre,ochameau.
The library is added in devtools/client/shared/vendor, like the other third-party
libraries we use in DevTools.

This was the latest file that justified the debugger-specific vendor machinery,
so we can clean that up now.

First, we can remove the vendor.js file.
With this, this means that bin/bundle.js now only bundles the workers, using rollup,
so we can remove webpack and its associated packages from package.json, as well
as the webpack.config.js.
Finally, we can stop handling debugger vendors in build-debugger.js

Differential Revision: https://phabricator.services.mozilla.com/D193916
2023-11-24 08:50:42 +00:00
Nicolas Chevobbe 1fb8a5cee0 Bug 1826505 - [devtools] Don't vendor react-aria-components anymore. r=devtools-reviewers,ochameau.
This is not used anymore, so we can drop it.
This was the only vendored item that was contributing
to vendor.css, so we can delete the file, and cleanup
our webpack config.

Differential Revision: https://phabricator.services.mozilla.com/D193915
2023-11-23 06:27:43 +00:00
Nicolas Chevobbe a7b06eb2a6 Bug 1862963 - [devtools] Use strictRequires option for commonjs rollup plugin. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D192770
2023-11-07 05:54:52 +00:00
Nicolas Chevobbe 89f42791e8 Bug 1826504 - [devtools] Remove react-transition-group/Transition from Debugger vendors.js. r=devtools-reviewers,ochameau.
The library was only used to make the quick search panel
and the shortcut modal to show with a slide-in animation.
This can be replaced with a simple CSS animation instead.
I'm taking this as an opportunity to cleanup a few things
that were unecessary or not ideal in the CSS file.

Differential Revision: https://phabricator.services.mozilla.com/D192266
2023-11-03 10:00:06 +00:00
Alexandre Poirot f4b3c49337 Bug 1859243 - [devtools] Bump babel versions used by the parser worker. r=devtools-reviewers,bomsy
Also removing "buffer", which looks unused.

Differential Revision: https://phabricator.services.mozilla.com/D191052
2023-10-23 22:37:55 +00:00
Hubert Boma Manilla ca067bf948 Bug 1853294 - [devtools] Pass the function and class symbols to the outline panel on the demand r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D188432
2023-10-19 08:36:25 +00:00
Alexandre Poirot 572bc326ab Bug 1857214 - [devtools] Avoid computing expression untill this is actually used. r=devtools-reviewers,bomsy
Computing the expression would involve calling Babel's `generate` method on the AST node,
which is expansive. But we rarely read this attribute.

Differential Revision: https://phabricator.services.mozilla.com/D190179
2023-10-18 08:00:12 +00:00
Alexandre Poirot 2d03d3b379 Bug 1857214 - [devtools] Remove unused attributes and methods from SimplePath. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D190178
2023-10-18 08:00:12 +00:00
Alexandre Poirot bdd6eb6ba2 Bug 1857214 - [devtools] Avoid creating duplicated identifiers. r=devtools-reviewers,bomsy
We were creating them and later filtering them out.
Also `getUniqueIdentifiers` was duplicating a possibly 100M+ large array...

Differential Revision: https://phabricator.services.mozilla.com/D190177
2023-10-18 08:00:11 +00:00
Alexandre Poirot 7a266520f8 Bug 1857214 - [devtools] Avoid instantiating lots of intermediate arrays when computing the identifiers. r=devtools-reviewers,nchevobbe
On bug 1843454 STR, symbols.identifiers is a 100M large array.
So all these intermediate array cause a serious amount of short-lived arrays.

Differential Revision: https://phabricator.services.mozilla.com/D190176
2023-10-18 08:00:11 +00:00
Alexandre Poirot 1045d29f5a Bug 1857214 - [devtools] Don't store name for member expressions. r=devtools-reviewers,nchevobbe
This attribute isn't used. Member expressions are only used by `findBestMatchExpression`.

Differential Revision: https://phabricator.services.mozilla.com/D190783
2023-10-18 08:00:10 +00:00
Alexandre Poirot 7538ee82ae Bug 1857214 - [devtools] Stop collecting call expressions to know if the module is a react module. r=devtools-reviewers,nchevobbe
As `callExpressions` are only used for knowing if that's a react module...
We could avoid a bunch of intermediate objects by computing right away if we have a react import.

Differential Revision: https://phabricator.services.mozilla.com/D190782
2023-10-18 08:00:10 +00:00
Alexandre Poirot bb0be469e7 Bug 1857214 - [devtools] Stop collecting imports to know if the module is a react module. r=devtools-reviewers,nchevobbe
As `imports` are only used for knowing if that's a react module...
We could avoid a bunch of intermediate objects by computing right away if we have a react import.

Differential Revision: https://phabricator.services.mozilla.com/D190781
2023-10-18 08:00:09 +00:00
Alexandre Poirot ef42419744 Bug 1857214 - [devtools] Remove some unused attributes from parser worker. r=devtools-reviewers,nchevobbe
There might be more.

While doing that, document the objects being stored and their precise usage.

Differential Revision: https://phabricator.services.mozilla.com/D190780
2023-10-18 08:00:09 +00:00
Hubert Boma Manilla 5b1fe0ca95 Bug 1854889 - [devtools] Add some documentation to the parsing for scope information r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D187734
2023-10-02 23:17:47 +00:00
Hubert Boma Manilla a9f1967710 Bug 1853296 - [devtools] Pass the function symbols to the main thread when the Quick open panel is opened r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D188423
2023-09-29 16:22:26 +00:00
Krishna Ravishankar 477d1da833 Bug 1851759 - [devtools] Fix incorrect removal of non-expr-stmt when top-level-await is present r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D187957
2023-09-13 08:04:43 +00:00
Alexandre Poirot 55afd4cab1 Bug 1851566 - [devtools] Avoid passing large dataset out of the parser worker. r=devtools-reviewers,bomsy
These three attributes are very large arrays and we could easily keep them
within the worker thread by exposing new dedicated method.

Differential Revision: https://phabricator.services.mozilla.com/D187436
2023-09-11 13:51:24 +00:00
Alexandre Poirot 1dc335e12a Bug 1851522 - [devtools] Only pass symbols used by the main thread. r=devtools-reviewers,bomsy
Clarify which attributes are used only within the worker
and shouldn't be passed to the main thread.
Also clarify what are the usages of each attribute so that we can
more easily transfer some on-demand.

`callExpressions` wasn't used anywhere.

Differential Revision: https://phabricator.services.mozilla.com/D187401
2023-09-11 13:51:24 +00:00
Tooru Fujisawa e789b641d5 Bug 1849144 - Fix the number of whitespaces used for preserving the column number of inline script. r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D186596
2023-08-22 09:25:34 +00:00
Natalia Csoregi f3a3b20d62 Backed out changeset b65a5303a7ae (bug 1849144) for causing eslint failure. CLOSED TREE 2023-08-21 21:48:36 +03:00
Tooru Fujisawa ff970a898a Bug 1849144 - Fix the number of whitespaces used for preserving the column number of inline script. r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D186596
2023-08-21 16:25:40 +00:00
Hubert Boma Manilla a51333e689 Bug 1724562 - [devtools] Fix tooltip and inline previews for module scripts r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D183112
2023-07-14 17:34:27 +00:00
Hubert Boma Manilla a6174b08c7 Bug 1724562 - [devtools] Move parse-script-tags module to the parser utils file r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D182665
2023-07-14 17:34:27 +00:00
Nicolas Chevobbe 1ace4e8d61 Bug 1837926 - [devtools] Support new RegExp v flag in parser worker. r=devtools-reviewers,ochameau.
Add plugin-proposal-unicode-sets-regex babel plugin and use it.
Add a jest test for it.

Differential Revision: https://phabricator.services.mozilla.com/D180676
2023-06-13 05:01:21 +00:00