mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
87250d4e53
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 |
||
---|---|---|
.. | ||
commands | ||
compatibility | ||
css | ||
discovery | ||
heapsnapshot | ||
images | ||
inspector | ||
jsbeautify | ||
layout | ||
loader | ||
locales | ||
network-observer | ||
node-properties | ||
performance-new | ||
platform | ||
protocol | ||
qrcode | ||
security | ||
specs | ||
sprintfjs | ||
storage | ||
test-helpers | ||
tests | ||
transport | ||
webconsole | ||
worker | ||
.eslintrc.js | ||
accessibility.js | ||
async-storage.js | ||
async-utils.js | ||
constants.js | ||
content-observer.js | ||
debounce.js | ||
DevToolsInfaillibleUtils.sys.mjs | ||
DevToolsUtils.js | ||
dom-helpers.js | ||
dom-node-constants.js | ||
dom-node-filter-constants.js | ||
event-emitter.js | ||
extend.js | ||
flags.js | ||
generate-uuid.js | ||
indentation.js | ||
indexed-db.js | ||
jar.mn | ||
l10n.js | ||
moz.build | ||
natural-sort.js | ||
path.js | ||
picker-constants.js | ||
plural-form.js | ||
protocol.js | ||
system.js | ||
ThreadSafeDevToolsUtils.js | ||
throttle.js | ||
validate-breakpoint.jsm | ||
wasm-source-map.js | ||
webextension-fallback.html |