mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-24 16:51:38 +01:00
Add workaround for https://crbug.com/1500371 (see #3597)
This commit is contained in:
parent
9d1cdd020f
commit
99817d2d3e
@ -24,6 +24,8 @@
|
||||
#include "chrome/browser/ui/browser_tabstrip.h"
|
||||
#include "content/public/browser/global_routing_id.h"
|
||||
#include "content/public/browser/keyboard_event_processing_result.h"
|
||||
#include "content/public/browser/render_widget_host.h"
|
||||
#include "content/public/browser/render_widget_host_view.h"
|
||||
#include "content/public/common/input/native_web_keyboard_event.h"
|
||||
|
||||
using content::KeyboardEventProcessingResult;
|
||||
@ -379,6 +381,14 @@ void ChromeBrowserDelegate::ExitFullscreenModeForTab(
|
||||
if (auto delegate = GetDelegateForWebContents(web_contents)) {
|
||||
delegate->ExitFullscreenModeForTab(web_contents);
|
||||
}
|
||||
|
||||
// Workaround for https://crbug.com/1500371. Ensure WebContents exits
|
||||
// fullscreen state by explicitly sending a resize message.
|
||||
if (auto* rwhv = web_contents->GetRenderWidgetHostView()) {
|
||||
if (auto* render_widget_host = rwhv->GetRenderWidgetHost()) {
|
||||
render_widget_host->SynchronizeVisualProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ChromeBrowserDelegate::CanDownload(
|
||||
|
Loading…
Reference in New Issue
Block a user