From e8188ef271188bc00717b45786766de1cb2bd0cd Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Sat, 19 Apr 2025 10:50:40 -0500 Subject: [PATCH] fix: do not run microtasks in V8Serializer in browser process (#46682) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: clavin --- shell/common/v8_util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/common/v8_util.cc b/shell/common/v8_util.cc index 85ed35cf1ae1..842e2a1cd36e 100644 --- a/shell/common/v8_util.cc +++ b/shell/common/v8_util.cc @@ -36,7 +36,7 @@ class V8Serializer : public v8::ValueSerializer::Delegate { bool Serialize(v8::Local value, blink::CloneableMessage* out) { gin_helper::MicrotasksScope microtasks_scope{ - isolate_->GetCurrentContext(), false, + isolate_->GetCurrentContext(), true, v8::MicrotasksScope::kDoNotRunMicrotasks}; WriteBlinkEnvelope(19);