mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Linux: Fix CefPrintHandler callbacks from PDF viewer (fixes issue #2906)
This commit is contained in:
		
				
					committed by
					
						
						Marshall Greenblatt
					
				
			
			
				
	
			
			
			
						parent
						
							ea1324a9f1
						
					
				
				
					commit
					f5c79bf50c
				
			@@ -58,8 +58,10 @@ content::WebContents* GetOwnerForGuestContents(content::WebContents* guest) {
 | 
			
		||||
      static_cast<content::WebContentsImpl*>(guest);
 | 
			
		||||
  content::BrowserPluginGuest* plugin_guest =
 | 
			
		||||
      guest_impl->GetBrowserPluginGuest();
 | 
			
		||||
  if (plugin_guest)
 | 
			
		||||
    return plugin_guest->embedder_web_contents();
 | 
			
		||||
  if (plugin_guest) {
 | 
			
		||||
    return content::WebContents::FromRenderFrameHost(
 | 
			
		||||
        plugin_guest->GetEmbedderFrame());
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Maybe it's a print preview dialog.
 | 
			
		||||
  auto print_preview_controller =
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user