New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 764253 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

entire browser goes fullscreen

Reported by davidmax...@gmail.com, Sep 12 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36

Steps to reproduce the problem:
1. open a page that calls window.document.documentElement.requestFullscreen(window.document) when a button is pressed
2. open dev tools
3. click 'toggle device toolbar' and select some device
4. click button

What is the expected behavior?
the app in the 'fake' device goes fullscreen within the 'fake' device

What went wrong?
the whole browser goes fullscreen, so you lose the tabs and window controls - also, the normal 'escape' to toggle the fullscreen back to normal, doesn't work if you don't have the correct focus since 'escape' toggles the console in the dev tools.

Did this work before? N/A 

Chrome version: 60.0.3112.113  Channel: n/a
OS Version: 10.0
Flash Version: 

I tried to make a jsbin for this, but that uses an iframe which (I think) prevents the fullscreen from happening.

This was the code that (I think) should demo the problem.

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <button onclick="setFullScreen();">go fullscreen</button>
  <script>
      function setFullScreen() {
        debugger;
        const doc = window.document;
        const docEl = doc.documentElement;

        const requestFullScreen = docEl.requestFullscreen || docEl.mozRequestFullScreen || docEl.webkitRequestFullScreen || docEl.msRequestFullscreen;
        const cancelFullScreen = doc.exitFullscreen || doc.mozCancelFullScreen || doc.webkitExitFullscreen || doc.msExitFullscreen;

        if(!doc.fullscreenElement && !doc.mozFullScreenElement && !doc.webkitFullscreenElement && !doc.msFullscreenElement) {
          requestFullScreen.call(docEl);
        }
      }
  </script>
</body>
</html>
 
Labels: Needs-Triage-M60
Cc: sc00335...@techmahindra.com
Labels: Triaged-ET M-63 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Issue is reproducible in reported version 60.0.3112.113, latest stable 61.0.3163.79 and latest canary 63.0.3213.0 using Windows 10, Ubuntu 14.04,Mac 10.12.1 with below steps

1.Created sample html file with given code and opened in browser
2.Opened devtools, emulated to nexus 5 and clicked on "go Fullscreen" button.
3.Script got paused near debugger; line >> Clicked on "Resume script execution" button >> Now entire screen goes fullscreen and other tabs are not seen.
4.On clicking "esc" console gets opened and closed.

This issue is seen form 50.0.2661.66 build. So considering this issue as Non-regression and marking as Untriaged.
Components: -Platform>DevTools Platform>DevTools>Mobile
Owner: dgozman@chromium.org
Status: Assigned (was: Untriaged)
Status: WontFix (was: Assigned)
I don't think we are going to fix this in the near future.

Sign in to add a comment