26 Commits
Author SHA1 Message Date
Mark Banner 7c7e102a02 Bug 1924775 - Remove some cases of ESLint rule no-undef being disabled. r=devtools-reviewers,hsohaney,nchevobbe
These are generally cases where the exclusion is no longer necessary, because we've fixed whatever was causing it to be added in the first place.

Differential Revision: https://phabricator.services.mozilla.com/D300083
2026-05-21 07:45:43 +00:00
Atila Butkovits 76208970f9 Revert "Bug 1924775 - Remove some cases of ESLint rule no-undef being disabled. r=devtools-reviewers,hsohaney,nchevobbe" for causing node failures.
This reverts commit f572e49026.

Revert "Bug 1924775 - Use a defined version of the "globals" npm module, and resolved raised issues. r=frontend-codestyle-reviewers,devtools-reviewers,home-newtab-reviewers,flozia,nchevobbe,mossop,thecount"

This reverts commit e0f4d195f8.
2026-05-20 14:16:30 +00:00
Mark Banner f572e49026 Bug 1924775 - Remove some cases of ESLint rule no-undef being disabled. r=devtools-reviewers,hsohaney,nchevobbe
These are generally cases where the exclusion is no longer necessary, because we've fixed whatever was causing it to be added in the first place.

Differential Revision: https://phabricator.services.mozilla.com/D300083
2026-05-20 13:33:26 +00:00
iulian moraru 38689bebb2 Revert "Bug 1924775 - Remove some cases of ESLint rule no-undef being disabled. r=devtools-reviewers,hsohaney,nchevobbe" for causing newtab failures related to bundles.
This reverts commit 1a90fee5f3.

Revert "Bug 1924775 - Use a defined version of the "globals" npm module, and resolved raised issues. r=frontend-codestyle-reviewers,devtools-reviewers,home-newtab-reviewers,flozia,nchevobbe,mossop,thecount"

This reverts commit 9b2da35aba.
2026-05-20 00:54:26 +00:00
Mark Banner 1a90fee5f3 Bug 1924775 - Remove some cases of ESLint rule no-undef being disabled. r=devtools-reviewers,hsohaney,nchevobbe
These are generally cases where the exclusion is no longer necessary, because we've fixed whatever was causing it to be added in the first place.

Differential Revision: https://phabricator.services.mozilla.com/D300083
2026-05-20 00:11:08 +00:00
Logan Rosen d24c9d9ff4 Bug 1857834 - auto-formatting with Prettier v3 r=linter-reviewers,webdriver-reviewers,perftest-reviewers,search-reviewers,devtools-reviewers,sync-reviewers,reusable-components-reviewers,profiler-reviewers,dom-storage-reviewers,android-reviewers,firefox-ai-ml-reviewers,hjones,mcheang,mstange,sparky,janv,nchevobbe,tarek,Standard8,markh
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D230598
2024-11-29 15:18:25 +00:00
Alexandre Poirot 26d9f9bb91 Bug 1713093 - [devtools] Remove TargetMixin.attachThread. r=devtools-reviewers,nchevobbe
This code was only used for workers targets, which weren't passing breakpoints
from the server side via "sessionData" concept.
Instead, we were still relying on the frontend to pass them and only after that
manually requesting the thread to resume its execution.

Now, there is still a notion of "attach" around the thread actor.
While all the targets are immediately instantiating their related thread actor,
the thread actor isn't active by default.
It becomes active as soon as:
* SOURCE or THREAD_STATE resource is watched
* breakpoints are set via session data (breakpoint list actor)
* thread configuration are set via session data (thread configuration actor)
I had to do one of these things in order to keep test from working.
In the production code, we do most of these things by default on the toolbox startup.
We could revise this behavior by:
* always attaching the thread actor, but it may start pausing unexpectedly in some tests.
* decouple sources from breakpoints within the thread actor, so that watching for sources doesn't necessarily "attach" the thread actor and activate breakpoints/debugger statements.
* have a new thread configuration to explicitly enable the thread actor pausing features.

I'm often using thread configuration to enable pausing in tests.
This required to improve xpcshell test helpers to be able to use Watcher/Commands.

About browser_target_command_bfcache.js, the DevTools code is now so quick that the
back/forward requests at done too quickly one after the other and fail actually moving to
the other document.

Differential Revision: https://phabricator.services.mozilla.com/D166321
2024-03-20 12:30:17 +00:00
pstanciu 5a1a45a9a8 Backed out 6 changesets (bug 1713093, bug 1691986) for turning Bug 1767717 into permafail. CLOSED TREE
Backed out changeset b0285f8abf2e (bug 1713093)
Backed out changeset 6532dbabf879 (bug 1713093)
Backed out changeset 2670f26f6bff (bug 1713093)
Backed out changeset a63d603a1973 (bug 1713093)
Backed out changeset 0118d0bc64ba (bug 1713093)
Backed out changeset e29a81bc7299 (bug 1691986)
2024-03-08 20:32:38 +02:00
Alexandre Poirot 9f0c59245f Bug 1713093 - [devtools] Remove TargetMixin.attachThread. r=devtools-reviewers,nchevobbe
This code was only used for workers targets, which weren't passing breakpoints
from the server side via "sessionData" concept.
Instead, we were still relying on the frontend to pass them and only after that
manually requesting the thread to resume its execution.

Now, there is still a notion of "attach" around the thread actor.
While all the targets are immediately instantiating their related thread actor,
the thread actor isn't active by default.
It becomes active as soon as:
* SOURCE or THREAD_STATE resource is watched
* breakpoints are set via session data (breakpoint list actor)
* thread configuration are set via session data (thread configuration actor)
I had to do one of these things in order to keep test from working.
In the production code, we do most of these things by default on the toolbox startup.
We could revise this behavior by:
* always attaching the thread actor, but it may start pausing unexpectedly in some tests.
* decouple sources from breakpoints within the thread actor, so that watching for sources doesn't necessarily "attach" the thread actor and activate breakpoints/debugger statements.
* have a new thread configuration to explicitly enable the thread actor pausing features.

I'm often using thread configuration to enable pausing in tests.
This required to improve xpcshell test helpers to be able to use Watcher/Commands.

About browser_target_command_bfcache.js, the DevTools code is now so quick that the
back/forward requests at done too quickly one after the other and fail actually moving to
the other document.

Differential Revision: https://phabricator.services.mozilla.com/D166321
2024-03-06 13:43:48 +00:00
Alexandre Poirot d647366308 Bug 1861943 - [devtools] Introduce a server side method to set all data entry values in one call. r=devtools-reviewers,nchevobbe
This will help bug 1569775 and bug 1651522 to update the whole entries of a given data type.

As there is little difference between adding new entries and replacing all entries,
I'm tuning the existing addSessionDataEntry methods to support both behaviors.

Differential Revision: https://phabricator.services.mozilla.com/D192243
2023-11-06 12:37:24 +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
Alexandre Poirot a4d84bdf5b Bug 1571212 - [devtools] Wait for resume to complete in all xpcshell tests. r=bomsy
test_stepping-12.js wasn't correctly waiting for thread to be resumed between each of its sub test.

Similarly, other tests weren't waiting for thread front's resume request to be resume.
I'm also spreading the usage of resumeAndWaitForPause to better ensure we resume and wait for next paused event
without any race condition. Listening to "paused" after calling "resume" is subject to race conditions.

Differential Revision: https://phabricator.services.mozilla.com/D136125
2022-01-19 17:43:00 +00:00
Andrey Bienkowski 1abbfde255 Bug 1714544 - Remove redundant eslint-disable directives in devtools/server/tests r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D116828
2021-06-22 12:18:29 +00:00
Julian Descottes e6b0ca78d0 Bug 1697742 - Fix breakpoints for xpcshell target actors r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D117912
2021-06-17 15:56:14 +00:00
Alexandre Poirot 7f56d9bcc2 Bug 1682780 - [devtools] Adapt tests and doc now that ThreadActor.attach no longer pause the thread. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D100022
2021-01-07 13:33:40 +00:00
Alexandre Poirot 6fc7585ce4 Bug 1622219 - Return only the thread front from Target.attachThread. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D65124
2020-03-16 11:37:47 +00:00
Andreea Pavel ddf19b9e93 Backed out 4 changesets (bug 1619622, bug 1622219) for failing dt at browser_dbg-browser-content-toolbox.js on a CLOSED TREE
Backed out changeset ee78eb11695d (bug 1619622)
Backed out changeset f83aee4ecf04 (bug 1622219)
Backed out changeset 6616e4b92e83 (bug 1622219)
Backed out changeset 48d662255ed1 (bug 1622219)
2020-03-16 13:33:51 +02:00
Alexandre Poirot ae14d2a9e5 Bug 1622219 - Return only the thread front from Target.attachThread. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D65124
2020-03-13 12:26:13 +00:00
Mihai Alexandru Michis 500d6111bf Backed out 5 changesets (bug 1619622) for causing devtool failures in browser_dbg-browser-content-toolbox.js
CLOSED TREE

Backed out changeset d447fd6fa18d (bug 1619622)
Backed out changeset f2ac72165a3a (bug 1619622)
Backed out changeset ceeaf109d8b6 (bug 1619622)
Backed out changeset 778c166fd33f (bug 1619622)
Backed out changeset 9a2b75a25794 (bug 1619622)
2020-03-11 21:17:35 +02:00
Alexandre Poirot 2fdb498d5d Bug 1619622 - Return only the thread front from Target.attachThread. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D65124
2020-03-11 13:35:46 +00:00
Julian Descottes 292091a001 Bug 1618876 - Return a process descriptor in RootFront getProcess/getMainProcess r=ochameau
Depends on D64744

Differential Revision: https://phabricator.services.mozilla.com/D64750
2020-03-03 09:24:55 +00:00
Alexandre Poirot 35634f4f44 Bug 1614792 - Rename DebuggerClient to DevToolsClient. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D62495
2020-02-17 13:39:25 +00:00
Alexandre Poirot 1ea1a546f1 Bug 1614791 - Rename DebuggerServer to DevToolsServer. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D61363
2020-02-17 10:28:24 +00:00
Alexandre Poirot e4582cd9a0 Bug 1609716 - Unify xpcshell test folders in devtools. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D60160
2020-01-20 13:56:04 +00:00
Cosmin Sabou eb2d2dd49c Backed out changeset ccd058375096 (bug 1609716) for devtools failures on browser_device_custom_remove. CLOSED TREE 2020-01-20 18:11:34 +02:00
Alexandre Poirot f2e7460a19 Bug 1609716 - Unify xpcshell test folders in devtools. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D60160
2020-01-20 13:56:04 +00:00