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:
parent
6cb2b9eab7
commit
7bc4b919dc
3 changed files with 28 additions and 9 deletions
|
@ -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_) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue