v8/test/inspector
Simon Zünd 50f84564b4 [inspector] Reset the async task stack when resetting the context group
This CL fixes an issue with async stacks. The async task stack is not
torn down between page navigations or reloads. The result is that
any new async tasks are stacked on top of the old pages async task
stack.

This was not prominent until now for two reasons:
  1) Async tasks created in blink are always finished as long as
     destructors have time to run.
  2) When V8 is terminated while running the micro task queue also
     all async tasks created for Promises (including `await`) are
     cleaned up properly.

Introducing the stack tagging API made it more common for having
unfinished async tasks open outside the MTQ, which left the
async task stack non-empty during navigation.

This CL fixes this problem by clearing out all the async task
and async stack data structures for a context group when that
context group is reset.

R=bmeurer@chromium.org, victorporof@chromium.org

Fixed: chromium:1328785
Change-Id: Iee0c3c4a55f66e643829dae3726dc03c735da1dd
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3666620
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80741}
2022-05-25 10:51:23 +00:00
..
console [inspector] Reset the async task stack when resetting the context group 2022-05-25 10:51:23 +00:00
cpu-profiler [flags] Rename --opt to --turbofan 2022-05-03 12:10:30 +00:00
debugger Reland "[inspector] Re-enable Debugger#restartFrame" 2022-05-14 09:32:14 +00:00
heap-profiler Add snapshot test for JSWeakRef and FinalizationRegistry 2022-01-19 23:47:39 +00:00
regress [debug] Fix crash when live editing unused inner functions 2022-05-25 07:51:03 +00:00
runtime JSON.parse errors made user-friendly 2022-05-16 17:02:37 +00:00
sessions [inspector] Correct location for inline scripts with sourceURL. 2021-12-29 15:39:22 +00:00
type-profiler
BUILD.gn Include test/inspector/regress to swarming 2021-07-29 08:00:47 +00:00
DEPS
DIR_METADATA
frontend-channel.h Fix name collision of v8::internal::IsolateData 2021-08-25 08:45:53 +00:00
inspector-test.cc [sandbox] Turn V8_SANDBOX into V8_ENABLE_SANDBOX 2022-05-13 16:23:23 +00:00
inspector.status [inspector] Reset the async task stack when resetting the context group 2022-05-25 10:51:23 +00:00
isolate-data.cc Distinguish untrusted clients in v8 inspector and disable Profiler, HeapProfiler and Schema CDP domains for them. 2022-05-03 12:38:17 +00:00
isolate-data.h Fix name collision of v8::internal::IsolateData 2021-08-25 08:45:53 +00:00
json-parse-expected.txt
json-parse.js
OWNERS
print-method-not-found-expected.txt
print-method-not-found.js
protocol-test.js [inspector] Add 'canBeRestarted' flag to CallFrames when debugger pauses 2022-04-20 12:40:34 +00:00
task-runner.cc Fix name collision of v8::internal::IsolateData 2021-08-25 08:45:53 +00:00
task-runner.h Fix name collision of v8::internal::IsolateData 2021-08-25 08:45:53 +00:00
tasks.cc Fix name collision of v8::internal::IsolateData 2021-08-25 08:45:53 +00:00
tasks.h Fix name collision of v8::internal::IsolateData 2021-08-25 08:45:53 +00:00
testcfg.py [inspector] Move restart-frame test helpers into protocol-test.js 2022-04-20 08:02:34 +00:00
utils.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
utils.h Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
wasm-inspector-test.js [wasm][debug] Provide WebAssembly Table entries to DevTools 2021-05-20 09:59:09 +00:00