Always assign |is_guest_view| in CefBrowserInfo::GetFrameForGlobalToken

This commit is contained in:
Shezan Baig 2024-02-05 16:31:04 +00:00 committed by Marshall Greenblatt
parent d3a483ef59
commit 69fd43f789
1 changed files with 4 additions and 0 deletions

View File

@ -340,6 +340,10 @@ CefRefPtr<CefFrameHostImpl> CefBrowserInfo::GetFrameForGlobalToken(
const content::GlobalRenderFrameHostToken& global_token,
bool* is_guest_view,
bool prefer_speculative) const {
if (is_guest_view) {
*is_guest_view = false;
}
if (!frame_util::IsValidGlobalToken(global_token)) {
return nullptr;
}