Ignore load of excluded PDF renderer frames

Starting with M125 we get WebContentsObserver callbacks for speculative
PDF renderer frames. These callbacks should be ignored.
This commit is contained in:
Marshall Greenblatt
2024-04-24 15:38:49 -04:00
parent b67cbc47e3
commit 65234a6830
5 changed files with 47 additions and 6 deletions

View File

@@ -569,6 +569,10 @@ void CefBrowserContentsDelegate::DidFinishLoad(
content::RenderFrameHost* render_frame_host,
const GURL& validated_url) {
auto frame = browser_info_->GetFrameForHost(render_frame_host);
if (!frame) {
return;
}
frame->RefreshAttributes();
int http_status_code = 0;