Files
browser/src
Karl Seguin 03b999c592 Remove redundant CDP v8 shutdown
https://github.com/lightpanda-io/browser/pull/1614 improved our shutdown
behavior so that microtasks associated with a context wouldn't fire after the
context was disposed of. This involved having context-specific microtasks,
pumping the message loop, and prevent re-entry.

The shutdown code in CDP already had much of this behavior built-in, but it has
now become redundant. Most importantly the CDP shutdown logic did not prevent
re-entry.

Removing this code fixes a flaky WPT crash. I didn't seem to be tied to a
specific test, but rather a cross-context/page use-after-free that was saw
prior to 1614. I could reproduce it reliably by running `/wasm/core/`.

I'll be honest, it isn't clear to me why _removing_ the CDP cleanup helps.
Running the message loop and microtask _before_ our normal shutdown might be
unnecessary, but why would it crash? I don't know, but the CDP path is slightly
different in that it also involves Inspector shutdown. So there's still
something about this flow I don't quite understand. And, at least for this case
the current flow seems "correct".
2026-03-02 10:24:07 +08:00
..
2026-03-02 10:24:07 +08:00
2026-01-29 21:00:06 +08:00
2026-02-25 23:29:54 +00:00
2026-02-25 23:29:54 +00:00
2026-02-25 05:31:28 +00:00
2026-02-04 12:23:42 -08:00
2026-02-28 19:08:58 +08:00
2026-02-28 19:08:58 +08:00
2026-02-16 15:48:18 +00:00
2026-02-25 15:29:27 +08:00
2026-02-25 23:29:54 +00:00
2026-01-24 07:59:41 +08:00
2026-02-19 23:47:33 +08:00