Commit Graph
25 Commits
Author SHA1 Message Date
Alexandre Poirot e1abf62065 Bug 1834725 - [devtools] Log source map errors to the console directly from SourceMapLoader. r=devtools-reviewers,nchevobbe
The main goal here is to re-throw the exception so that the debugger can start displaying source map errors.

Note that the previous changeset tweaked the StyleEditor code to handle exceptions.
The Debugger will be handled in the next changeset.

Differential Revision: https://phabricator.services.mozilla.com/D187576
2024-01-15 12:57:19 +00:00
Natalia Csoregi 63d346b505 Backed out 4 changesets (bug 1834725) for causing failures on browser_styleeditor_loading_with_containers.js. CLOSED TREE
Backed out changeset 0965e956200a (bug 1834725)
Backed out changeset 4a8151163607 (bug 1834725)
Backed out changeset a56f42223377 (bug 1834725)
Backed out changeset a920356b63eb (bug 1834725)
2024-01-11 19:57:47 +02:00
Alexandre Poirot 31e7b41420 Bug 1834725 - [devtools] Log source map errors to the console directly from SourceMapLoader. r=devtools-reviewers,nchevobbe
The main goal here is to re-throw the exception so that the debugger can start displaying source map errors.

Note that the previous changeset tweaked the StyleEditor code to handle exceptions.
The Debugger will be handled in the next changeset.

Differential Revision: https://phabricator.services.mozilla.com/D187576
2024-01-11 15:27:25 +00:00
Tom Marble 6c1231e2e8 Bug 1853244 - convert .ini manifests to .toml: batch 6 {caps,devtools,dom}/**/browser.ini r=jmaher,media-playback-reviewers,devtools-reviewers,profiler-reviewers,alwu,nchevobbe,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D188856
2023-09-22 20:42:14 +00:00
Kershaw Chang 8c73084fff Bug 1838829 - Skip failed tests, r=necko-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,dimi,valentin,robwu
Differential Revision: https://phabricator.services.mozilla.com/D181251
2023-06-28 13:21:00 +00:00
Norisz Fay a17cc174f1 Backed out 2 changesets (bug 1838829) for causing perma mochitest failure with dom/websocket/tests being skipped CLOSED TREE
Backed out changeset 19a5d4f1850a (bug 1838829)
Backed out changeset 97cd8a256954 (bug 1838829)
2023-06-27 02:52:52 +03:00
Kershaw Chang 49115434d9 Bug 1838829 - Skip failed tests, r=necko-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,dimi,valentin,robwu
Differential Revision: https://phabricator.services.mozilla.com/D181251
2023-06-26 14:22:14 +00:00
Norisz Fay da37f6c50c Backed out 5 changesets (bug 1838829) for causing mochitest failures CLOSED TREE
Backed out changeset 693d34c8447d (bug 1838829)
Backed out changeset 903d9ff4afaa (bug 1838829)
Backed out changeset 5e51feff7467 (bug 1838829)
Backed out changeset e125be49d2a6 (bug 1838829)
Backed out changeset 1a8cf3c83dc4 (bug 1838829)
2023-06-22 03:37:07 +03:00
Kershaw Chang 8ae645cecc Bug 1838829 - Skip failed tests, r=necko-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,dimi,valentin,robwu
Differential Revision: https://phabricator.services.mozilla.com/D181251
2023-06-21 19:43:33 +00:00
Alexandre Poirot f9f9928fef Bug 1833095 - [devtools] Return null from source map loader/worker when no mapping is found. r=devtools-reviewers,bomsy
This helps the callsite in the main thread to distinguish between being mapped
or lack of mappings.
Doing this prevent returning back the exact same location and could spare some cycles.

Differential Revision: https://phabricator.services.mozilla.com/D178389
2023-05-25 21:16:23 +00:00
Mark Banner 91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Julian Descottes 39326f265f Bug 1826954 - [devtools] Disable devtools tests and test suites failing with http3 r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D174528
2023-04-26 22:43:59 +00:00
Natalia Csoregi 43331bed4b Backed out 3 changesets (bug 1826954) for causing http3 failures e.g. browser_net_http3_request_details.js. CLOSED TREE
Backed out changeset fc397a601a63 (bug 1826954)
Backed out changeset 85ad3cfdbe1c (bug 1826954)
Backed out changeset 62802fc23ffe (bug 1826954)
2023-04-26 12:21:10 +03:00
Julian Descottes 29d3d81ba9 Bug 1826954 - [devtools] Disable devtools tests and test suites failing with http3 r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D174528
2023-04-26 07:00:50 +00:00
Mark Banner b3474f4614 Bug 1812977 - Remove now unnecessary import-globals-from statements in devtools. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D168071
2023-01-30 19:33:38 +00:00
Alexandre Poirot bf518e5f11 Bug 1805378 - [devtools] Make the SourceMapLoader be instantiated per toolbox. r=bomsy,perftest-reviewers,kshampur
This complexify the existing tests a bit, but will make the management from the Toolbox more obvious.

The metrics test highlights that we allow to prevent loading the sourcemap modules
unless it is strictly necessary!

(Also I forgot to remove the source-map-loader from the list of browser loader module...)

Differential Revision: https://phabricator.services.mozilla.com/D164694
2022-12-20 19:09:57 +00:00
Alexandre Poirot 54915478d2 Bug 1805378 - [devtools] Automatically start the worker on first WorkerDispatcher invoke/task call. r=bomsy,perftest-reviewers,kshampur
Because of this, we have to now pass the worker URL via WorkerDispatcher constructor.
Doing this should help then extend WorkerDispatcher instead of manually instantiating it.

About browser_jsterm_hide_when_devtools_chrome_enabled_false.js, as the SourceMapLoader
is now started lazily, the worker is no longer started during this test
and so we no longer have to wait for it.

And browser_jsterm_await_paused.js was failing because we resumed too quickly.
I added some code to better wait for awaitExpression full evaluation.

Differential Revision: https://phabricator.services.mozilla.com/D164547
2022-12-20 19:09:56 +00:00
Stanca Serban a07226cd80 Backed out 7 changesets (bug 1805378) for causing failures in source-map-loader.js. CLOSED TREE
Backed out changeset 4dd1ad435728 (bug 1805378)
Backed out changeset 5479ff3a475f (bug 1805378)
Backed out changeset bd89280bde1a (bug 1805378)
Backed out changeset 1bd4fec4b964 (bug 1805378)
Backed out changeset 975bd01106d7 (bug 1805378)
Backed out changeset 9a1e0541748a (bug 1805378)
Backed out changeset 926ce2f2d51f (bug 1805378)
2022-12-19 23:29:20 +02:00
Alexandre Poirot cf1aba2a05 Bug 1805378 - [devtools] Make the SourceMapLoader be instantiated per toolbox. r=bomsy
This complexify the existing tests a bit, but will make the management from the Toolbox more obvious.

The metrics test highlights that we allow to prevent loading the sourcemap modules
unless it is strictly necessary!

(Also I forgot to remove the source-map-loader from the list of browser loader module...)

Differential Revision: https://phabricator.services.mozilla.com/D164694
2022-12-19 17:00:37 +00:00
Alexandre Poirot 9f8dbaf1d5 Bug 1805378 - [devtools] Automatically start the worker on first WorkerDispatcher invoke/task call. r=bomsy
Because of this, we have to now pass the worker URL via WorkerDispatcher constructor.
Doing this should help then extend WorkerDispatcher instead of manually instantiating it.

About browser_jsterm_hide_when_devtools_chrome_enabled_false.js, as the SourceMapLoader
is now started lazily, the worker is no longer started during this test
and so we no longer have to wait for it.

And browser_jsterm_await_paused.js was failing because we resumed too quickly.
I added some code to better wait for awaitExpression full evaluation.

Differential Revision: https://phabricator.services.mozilla.com/D164547
2022-12-19 17:00:36 +00:00
Alexandre Poirot 509842f770 Bug 1801695 - [devtools] Remove Proxy on top of SourceMapLoader. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D162968
2022-12-12 13:15:52 +00:00
Alexandre Poirot df719160ef Bug 1801695 - [devtools] Use regular devtools loader to load SourceMap modules. r=bomsy
Now that source-map-loader uses ChromeLoader, it doesn't need to be loaded
via the Browser Loader. It was mostly used to be able to access window.Worker symbol.

It was also exposing `fetch` global symbol. DevTools Loader wasn't exposing it.
I fixed that as this symbol is available in JSM/ESM.

Differential Revision: https://phabricator.services.mozilla.com/D162966
2022-12-12 13:15:52 +00:00
Alexandre Poirot 28b5b6fbba Bug 1801695 - [devtools] Store worker URL in their index.js module instead of callsite. r=bomsy
This simplify the frontend code/callsites by not having to know where the worker file is.

Differential Revision: https://phabricator.services.mozilla.com/D162965
2022-12-12 13:15:51 +00:00
Alexandre Poirot a6fdd5313b Bug 1801621 - [devtools] Remove useless createConsumer intermediate module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D162565
2022-11-24 14:57:49 +00:00
Alexandre Poirot 6659c6d1bb Bug 1794693 - [devtools] Convert source-map jest test into mochitests. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D159116
2022-11-08 16:01:01 +00:00