Commit Graph
13 Commits
Author SHA1 Message Date
Lorenz A ad0ae2c01b Bug 2004233 - [devtools] Turn devtools/shared/loader/browser-loader.sys.mjs into an ES class. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D275636
2025-12-11 07:10:13 +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 dde0952bd6 Bug 1994217 - Enable ESLint rule jsdoc/no-bad-blocks on the rest of the tree. r=frontend-codestyle-reviewers,Gijs
This is mainly automatic changes, with some manual fixes to move text off of the first line.

Differential Revision: https://phabricator.services.mozilla.com/D268570
2025-10-17 11:18:46 +00:00
Narcis Beleuzu 89c0ffec7c Revert "Bug 1994217 - Enable ESLint rule jsdoc/no-bad-blocks on the rest of the tree. r=frontend-codestyle-reviewers,Gijs" for causing Documentation opt failure
This reverts commit 987c3ad130.

This reverts commit 1c5b20a293.

This reverts commit 0a9a458465.
2025-10-16 21:32:01 +00:00
Mark Banner 987c3ad130 Bug 1994217 - Enable ESLint rule jsdoc/no-bad-blocks on the rest of the tree. r=frontend-codestyle-reviewers,Gijs
This is mainly automatic changes, with some manual fixes to move text off of the first line.

Differential Revision: https://phabricator.services.mozilla.com/D268570
2025-10-16 10:58:14 +00:00
Alexandre Poirot 95222ec51e Bug 1970328 - [devtools] Remove DevToolsLoader's invisibleToDebugger flag. r=devtools-reviewers,jdescottes
This flag was only used by the allocation tracker test and we can now rely on the
DevTools global spawn by mozJSModuleLoader.

Differential Revision: https://phabricator.services.mozilla.com/D253049
2025-06-11 16:01:34 +00:00
Alexandre Poirot f758c5ec7d Bug 1953957 - [devtools] Stop shipping react-test-renderer-shallow.mjs in Firefox while it is only used in tests. r=devtools-reviewers,nchevobbe
This sizeable file is only used by two tests.
On top of that, we could easily use some other way to test them.

Differential Revision: https://phabricator.services.mozilla.com/D241595
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
Alexandre Poirot d589524af0 Bug 1952224 - [devtools] Use Set for react module URIs in devtools loaders. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D240658
2025-03-10 13:55:12 +00:00
Alexandre Poirot abad032e96 Bug 1929387 - [devtools] Ensure loading all callsites of ObjectInspector via a BrowserLoader. r=devtools-reviewers,nchevobbe
This is required as Object Inspector has to be loaded via a document scope
for its ChromeUtils.importESModule + global="current" to be functional.

Differential Revision: https://phabricator.services.mozilla.com/D237739
2025-03-05 17:06:03 +00:00
Alexandre Poirot 8b4e65c0af Bug 1949486 - [devtools] Expose ES Module versions for React modules. r=devtools-reviewers,nchevobbe
Land ES Modules for all React modules.

Also tweak the Browser Loader to force loading react loaded via require() to use the ES Modules.
This helps ensure these modules are loaded only once and always as a ES Module.
Otherwise require() statements from debugger frontend and import from Reps may load
distinct instances.

Differential Revision: https://phabricator.services.mozilla.com/D228995
2025-03-05 17:05:54 +00:00
Alexandre Poirot 2064ac5d14 Bug 1949437 - [devtools] Avoid loading duplicated debugger modules instances. r=devtools-reviewers,bomsy
These modules are already loaded by the Debugger frontend via the browser loader
instantiated in /index.js and we were loading a copy in the shared global loader.

This also helps the esm-ification of Reps as it ensures loading
all debugger modules in the debugger document global.
Reps modules are expected to be loaded with a document as global scope.

Differential Revision: https://phabricator.services.mozilla.com/D237738
2025-02-26 16:35:51 +00:00
Alexandre Poirot d7f3cddc7f Bug 1888171 - [devtools] Convert Browser Loader to ESM. r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D205867
2024-03-28 15:15:24 +00:00