gecko-dev/devtools/client/fronts
Alexandre Poirot 87250d4e53 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
..
addon
descriptors
inspector
targets Bug 1713093 - [devtools] Remove TargetMixin.attachThread. r=devtools-reviewers,nchevobbe 2024-03-06 13:43:48 +00:00
worker
accessibility.js
animation.js
array-buffer.js
blackboxing.js
breakpoint-list.js
changes.js
compatibility.js
css-properties.js Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw 2024-03-05 14:21:15 +00:00
device.js
frame.js
highlighters.js
inspector.js
layout.js
manifest.js
memory.js
moz.build Bug 1875045 - [devtools] Release Object actors by bulk. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe 2024-01-29 13:59:51 +00:00
network-content.js
network-parent.js
node.js Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw 2024-03-05 14:21:15 +00:00
object.js Bug 1852028 - [devtools] Log function return in javascript tracer. r=devtools-reviewers,nchevobbe 2024-02-13 09:38:50 +00:00
objects-manager.js Bug 1875045 - [devtools] Release Object actors by bulk. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe 2024-01-29 13:59:51 +00:00
page-style.js
perf.js
preference.js
private-properties-iterator.js
property-iterator.js
reflow.js
responsive.js
root.js
screenshot-content.js
screenshot.js
source.js
storage.js Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw 2024-03-05 14:21:15 +00:00
string.js
style-rule.js
style-sheets.js
symbol-iterator.js
target-configuration.js
thread-configuration.js
thread.js
tracer.js
walker.js Bug 1881443 - [devtools] Lookup node from idref attribute within node rootNode. r=devtools-reviewers,devtools-backward-compat-reviewers,ochameau,bomsy. 2024-02-27 13:54:00 +00:00
watcher.js Bug 1648499 - [devtools] Use JS Process actors to debug content process via DevTools. r=devtools-reviewers,nchevobbe 2024-02-21 20:45:15 +00:00
webconsole.js