v8/src/inspector
Andrey Kosyakov abacd4c115 DevTools: add support for injecting bindings by context name
This adds support for injecting binding into contexts other than
main based on the context name (AKA isolated world name in Blink
terms). This would simplify a common use case for addBinding in
Puppeteer and other automation tools that use addBinding to expose
a back-channel for extension code running in an isolated world by
making bindings available to such code at an early stage and in a
race-free manner (currently, we can only inject a binding into
specific context after the creation of the context has been reported
to the client, which typically introduces a race with other evals
the client may be running in the context).

Change-Id: I66454954491a47a0c9aa4864f0aace4da2e67d3a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2440984
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Commit-Queue: Andrey Kosyakov <caseq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70266}
2020-10-01 17:20:04 +00:00
..
BUILD.gn [tracing] Migrate tracing to Perfetto track events 2020-04-17 21:31:24 +00:00
custom-preview.cc [DevTools] Roll inspector_protocol (V8) 2020-03-20 19:21:22 +00:00
custom-preview.h [iwyu] Add missing includes of <memory> for std::unique_ptr 2019-09-13 17:13:36 +00:00
DEPS [DevTools] Re-implemented Profiler.getRuntimeCallStats. 2020-09-08 18:32:05 +00:00
injected-script.cc Do not pause on breaks while installing additional command line API 2020-09-30 00:12:24 +00:00
injected-script.h Store JSMessageObject on rejected promises 2019-12-18 12:07:03 +00:00
inspected-context.cc Replace base::make_unique by std::make_unique 2019-09-10 11:21:51 +00:00
inspected-context.h [iwyu] Add missing includes of <memory> for std::unique_ptr 2019-09-13 17:13:36 +00:00
inspector_protocol_config.json [inspector] Make collectGarbage of HeapProfiler precise 2020-08-18 07:24:14 +00:00
OWNERS Add szuend to OWNERS files for src/{debug,inspector} 2019-12-09 09:45:27 +00:00
remote-object-id.cc [DevTools] Roll inspector_protocol (V8) 2020-03-20 19:21:22 +00:00
remote-object-id.h [iwyu] Add missing includes of <memory> for std::unique_ptr 2019-09-13 17:13:36 +00:00
search-util.cc [inspector] fix sourceURL magic comment parsing 2020-05-07 05:04:49 +00:00
search-util.h [cleanup] Consistent comments on namespace ends 2020-08-17 10:09:02 +00:00
string-16.cc [wasm-simd] Surface V128 in inspector 2020-09-23 16:21:14 +00:00
string-16.h [wasm-simd] Surface V128 in inspector 2020-09-23 16:21:14 +00:00
string-util.cc Roll inspector_protocol library to inculude unified (de)serialization support 2020-07-02 14:08:19 +00:00
string-util.h [cleanup] Consistent comments on namespace ends 2020-08-17 10:09:02 +00:00
test-interface.cc
test-interface.h [cleanup] Consistent comments on namespace ends 2020-08-17 10:09:02 +00:00
v8-console-agent-impl.cc [cleanup] Consistent comments on namespace ends 2020-08-17 10:09:02 +00:00
v8-console-agent-impl.h
v8-console-message.cc Rename and retype Symbol name to description 2019-10-30 10:38:55 +00:00
v8-console-message.h [iwyu] Add missing includes of <memory> for std::unique_ptr 2019-09-13 17:13:36 +00:00
v8-console.cc Fix console time format error 2020-05-14 07:36:54 +00:00
v8-console.h [inspector] guard against missing CommandLineAPIScope 2020-04-17 13:36:02 +00:00
v8-debugger-agent-impl.cc [debug] Add support for skipping locations on stepping into 2020-08-13 10:43:14 +00:00
v8-debugger-agent-impl.h [debug] Add support for skipping locations on stepping over 2020-08-11 13:14:48 +00:00
v8-debugger-script.cc Report reliable embedderName in scriptParsed/scriptFailedToParse 2020-07-27 15:40:00 +00:00
v8-debugger-script.h Report reliable embedderName in scriptParsed/scriptFailedToParse 2020-07-27 15:40:00 +00:00
v8-debugger.cc [debug] Add support for skipping locations on stepping over 2020-08-11 13:14:48 +00:00
v8-debugger.h [debug] Add support for skipping locations on stepping over 2020-08-11 13:14:48 +00:00
v8-heap-profiler-agent-impl.cc [inspector] Make collectGarbage of HeapProfiler precise 2020-08-18 07:24:14 +00:00
v8-heap-profiler-agent-impl.h [inspector] Make collectGarbage of HeapProfiler precise 2020-08-18 07:24:14 +00:00
v8-inspector-impl.cc [clang-tidy] Use auto for readability 2020-05-14 22:37:29 +00:00
v8-inspector-impl.h Make StringBuffer::string return a StringView instead of a reference. 2020-03-25 14:25:53 +00:00
v8-inspector-session-impl.cc [debug] Add CDP method to support skipLists 2020-08-04 12:01:44 +00:00
v8-inspector-session-impl.h Make StringBuffer::string return a StringView instead of a reference. 2020-03-25 14:25:53 +00:00
v8-profiler-agent-impl.cc [DevTools] Re-implemented Profiler.getRuntimeCallStats. 2020-09-08 18:32:05 +00:00
v8-profiler-agent-impl.h [DevTools] Re-implemented Profiler.getRuntimeCallStats. 2020-09-08 18:32:05 +00:00
v8-regex.cc [Cleanup] Avoid deprecated methods in inspector/string-util.cc. 2018-07-23 15:28:50 +00:00
v8-regex.h [cleanup] Replace 0 and NULL with nullptr for src/ files. 2018-09-14 14:46:10 +00:00
v8-runtime-agent-impl.cc DevTools: add support for injecting bindings by context name 2020-10-01 17:20:04 +00:00
v8-runtime-agent-impl.h DevTools: add support for injecting bindings by context name 2020-10-01 17:20:04 +00:00
v8-schema-agent-impl.cc [DevTools] Roll inspector_protocol (V8) 2020-03-20 19:21:22 +00:00
v8-schema-agent-impl.h [iwyu] Add missing includes of <memory> for std::unique_ptr 2019-09-13 17:13:36 +00:00
v8-stack-trace-impl.cc [cleanup] Consistent comments on namespace ends 2020-08-17 10:09:02 +00:00
v8-stack-trace-impl.h Remove fake wasm scripts from V8 backend 2020-01-09 13:21:01 +00:00
v8-string-conversions.cc Enable cpplint 'runtime/references' warning 2019-07-08 09:59:36 +00:00
v8-string-conversions.h [DevTools] Extract UTF8<->UTF16 routines from string-16{.h,.cc}. 2019-05-08 21:20:33 +00:00
v8-value-utils.cc reland: inspector: move injected script source to native 2018-10-31 17:47:58 +00:00
v8-value-utils.h reland: inspector: move injected script source to native 2018-10-31 17:47:58 +00:00
value-mirror.cc [wasm-simd] Surface V128 in inspector 2020-09-23 16:21:14 +00:00
value-mirror.h [class] implement inspector support for private instance methods 2019-12-04 20:13:34 +00:00