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

This commit is contained in:
Jeremy Rose
2020-10-22 23:04:07 -07:00
committed by GitHub
parent 722903f068
commit 2d49d82072

View File

@@ -825,8 +825,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 */);
}
}