Commit Graph
79 Commits
Author SHA1 Message Date
Nicolas Chevobbe 9678f5caab Bug 1874363 - [devtools] Remove build-debugger source-editor mapping. r=devtools-reviewers,ochameau.
Also remove devtools/client/debugger/src/utils/editor/source-editor.js which wasn't
used an look like a relic of ancient times.

Differential Revision: https://phabricator.services.mozilla.com/D198409
2024-01-16 13:44:51 +00:00
Iulian Moraru 2f1bccab07 Backed out 13 changesets (bug 1874363) - for causing multiple dt failures. CLOSED TREE
Backed out changeset 29fc55efd0a5 (bug 1874363)
Backed out changeset 75661fc7c39b (bug 1874363)
Backed out changeset bb6ef39f1a62 (bug 1874363)
Backed out changeset dbcffa72a1b2 (bug 1874363)
Backed out changeset 032f8f8c8593 (bug 1874363)
Backed out changeset a200f242dbd5 (bug 1874363)
Backed out changeset 44576c82ccfa (bug 1874363)
Backed out changeset 1bfb07c0b1e7 (bug 1874363)
Backed out changeset 75de090b9eef (bug 1874363)
Backed out changeset 442317088795 (bug 1874363)
Backed out changeset 29bd30a54caa (bug 1874363)
Backed out changeset 08c95433ca18 (bug 1874363)
Backed out changeset 8da0a8d798b2 (bug 1874363)
2024-01-16 12:12:50 +02:00
Nicolas Chevobbe 8589243db4 Bug 1874363 - [devtools] Remove build-debugger source-editor mapping. r=devtools-reviewers,ochameau.
Also remove devtools/client/debugger/src/utils/editor/source-editor.js which wasn't
used an look like a relic of ancient times.

Differential Revision: https://phabricator.services.mozilla.com/D198409
2024-01-16 08:30:59 +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 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 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
Nicolas Chevobbe 2aad9f9607 Bug 1837926 - [devtools] Update babel/parser package. r=devtools-reviewers,ochameau.
This is needed to handle the new Regexp `v` flag.
I'm taking this as an opportunity to fix a couple issue in the bundle script.

Differential Revision: https://phabricator.services.mozilla.com/D180675
2023-06-13 05:01:21 +00:00
Mark Banner 0fadbc1ec4 Bug 1829618 - Enable Prettier on json files (automatic fixes). r=perftest-reviewers,webcompat-reviewers,extension-reviewers,andi,desktop-theme-reviewers,pip-reviewers,devtools-reviewers,sync-reviewers,mossop,denschub,dao,sparky,robwu,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D176336
2023-05-09 16:14:51 +00:00
Nicolas Chevobbe ced1b2515a Bug 1826502 - [devtools] Remove classnames package. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D174954
2023-04-13 06:37:02 +00:00
Stanca Serban 36143c631a Backed out 2 changesets (bug 1826502) for causing devtools failures. CLOSED TREE
Backed out changeset cf951535876b (bug 1826502)
Backed out changeset 18a87184af79 (bug 1826502)
2023-04-12 15:09:18 +03:00
Nicolas Chevobbe fdeebd4c2f Bug 1826502 - [devtools] Remove classnames package. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D174954
2023-04-12 10:23:45 +00:00
Nicolas Chevobbe 17b6d80865 Bug 1826508 - [devtools] Use rollup for bundling debugger workers. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D174723
2023-04-11 05:55:17 +00:00
Hubert Boma Manilla 20a1c00258 Bug 1818962 - [devtools] Refactor search modifiers actions and reducers r=ochameau,devtools-reviewers
This patch makes the SearchInput a connected component, This allows us cleanup
all the seperate actions and reducer logic and makes it easier to add new SearchInput
with modifers functionality.

Differential Revision: https://phabricator.services.mozilla.com/D171034
2023-03-18 18:59:47 +00:00
Nicolas Chevobbe 825b0f8767 Bug 1819939 - [devtools] Update source-map to 0.7.4. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D171476
2023-03-11 11:25:59 +00:00
Nicolas Chevobbe 2e67793dc6 Bug 1819937 - [devtools] Update acorn to 8.8.2. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D171474
2023-03-11 11:25:59 +00:00
Nicolas Chevobbe d907575b23 Bug 1804886 - [devtools] Move pretty-fast into debugger/src/workers/pretty-print. r=ochameau.
I disabled indivual eslint rules for the file and I'll
fix them in individual commits in this stack

Differential Revision: https://phabricator.services.mozilla.com/D166554
2023-01-20 06:46:54 +00:00
Nicolas Chevobbe 0986eeac73 Bug 1803360 - [devtools] Put pretty-fast library in tree. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D163560
2022-12-08 15:54:07 +00:00
Alexandre Poirot 10b4e53375 Bug 1794687 - [devtools] Remove immutable from debugger and remove seamless-immutable. r=bomsy
immutable in vendor is still used by the memory panel

Differential Revision: https://phabricator.services.mozilla.com/D159108
2022-10-17 12:23:20 +00:00
Alexandre Poirot f494578bc1 Bug 1762212 - [devtools] Migrate sources reducer to a Map (instead of Resource API). r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D142463
2022-04-06 07:17:40 +00:00
Nicolas Chevobbe 60f4db18ff Bug 1669968 - [devtools] Remove lodash from tree.r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D136173
2022-01-21 12:48:22 +00:00
Nicolas Chevobbe 1b06b3d5b2 Bug 1750514 - [devtools] Remove lodash-move. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D136166
2022-01-20 07:21:09 +00:00
Nicolas Chevobbe 19938ac19e Bug 1737805 - [devtools] Remove lodash kebabCase usage. r=Honza.
The function usage wasn't providing any benefit, so
we can simply drop it.

Differential Revision: https://phabricator.services.mozilla.com/D129600
2021-11-04 12:42:42 +00:00
Nicolas Chevobbe eae96bda64 Bug 1730475 - [devtools] Handle sources with class static block. r=bomsy
The associated plugin is added to the babel config (and different locations where
we're using babel parsing).
The existing class for the getSymbols jest test is modified to include a few of
the latest class syntax (public and private properties, static block, ...).

Differential Revision: https://phabricator.services.mozilla.com/D126771
2021-09-30 13:53:54 +00:00
Nicolas Chevobbe ba8cbd24ae Bug 1730475 - [devtools] Update babel-core and associated packages. r=jdescottes.
In order to include the class statick block plugin, babel-core needs to be updated.
And as babel-core is updated, other packages relying on it also need to be updated.
One of them is jest, which requires a few changes in the test setting + a workaround
for CodeMirror test.
A few snapshots are updated as some methods changed their return values.
Finally, we're forcing the workerjs babel core dependency so it doesn't use a different
version. We should probably either update the dependency on jlast's repo, or directly
put the workerjs in tree, but we can do that on a dedicated bug.

Differential Revision: https://phabricator.services.mozilla.com/D126770
2021-09-30 13:53:53 +00:00
Nicolas Chevobbe 046e819315 Bug 1715985 - [devtools] Upgrade to pretty-fast 0.2.7. r=jdescottes.
This will unblock the migration to Node 12.

Differential Revision: https://phabricator.services.mozilla.com/D117537
2021-06-11 14:39:05 +00:00
Nicolas Chevobbe 1b40bb4b0c Bug 1710417 - [devtools] Update pretty-fast to 0.2.6. r=ladybenko.
This fixes an issue we had with pretty printing scripts
containing private fields.
A test case is added in browser_dbg-pretty-print.js to
ensure it stays this way.

Differential Revision: https://phabricator.services.mozilla.com/D114816
2021-05-12 09:40:15 +00:00
Nicolas Chevobbe 21ba0f7847 Bug 1709619 - [devtools] Handle private fields when retrieving script Symbols. r=bomsy.
Symbols are information on the structure of a given script (assignments, functions,
expressions, …)

This patch handles scripts using private fields and fixes a few things in the debugger:
- we get the full expression when hovering a private property access,
  a prerequisite to get the value of a private propery in the variable tooltip
  (which will be handled in Bug 1709567).
- private methods now show up in the outline view under their proper name, and
  not `anonymous`. `simplifyDisplayName` was fixed as well to not strip the `#`
  at the start of the method name.

Tests are added to ensure this works as expected.

A side-effect from modifying examples/simple1.js is that browser_dbg-outline-pretty.js
was broken since pretty-fast wasn't able to parse file with private fields syntax.
pretty-fast is updated to its latest version and the pretty-print worker is updated
so the test does not break anymore.

Depends on D114345

Differential Revision: https://phabricator.services.mozilla.com/D114459
2021-05-10 08:55:13 +00:00
Nicolas Chevobbe 51157f7ee8 Bug 1709544 - [devtools] Fix debugger preview tooltip on scripts with private fields. r=bomsy.
This patch adds 2 babel plugin so we can parse such scripts.

Differential Revision: https://phabricator.services.mozilla.com/D114345
2021-05-06 05:20:54 +00:00
Alexandre Poirot 96897ac5fb Bug 1690742 - [devtools] - Remove flow plugin and stop running flow on try r=nchevobbe,bomsy
Remove references to flow in build files.
This effectively stop stipping flow from debugger modules.
So any leftover would now start being kept in production file and do an error.

Differential Revision: https://phabricator.services.mozilla.com/D105330
2021-02-22 10:48:53 +00:00
Nicolas Chevobbe 6a2c5bff75 Bug 1674400 - [devtools] Update pretty-fast to 0.2.4. r=bomsy.
This updates the pretty-fast module to bring the commits
that were done there the 3 last years (date of the last
version being published).

Differential Revision: https://phabricator.services.mozilla.com/D96176
2020-11-10 12:15:13 +00:00
Nicolas Chevobbe 54cf3bd2c4 Bug 1673368 - [devtools] Remove unnecessary parts of debugger's webpack config. r=jdescottes
I inlined the two existing functions that were modifying the base config directly
back into the base webpack config, and then removed everything that wasn't hit
or used by the bundling script.
Thanks to this work, we're able to remove a few files that were previously only
used in Launchpad, or that are simple enough to be inlined into the webpack config.

Since postcss wasn't used, we can also remove the postcss.config.js file, as
well as some libraries from package.json.

Differential Revision: https://phabricator.services.mozilla.com/D96018
2020-11-06 14:49:16 +00:00
Nicolas Chevobbe 03b314ff8c Bug 1673368 - [devtools] Remove dependency on devtools-launchpad in webpack config. jdescottes. r=jdescottes
This patch is simply inlining what was in devtools-launchpad directly into the
debugger's webpack config.
In order for the bundling script to still work, we had to add the dependencies
that were used in devtools-launchpad.
For some reason, this shifted a lot of modules in the generated files (but files
have the same size before and after, so I guess nothing changed).

Next patch in the serie will cleanup this webpack config.

Differential Revision: https://phabricator.services.mozilla.com/D96017
2020-11-06 14:29:44 +00:00
Nicolas Chevobbe f8cb3f4a4d Bug 1669956 - [devtools] Fix debugger jest tests. r=jdescottes.
Edit babel config to be able to parse reps file

Differential Revision: https://phabricator.services.mozilla.com/D93395
2020-10-14 11:57:54 +00:00
Alexandre Poirot f0d809fe79 Bug 1669592 - [devtools] Cleanup debugger/package.json dependencies list r=jdescottes
This changeset focuses on dependencies, but surprisingly, it has an impact on bundles.
Looks like one dependency uses another revision.

Differential Revision: https://phabricator.services.mozilla.com/D92736
2020-10-07 15:51:36 +00:00
Alexandre Poirot 984e98faf9 Bug 1669592 - [devtools] Cleanup debugger/package.json. r=jdescottes
This changeset focus on devDependencies, but a similar work can probably be done on dependencies.
Many dependencies are justifies solely because of jest.
In order to run flow, we only need flow, and we need very few things for bin/bundle.
For me, the three things to keep working are:
* flow
* jest
* bin/bundle to rebuild vendors, reps, worker modules
The debugger frontend itself (src/ folder) is built without involving yarn/package.json.

Differential Revision: https://phabricator.services.mozilla.com/D92735
2020-10-07 15:51:05 +00:00
Julian Descottes f2f257b0fe Bug 1668615 - [devtools] Remove debugger bin/dev-server.js module r=ochameau
This module uses devtools-config, which should be removed.
bin/dev-server was only used for launching the debugger in standalon (via devtools-launchpad).
This setup is no longer supported and can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D92110
2020-10-05 11:22:45 +00:00
Yury Delendik c7e1c17ef0 Bug 1661331 - Update wasmparser to version 3.1.1 r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D88325
2020-08-28 16:47:51 +00:00
Julian Descottes 582297169c Bug 1651307 - Remove broken debugger node jobs: eslint & jsx-a11y r=loganfsmyth
The eslint and jsx-a11y jobs have been broken for 6 months now.
The eslint version used by the debugger is too old to be compatible with mozilla central's eslintrc.
If we update eslint, then there are other failures (`Environment key "mozilla/xpcshell" is unknown`).

We should be able to trust the mozilla-central eslint job for basic linting.
For jsx-a11y, there is currently no equivalent in mozilla-central.

Differential Revision: https://phabricator.services.mozilla.com/D83495
2020-07-16 17:54:23 +00:00
Logan Smyth 751c46da86 Bug 1626508 - Part 2: Add flow-typed definitions for Redux v4. r=jlast
Depends on D69156

Differential Revision: https://phabricator.services.mozilla.com/D69157
2020-04-01 16:42:06 +00:00
Jason Laster 57fded74c7 Bug 1622996 - Refactor devtools codebase to use optional chaining. r=jdescottes
Depends on D67540

Differential Revision: https://phabricator.services.mozilla.com/D67084
2020-03-19 21:11:12 +00:00
Alexandre Poirot 7b9a95f33f Bug 1589132 - Remove husky from debugger. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D66134
2020-03-10 00:01:18 +00:00
Yury Delendik bcbe49e809 Bug 1619737 - Update wasmparser to version 0.10.0 r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D65136
2020-03-03 19:45:28 +00:00
Jason Laster 0f34628d34 Bug 1604223 - fix ./mach try --preset devtools. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D57551
2019-12-18 10:05:45 +00:00
Nicolas Chevobbe ace2463ffd Bug 1594379 - Update devtools-launchpad to 0.0.160. r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D51987
2019-11-06 17:48:48 +00:00
Jason Laster dcdf2f289b Bug 1578606 - Fix jest. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D44591
2019-09-05 20:38:25 +00:00
Noemi Erli 8ffe7b6c33 Backed out changeset 55386bf32ae0 (bug 1578606) for devtools failures 2019-09-04 05:23:11 +03:00
Jason Laster 0f23a11576 Bug 1578606 - Fix jest. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D44591
2019-09-04 00:56:52 +00:00