fix: pressing ESC should exit fullscreen from webview (#30063)

This commit is contained in:
Cheng Zhao
2021-07-14 20:51:26 +09:00
committed by GitHub
parent 4d0475c9ce
commit 637ba48b42
2 changed files with 31 additions and 3 deletions

View File

@@ -3612,9 +3612,7 @@ void WebContents::UpdateHtmlApiFullscreen(bool fullscreen) {
manager->ForEachGuest(
web_contents(), base::BindRepeating([](content::WebContents* guest) {
WebContents* api_web_contents = WebContents::From(guest);
// Use UpdateHtmlApiFullscreen instead of SetXXX becuase there is no
// need to interact with the owner window.
api_web_contents->UpdateHtmlApiFullscreen(false);
api_web_contents->SetHtmlApiFullscreen(false);
return false;
}));
}