chore: synchronously destroy WebContents on event prevented (#26418)

Co-authored-by: Jeremy Rose <jeremya@chromium.org>
This commit is contained in:
trop[bot]
2020-11-10 11:27:32 -05:00
committed by GitHub
parent ff717d4a93
commit 5b617a7f39

View File

@@ -823,8 +823,7 @@ void WebContents::AddNewContents(
initial_rect.x(), initial_rect.y(), initial_rect.width(),
initial_rect.height(), tracker->url, tracker->frame_name,
tracker->referrer, tracker->raw_features, tracker->body)) {
// TODO(zcbenz): Can we make this sync?
api_web_contents->DestroyWebContents(true /* async */);
api_web_contents->DestroyWebContents(false /* async */);
}
}