From cea9ebb8e9da3a034fad5f480d29c5df21f6c77d Mon Sep 17 00:00:00 2001 From: Sam Maddock Date: Wed, 19 Feb 2025 06:09:28 -0500 Subject: [PATCH] fix: dangling speculative frames (#45688) fix: dangling speculative frames (#45609) * fix: dangling speculative frames * harden lifecycle state checks * feedback * add const --- .../browser/api/electron_api_web_contents.cc | 10 +- .../api/electron_api_web_frame_main.cc | 155 +++++++++++++----- .../browser/api/electron_api_web_frame_main.h | 11 +- shell/common/gin_converters/std_converter.h | 9 + spec/api-web-frame-main-spec.ts | 41 +++++ typings/internal-electron.d.ts | 1 + 6 files changed, 174 insertions(+), 53 deletions(-) diff --git a/shell/browser/api/electron_api_web_contents.cc b/shell/browser/api/electron_api_web_contents.cc index 1f2cc039d9a2..0d7fe440cf70 100644 --- a/shell/browser/api/electron_api_web_contents.cc +++ b/shell/browser/api/electron_api_web_contents.cc @@ -1674,7 +1674,6 @@ void WebContents::RenderFrameDeleted( // - An