gecko-dev/devtools/shared
Nicolas Chevobbe 4bad3995de Bug 1592584 - [devtools] Accept worker targets in console. r=ochameau.
The `dom.worker.console.dispatch_events_to_main_thread` pref is used by platform
code to check if console API messages in the worker thread should be dispatched
to the main thread. If so, the message parameters are cloned, or stringified if
they can't be. This is currently the default behavior.

The pref is checked on the server side and added as a trait to the root actor.
On the client, if the pref isn't true, then we accept messages coming from
worker targets in the console. We can't accept them without condition, otherwise
we would get duplicated message (from the main thread AND the worker thread).

The browser_webconsole_console_logging_workers_api.js test is repurposed for
worker logging since it was disabled on e10s anyway. We add a few test case
to check we can get cached and live message, and that non-clonable object, like
worker scope, are displayed like regular objects when the pref is false.

Differential Revision: https://phabricator.services.mozilla.com/D85397
2020-11-05 10:17:36 +00:00
..
acorn
compatibility Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
css Bug 1673132 - Use the -moz-default-appearance values "scrollbar-horizontal" and "scrollbar-vertical" on macOS and remove the now-unused value "scrollbar". r=emilio 2020-10-27 12:37:44 +00:00
discovery Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
heapsnapshot Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
inspector Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
jsbeautify Bug 1588458 - Replace dxr links by searchfox in the code/test r=kats,sparky 2020-10-08 14:02:40 +00:00
layout Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
locales Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
node-properties
performance Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
performance-new Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
platform Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
protocol Bug 1674357 - [devtools] Remove lifetime from DevTools protocol r=ochameau,devtools-backward-compat-reviewers 2020-11-03 16:43:52 +00:00
qrcode Bug 1673724 - Remove defer usage in devtools/shared/qrcode/index.js. r=Honza 2020-10-28 11:33:21 +00:00
resources Bug 1592584 - [devtools] Accept worker targets in console. r=ochameau. 2020-11-05 10:17:36 +00:00
screenshot Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
security Bug 1673872 - [devtools] Remove defer usage in devtools/shared/security/cert.js. r=Honza 2020-10-29 13:02:59 +00:00
specs Bug 1675256 - [devtools] Remove discardRequestBody and discardResponseBody attributes of NETWORK_EVENT resource. r=bomsy,devtools-backward-compat-reviewers 2020-11-04 17:14:03 +00:00
sprintfjs
storage Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
test-helpers
tests Bug 1673386 - remove defer from devtools/shared/tests/xpcshell/test_executeSoon.js. r=Honza 2020-10-27 15:23:22 +00:00
transport Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
webconsole Bug 1675256 - [devtools] Remove discardRequestBody and discardResponseBody attributes of NETWORK_EVENT resource. r=bomsy,devtools-backward-compat-reviewers 2020-11-04 17:14:03 +00:00
worker Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
.eslintrc.js
accessibility.js
async-storage.js
async-utils.js Bug 1645563 - Introduce devtools helper to swallow rejections under a condition r=nchevobbe 2020-07-02 16:19:46 +00:00
base-loader.js
builtin-modules.js Bug 1472821 - Support array of String for lazyRequireGetter r=nchevobbe,rcaliman 2020-08-03 05:43:59 +00:00
constants.js Bug 1674371 - [devtools] Move ELEMENT_STYLE constant to a single file r=rcaliman,devtools-backward-compat-reviewers 2020-11-02 18:45:03 +00:00
content-observer.js Bug 1651519: Remove nsIDOMWindowUtils::currentInnerWindowID. r=nika,remote-protocol-reviewers,webcompat-reviewers,whimboo 2020-08-17 20:20:50 +00:00
debounce.js
defer.js
DevToolsUtils.js Bug 1633712 - [devtools] Create WorkerTargets as soon as possible. r=ochameau,devtools-backward-compat-reviewers. 2020-10-26 12:53:43 +00:00
dom-helpers.js
dom-node-constants.js
dom-node-filter-constants.js
event-emitter.js Bug 1668117 - [devtools] do not load prefsHelper from devtools-modules in debugger r=nchevobbe 2020-10-02 15:39:44 +00:00
extend.js
flags.js Bug 1478688: Remove test codes that does not use anymore. r=Honza 2020-07-13 10:38:55 +00:00
generate-uuid.js
indentation.js
indexed-db.js
jar.mn Bug 1652997: Package all devtools css files and load them using the internal chrome: protocol. r=nchevobbe 2020-07-15 16:02:28 +00:00
l10n.js Bug 1672930 - [devtools] Handle Node environment in l10n module. r=ladybenko. 2020-10-26 17:11:17 +00:00
loader-plugin-raw.jsm
Loader.jsm
moz.build Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
natural-sort.js
path.js
picker-constants.js
plural-form.js Bug 1668117 - [devtools] fix typo in plural-form.js r=nchevobbe 2020-10-02 15:38:32 +00:00
protocol.js
system.js
task.js
ThreadSafeDevToolsUtils.js
throttle.js
wasm-source-map.js
webextension-fallback.html