fix: HTML fullscreen request for sub frames (#18736)
Don't re-enter fullscreen if there is a pending operation, for subframe fullscreen request `EnterFullScreenModeForTab` will be called for both the frame in question as well as the outer webContents hosting it.
This commit is contained in:
parent
9856e5df3b
commit
5e320291b4
4 changed files with 16 additions and 2 deletions
|
@ -821,6 +821,10 @@ void WebContents::OnInterfaceRequestFromFrame(
|
|||
registry_.TryBindInterface(interface_name, interface_pipe, render_frame_host);
|
||||
}
|
||||
|
||||
void WebContents::DidAcquireFullscreen(content::RenderFrameHost* rfh) {
|
||||
set_fullscreen_frame(rfh);
|
||||
}
|
||||
|
||||
void WebContents::DocumentLoadedInFrame(
|
||||
content::RenderFrameHost* render_frame_host) {
|
||||
if (!render_frame_host->GetParent())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue