Commit graph

70 commits

Author SHA1 Message Date
Alexandre Poirot
eb43068a10 Bug 1794692 - [devtools] Add MD5 vendored library for workers. r=bomsy
The MD5 file is being updated via:
$ wget https://github.com/pvorb/node-md5/archive/refs/tags/v2.3.0.tar.gz
$ tar zxvf v2.3.0.tar.gz
$ cd node-md5-2.3.0/
=> here edit webpack.config.js to set `libraryTarget: "umd"`
$ yarn webpack
$ cp dist/md5.min.js ../md5.js
$ cd ..
$ rm -rf v2.3.0.tar.gz node-md5-2.3.0

Vendor it in m-c, so that it can be used as a regular module
and not bundled via WebPack.

Differential Revision: https://phabricator.services.mozilla.com/D159112
2022-11-08 16:00:59 +00:00
Julian Descottes
3a20d1909c Bug 1755434 - [devtools] Regenerate debugger and source-map bundles r=bomsy
Depends on D138763

Differential Revision: https://phabricator.services.mozilla.com/D139737
2022-03-01 19:55:40 +00:00
Julian Descottes
b138ba1676 Bug 1754066 - Prevent chrome and resource protocols for sourcemap helper r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D138773
2022-02-21 16:34:06 +00:00
Nicolas Chevobbe
33dccdfd74 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
Julian Descottes
28807d5a6e Bug 1676427 - [devtools] Remove whitespace added by the webpack Banner plugin r=nchevobbe
Depends on D125943

The Banner including the license text was introducing a white space which fails some of our linters.
The existing js files which are using the Banner plugin are probably skipped by the whitespace linter, but vendors.css is not.

The whitespace is removed in the string passed to the Banner plugin in webpack.config.js.
The rest of the diff comes from running `node devtools/client/debugger/bin/bundle.js`

Differential Revision: https://phabricator.services.mozilla.com/D125969
2021-09-17 15:55:12 +00:00
wartmanm
c92df274ed Bug 1714082 - Only attach one message listener to devtools workers r=nchevobbe
Previously, a separate listener was added for every message, and all of them
were called for every response.

Differential Revision: https://phabricator.services.mozilla.com/D115312
2021-06-21 08:25:24 +00:00
Nicolas Chevobbe
e783099865 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
Julian Descottes
a9656ded14 Bug 1651127 - Regenerate debugger bundles after a yarn upgrade r=nchevobbe
Simple output of running `yarn upgrade && node bin/bundle.js`

Differential Revision: https://phabricator.services.mozilla.com/D82564
2020-07-08 06:27:18 +00:00
Logan Smyth
b8acb33b40 Bug 1607559 - Part 1: Do not replace the global URL with whatwg-url. r=jlast
By loading whatwg-url like this, we replace the worker global URL property
(among others), which means that code that uses `URL` and expects it to be the
version that is built into Firefox may not get what they expect.

Differential Revision: https://phabricator.services.mozilla.com/D69933

--HG--
extra : moz-landing-system : lando
2020-04-07 16:46:37 +00:00
Sorin Davidoi
fd9d2baa6d Bug 1588637 - perf: Reduce memory allocation, avoid regular expressions and layout trashing r=davidwalsh
Apply the following optimizations:
 - Don't use regular expressions where they can be avoided
 - Reduce unnecessary memory allocations (e.g. avoid doing a map and a filter by writing the code in an imperative fashion)
 - Reduce layout trashing by using `rAF` and `setTimeout`
 - Perform cheaper checks first in conditional statements

See commit messages for more details.

Differential Revision: https://phabricator.services.mozilla.com/D49214

--HG--
extra : moz-landing-system : lando
2019-10-16 18:44:13 +00:00
Nicolas Chevobbe
f4e7a3ed9c Bug 1586658 - Update debugger bundle files.r=jlast.
Those files are generated with bin/bundle.js, and were
out of sync.
We take this as an opportunity to include the license
at the top of the files, using the Webpack Banner plugin.

Differential Revision: https://phabricator.services.mozilla.com/D48297

--HG--
extra : moz-landing-system : lando
2019-10-08 21:28:18 +00:00
Logan Smyth
bf50a920a5 Bug 1541633 - Part 3: Reduce the amount of data passed to the source-map worker functions. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D42935

--HG--
extra : moz-landing-system : lando
2019-08-23 14:34:42 +00:00
Logan Smyth
bd56a7a396 Bug 1541633 - Part 2: Give workers a way to cleanly pass metadata about errors to callers. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D42934

--HG--
extra : moz-landing-system : lando
2019-08-23 14:33:16 +00:00
Cosmin Sabou
5086a1bd98 Backed out 5 changesets (bug 1541633) for devtools failures on browser_dbg-sourcemapped-breakpoint-console.js.
Backed out changeset 35fe7c48b49a (bug 1541633)
Backed out changeset 59019ae6bf3f (bug 1541633)
Backed out changeset 44ea34f63223 (bug 1541633)
Backed out changeset a8378192e3b6 (bug 1541633)
Backed out changeset de895ee6de42 (bug 1541633)

--HG--
extra : rebase_source : 9b3e5b34867298d1a5ffad2ade538c24ff045c1c
2019-08-22 10:13:47 +03:00
Logan Smyth
6a5359388c Bug 1541633 - Part 3: Reduce the amount of data passed to the source-map worker functions. r=jlast
Depends on D42934

Differential Revision: https://phabricator.services.mozilla.com/D42935

--HG--
extra : moz-landing-system : lando
2019-08-21 20:21:07 +00:00
Logan Smyth
a63b6c276d Bug 1541633 - Part 2: Give workers a way to cleanly pass metadata about errors to callers. r=jlast
Depends on D42933

Differential Revision: https://phabricator.services.mozilla.com/D42934

--HG--
extra : moz-landing-system : lando
2019-08-21 20:19:08 +00:00
Logan Smyth
3660d8e202 Bug 1572209 - Part 3: Upgrade MC Devtools build logic to use Babel 7.x for compilation. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D42573

--HG--
rename : devtools/client/debugger/.babelrc => devtools/client/debugger/babel.config.js
extra : moz-landing-system : lando
2019-08-20 00:57:18 +00:00
Nicolas Chevobbe
925311bc77 Bug 1568779 - Remove editors settings comments in devtools files. r=pbro.
Differential Revision: https://phabricator.services.mozilla.com/D42300

--HG--
extra : moz-landing-system : lando
2019-08-19 12:48:16 +00:00
Sylvestre Ledru
5da36f02d4 Bug 1562642 - Part 5 - Add missing MPL2 headers in devtools/ r=jlast
Depends on D41566

Differential Revision: https://phabricator.services.mozilla.com/D41567

--HG--
extra : moz-landing-system : lando
2019-08-12 15:56:26 +00:00
Julian Descottes
79650a7e03 Bug 1552495 - Bump debugger and reps to use launchpad 0.0.153 r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D31618

--HG--
extra : moz-landing-system : lando
2019-05-17 16:55:07 +00:00
Jason Laster
81c291a0c5 Bug 1551200 - getOriginalLocations should bail if there are no locations. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D31136

--HG--
extra : moz-landing-system : lando
2019-05-15 00:01:30 +00:00
Jason Laster
17836b9070 Bug 1548438 - Repeatedly refreshing causes the UI to go blank. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D29605

--HG--
extra : moz-landing-system : lando
2019-05-06 15:01:02 +00:00
Jason Laster
bbdcbf072a Bug 1545594 - Memoize md5. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D28147

--HG--
extra : moz-landing-system : lando
2019-04-19 16:03:23 +00:00
Jason Laster
f1c9b634c0 Bug 1539493 - memoize setSymbols call. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D25307

--HG--
extra : moz-landing-system : lando
2019-04-02 16:02:34 +00:00
Jason Laster
52ffc8ce81 Bug 1540239 Update module-manifest. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D25466

--HG--
extra : moz-landing-system : lando
2019-03-29 21:02:24 +00:00
Logan Smyth
2335fdeb20 Bug 1533813 - getOriginalLocation can be expensive. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D22760

--HG--
extra : moz-landing-system : lando
2019-03-12 00:46:14 +00:00
Dorel Luca
716250e4da Backed out changeset 985e05a4b540 (bug 1533813) for Debugger failure. CLOSED TREE 2019-03-12 01:40:45 +02:00
Logan Smyth
2eb982a11e Bug 1533813 - getOriginalLocation can be expensive. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D22760

--HG--
extra : moz-landing-system : lando
2019-03-11 23:23:27 +00:00
Florens Verschelde
3a4d1ef9d0 Bug 1533767 - [release-129] Sync 129. r=jlast
Bug 1533767 - [release-129] Fix 8026 - Prevent breakpoint label from triggering checkbox focus (#8044). r=dwalsh

Bug 1533767 - [release-129] Update dependency devtools-launchpad to ^0.0.150 (#8046). r=dwalsh

Bug 1533767 - [release-129] Fixes Regex for React Libraries (#8010). r=dwalsh

Bug 1533767 - [release-129] Ensuring long strings get re-rendered when their loaded properties are updated (#7874) (#8053). r=dwalsh

Bug 1533767 - [release-129] Update Getting Setup Docs (#8065). r=dwalsh

Bug 1533767 - [release-129] Fix 7799 - Restore pretty print shim to tab context menu (#8037). r=dwalsh

Bug 1533767 - [release-129] Unify array creation style in SecondaryPanes getStartItems and getEndItems (#8050). r=dwalsh

Bug 1533767 - [release-129] Add focus-within for showing breakpoint's delete button (#8029). r=dwalsh

Bug 1533767 - [release-129] Fix #7840 - Remove blackboxed text to prevent overflow (#8052). r=dwalsh

Bug 1533767 - [release-129] [Preview] Open node from the object inspector in popups (#8069). r=dwalsh

Bug 1533767 - [release-129] Fix #7952 - Remove debug line check for token hovering  (#8070). r=dwalsh

Bug 1533767 - [release-129] #7993 Fix callstack frame-group icon and avoid global selectors (#8078). r=dwalsh

Bug 1533767 - [release-129] Use O(N) algorithm in getUniqueIdentifiers. (#8085). r=dwalsh

Bug 1533767 - [release-129] Fix #8081 - Dropdown label and icon style (#8082). r=dwalsh

Bug 1533767 - [release-129] Fix #8084 - Vue.js icon missing in Frames (#8086). r=dwalsh

Bug 1533767 - [release-129] Fix #7956 - Show falsy values in preview (#8072). r=dwalsh

Bug 1533767 - [release-129] Fix #8040 - Correct Accordion header spacing and restore thin plus.svg icon (#8087). r=dwalsh

Bug 1533767 - [release-129] fix: make search input more responsive (#8079). r=dwalsh

Bug 1533767 - [release-129] Update link in contributing.md (#8095). r=dwalsh

Differential Revision: https://phabricator.services.mozilla.com/D22759

--HG--
extra : moz-landing-system : lando
2019-03-11 15:54:34 +00:00
Nicolas Chevobbe
79e260ff88 Bug 1531350 - [release 128] Add a BigInt rep. (#7975). r=dwalsh 2019-03-01 19:36:22 -05:00
Alex Rosenfeld
e62e7ff183 Bug 1531350 - [release 128] Update debugging-the-debugger.md (#8021). r=dwalsh 2019-03-01 19:36:21 -05:00
Jason Laster
23775fa3da Bug 1531350 - [release 128] Sync 128. r=dwalsh 2019-03-01 19:36:15 -05:00
Jason Laster
dd27ec4805 Bug 1529680 - [release 127] [Breakpoints] Improve column breakpoint performance (#8000). r=dwalsh 2019-02-25 15:59:27 -05:00
Jason Laster
b7ff50f82a Bug 1521864 - It should be possible to open the debugger in a tab. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D20485

--HG--
extra : moz-landing-system : lando
2019-02-21 14:56:47 +00:00
Jason Laster
67b402c738 Bug 1527122 - [release 125] sync 124. r=dwalsh 2019-02-11 22:17:41 -08:00
Jason Laster
e01fcc3888 Bug 1525757 - [release 124] [sourcemaps] persist tasks. r=dwalsh 2019-02-07 13:15:02 -08:00
Mrigank Krishan
4d4c1f35ac Bug 1525757 - [release 124] add types to source-maps API (#7846). r=dwalsh 2019-02-07 13:14:59 -08:00
Mrigank Krishan
3862ac9c33 Revert "Bug 1525492 - [release 123] add types to source-maps API (#7846). r=dwalsh"
This reverts commit da55f11d2fc1a741a10134f6031af991925601cb.
2019-02-06 22:12:31 -08:00
Jason Laster
2ae5bb3685 Revert "Backed out 19 changesets (bug 1525492) for damp timeout on a CLOSED TREE"
This reverts commit 8e6a625a9ddaf8293811737accaf55158a05158a.
2019-02-06 22:12:30 -08:00
Brian Hackett
9a8e529067 Bug 1523528 - [release 122] Don't wait to load already-loaded source maps (#7819). r=dwalsh 2019-01-31 13:33:46 -05:00
Jeff Walden
334260601d Bug 1523528 - [release 122] Use instead of when only a test is being performed (#7827). r=dwalsh 2019-01-31 13:33:43 -05:00
Jason Laster
0f2aa887a9 Bug 1515951 - [release 112] Enable Syntax Highlighting for ClojureScript (#7584). r=bhackett 2018-12-27 12:25:40 -05:00
Jason Laster
aa7cc50dd6 Bug 1515951 - [release 112] Blackbox original sources (#7370). r=bhackett 2018-12-27 12:25:39 -05:00
Jason Laster
29b5674c5a Revert "Backed out changeset 8566206da1bf (bug 1496401) for devtools failures at test/mochitest/browser_jsterm_await.js"
This reverts commit c639cc0b0a613949bd3e9c275c35e6adf5a8c38f.
2018-10-04 16:35:45 -04:00
Gurzau Raul
8221a997c1 Backed out changeset 8566206da1bf (bug 1496401) for devtools failures at test/mochitest/browser_jsterm_await.js 2018-10-04 21:44:05 +03:00
Jason Laster
367d991905 Bug 1496401 - Update Debugger Frontend v93. r=dwalsh 2018-10-04 05:47:00 +03:00
Logan Smyth
1fe5b507c8 Bug 1495029 - Add source-map@0.7.3's mappings.wasm asset to prepare for upgrade. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D7207

--HG--
rename : devtools/client/shared/source-map/dwarf_to_json.wasm => devtools/client/shared/source-map/assets/dwarf_to_json.wasm
extra : moz-landing-system : lando
2018-09-28 19:41:21 +00:00
Jason Laster
8d08b34677 Bug 1491983 - Update Debugger Frontend v88. r=dwalsh 2018-09-18 17:57:03 -04:00
Jason Laster
cd0d54a731 Bug 1488917 - Update Debugger Frontend v87. r=dwalsh 2018-09-06 13:03:09 -04:00
Jason Laster
519c3a060a Bug 1483646 - Update Debugger Frontend v82. r=dwalsh 2018-08-15 17:06:34 -04:00