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>
,
Sep 13 2017
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.
,
Sep 14 2017
,
Oct 4 2017
I don't think we are going to fix this in the near future. |
||||
►
Sign in to add a comment |
||||
Comment 1 by ligim...@chromium.org
, Sep 12 2017