Skip to content

Commit

Permalink
Fix #7566: Enter fullscreen by script in Node frame
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang committed Sep 13, 2020
1 parent 40685d1 commit e34f0f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/browser/frame_host/render_frame_host_impl.cc
Expand Up @@ -4349,10 +4349,10 @@ void RenderFrameHostImpl::EnterFullscreen(
// TODO(lanwei): Investigate whether we can terminate the renderer when the
// user activation has already been consumed.
if (!delegate_->HasSeenRecentScreenOrientationChange() &&
!HasSeenRecentXrOverlaySetup() &&
!HasSeenRecentXrOverlaySetup() && (!nodejs_ &&
!GetContentClient()
->browser()
->CanEnterFullscreenWithoutUserActivation()) {
->CanEnterFullscreenWithoutUserActivation())) {
bool is_consumed = frame_tree_node_->UpdateUserActivationState(
blink::mojom::UserActivationUpdateType::kConsumeTransientActivation);
if (!is_consumed) {
Expand Down

0 comments on commit e34f0f6

Please sign in to comment.