fix: esc not working on Windows during fullscreen (#34317)

* fix: esc not working on Windows during fullscreen

* chore: fix lint
This commit is contained in:
Shelley Vohr
2022-05-25 06:38:38 +02:00
committed by GitHub
parent 6cb2b9eab7
commit 7bc4b919dc
3 changed files with 28 additions and 9 deletions

View File

@@ -1308,8 +1308,6 @@ void WebContents::EnterFullscreenModeForTab(
base::BindRepeating(&WebContents::OnEnterFullscreenModeForTab,
base::Unretained(this), requesting_frame, options);
permission_helper->RequestFullscreenPermission(callback);
exclusive_access_manager_->fullscreen_controller()->EnterFullscreenModeForTab(
requesting_frame, options.display_id);
}
void WebContents::OnEnterFullscreenModeForTab(
@@ -1325,6 +1323,9 @@ void WebContents::OnEnterFullscreenModeForTab(
return;
}
exclusive_access_manager_->fullscreen_controller()->EnterFullscreenModeForTab(
requesting_frame, options.display_id);
SetHtmlApiFullscreen(true);
if (native_fullscreen_) {