gecko-dev/devtools/shared
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
..
commands Bug 1713093 - [devtools] Remove TargetMixin.attachThread. r=devtools-reviewers,nchevobbe 2024-03-06 13:43:48 +00:00
compatibility Bug 1872870 - [devtools] Update compatibility dataset. r=devtools-reviewers,nchevobbe 2024-01-11 07:32:25 +00:00
css Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw 2024-03-05 14:21:15 +00:00
discovery Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw 2024-03-05 14:21:15 +00:00
heapsnapshot Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw 2024-03-05 14:21:15 +00:00
images Bug 1824886 - Rewrite AnonymousContent to use a shadow tree. r=smaug,TYLin,sfoster,devtools-reviewers,nchevobbe 2023-07-09 11:34:05 +00:00
inspector Bug 1834725 - [devtools] Tweak original CSS handling in the Style Editor. r=devtools-reviewers,nchevobbe 2024-01-15 12:57:18 +00:00
jsbeautify
layout Bug 1875639 - Part 2: Explicitly use contextual loader in files loaded into DevTools global. r=ochameau,devtools-reviewers 2024-02-20 04:49:57 +00:00
loader Bug 1875639 - Part 2: Explicitly use contextual loader in files loaded into DevTools global. r=ochameau,devtools-reviewers 2024-02-20 04:49:57 +00:00
locales Bug 1870710 - [devtools] Optionally trigger the tracer only on next mousedown or keydown. r=devtools-reviewers,fluent-reviewers,flod,nchevobbe 2023-12-20 23:03:06 +00:00
network-observer Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw 2024-03-05 14:21:15 +00:00
node-properties
performance-new
platform Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw 2024-03-05 14:21:15 +00:00
protocol Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw 2024-03-05 14:21:15 +00:00
qrcode Bug 1859873 - batch 13 xpcshell.ini -> .toml. r=aryx,devtools-reviewers,profiler-reviewers 2023-11-21 12:32:50 +00:00
security Bug 1875639 - Part 1: Use global option instead of loadInDevToolsLoader option. r=ochameau,devtools-reviewers 2024-02-20 04:49:57 +00:00
specs 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
sprintfjs
storage Bug 1859873 - batch 13 xpcshell.ini -> .toml. r=aryx,devtools-reviewers,profiler-reviewers 2023-11-21 12:32:50 +00:00
test-helpers Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw 2024-03-05 14:21:15 +00:00
tests Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw 2024-03-05 14:21:15 +00:00
transport Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw 2024-03-05 14:21:15 +00:00
webconsole Bug 1713093 - [devtools] Remove TargetMixin.attachThread. r=devtools-reviewers,nchevobbe 2024-03-06 13:43:48 +00:00
worker Bug 1864896: Remove empty destructuring patterns (devtools). r=devtools-reviewers,nchevobbe 2024-03-05 14:21:15 +00:00
.eslintrc.js
accessibility.js
async-storage.js
async-utils.js Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw 2024-03-05 14:21:15 +00:00
constants.js
content-observer.js Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw 2024-03-05 14:21:15 +00:00
debounce.js
DevToolsInfaillibleUtils.sys.mjs
DevToolsUtils.js Bug 1878401 - part 4 - Update nsIFilePicker users in devtools/ to pass BrowsingContext to init r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw 2024-02-28 21:29:38 +00:00
dom-helpers.js
dom-node-constants.js
dom-node-filter-constants.js
event-emitter.js
extend.js
flags.js
generate-uuid.js
indentation.js Bug 1838857 - [devtools] Use devtools.editor.tabsize value for space indentation in prettifyCSS. r=devtools-reviewers,ochameau. 2023-06-20 07:42:20 +00:00
indexed-db.js
jar.mn Bug 1792803 - [devtools] Stop exposing devtools resource to content to implement JSON Viewer. r=devtools-reviewers,nchevobbe 2023-08-09 13:36:05 +00:00
l10n.js
moz.build Bug 1721427 - [devtools] Remove now useless thread helpers (in favor of the JS Tracer). r=devtools-reviewers,bomsy 2024-02-27 14:52:13 +00:00
natural-sort.js Bug 1870434 - Accept single number dates r=arai,devtools-reviewers,ochameau 2023-12-30 07:57:13 +00:00
path.js
picker-constants.js
plural-form.js Bug 1834305 - Remove intl/locale/PluralForm.sys.mjs as unused. r=nordzilla,devtools-reviewers 2023-08-10 20:39:20 +00:00
protocol.js
system.js Bug 1875639 - Part 2: Explicitly use contextual loader in files loaded into DevTools global. r=ochameau,devtools-reviewers 2024-02-20 04:49:57 +00:00
ThreadSafeDevToolsUtils.js
throttle.js Backed out changeset 242972a790a3 (bug 1824726) for dt failure on browser_webconsole_message_categories.js . CLOSED TREE 2024-02-09 04:00:40 +02:00
validate-breakpoint.jsm
wasm-source-map.js
webextension-fallback.html