Issue metadata
Sign in to add a comment
|
Wrong tab goes fullscreen |
||||||||||||||||||||||
Issue descriptionReported publicly: https://twitter.com/herrcore/status/706906335674298370/photo/1 <button onclick="fsBypass(document.documentElement);">Launch fullscreen bypass</button> <script> function fsBypass(element) { element.webkitRequestFullScreen(); window.open("https://test.nope/evil.html"); } </script> mgiuca, if you arne't the right person, could you please pass it on to someone who is? Thanks!
,
Mar 7 2016
The original finder had another version (https://twitter.com/herrcore/status/706908497481437184) using Flash; not sure if this is the same root cause.
,
Mar 7 2016
(Note: This bug is unrestricted because it's already been reported publicly.)
,
Mar 7 2016
,
Mar 10 2016
,
May 4 2016
,
May 26 2016
,
Jul 21 2016
,
Sep 1 2016
,
Sep 15 2016
Oh man, this fell off my radar.
I investigated. It is Mac-only. On Linux, window.open kicks you out of fullscreen mode.
On Mac, it goes into fullscreen, then creates a new tab and switches to the new tab, but remains in a weird fullscreen mode. You don't see the fullscreen bubble. You can't press Esc to exit. You can only exit by using the View -> Exit Fullscreen menu.
Also tried a few variants. This one does *not* work (it kicks you out of fullscreen):
element.webkitRequestFullScreen();
setTimeout(() => window.open("https://test.nope/evil.html"), 0);
So it is just a weird edge case where you create and switch to a new tab while in the same event loop that entered fullscreen mode. I had a brief look at the code (chiefly browser_window_controller.mm) but I really am not familiar with how either fullscreen or window.open work on Mac. So assigning to spqchan who has worked on fullscreen stuff on Mac.
,
Oct 13 2016
,
Nov 30 2016
,
Dec 2 2016
,
Jan 26 2017
,
Mar 10 2017
,
Apr 20 2017
,
May 24 2017
Sorry I haven't responded to this in a while. I fixed this in another bug sometime ago (involving Flash). There was a race condition with the fullscreen UI which puts the browser in an unusual fullscreen state. The browser will now kick you out of fullscreen. Feel free to reopen if there are still any issues
,
May 24 2017
,
Aug 30 2017
This bug has been closed for more than 14 weeks. Removing security view restrictions. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by palmer@chromium.org
, Mar 7 2016