chore: synchronously destroy WebContents on event prevented (#26090)
This commit is contained in:
		
					parent
					
						
							
								722903f068
							
						
					
				
			
			
				commit
				
					
						2d49d82072
					
				
			
		
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -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 */); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jeremy Rose
				Jeremy Rose