Closed
Bug 1327359
Opened 7 years ago
Closed 7 years ago
Browser exits DOM fullscreen when I open new background tab
Categories
(Firefox :: Untriaged, defect)
Firefox
Untriaged
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: arni2033, Unassigned)
Details
>>> My Info: Win7_64, Nightly 49, 32bit, ID 20160526082509 STR_1: 1. Open http://example.org/ 2. Execute in console code [1] 3. Click on the page 4. Middle-click on the link on the page AR: Browser exits DOM fullscreen when I open new background tab ER: Browser should stay in fullscreen [1] onclick=function(){ var B=document.body; if (B.requestFullscreen) B.requestFullscreen(); else if (B.webkitRequestFullscreen) B.webkitRequestFullscreen(); else if (B.mozRequestFullScreen) B.mozRequestFullScreen(); else if (B.msRequestFullscreen) B.msRequestFullscreen(); onclick=null; }
Comment 1•7 years ago
|
||
I observed the same behaviour on safari, chrome and Firefox, that is, browser exists a full screen when opening a backgroud tab. I wonder what the expected result is. Could you please confirm the behaviour? Thanks.
Flags: needinfo?(xidorn+moz)
Comment 2•7 years ago
|
||
When browser switches tab, it should definitely exit fullscreen, which is clear, but I'm not complete certain about whether browser should exit fullscreen when a background tab open. It seems this behavior is somehow intentional [1], and since the code is inside browser/, it is probably a Firefox issue rather than DOM issue. I don't know exactly what the intention is, but my guess is: 1. When a user open a background tab, we want him to know that the tab is actually opened. If we don't exit fullscreen, user may think his last operation failed, and try over and over again. 2. Websites may play tricks to make user open lots of background tab without user knowing that before they eventually exit fullscreen, and at that moment, user may blame the browser for opening tabs without their awareness. So I would probably prefer we keep our behavior unchanged here. [1] https://dxr.mozilla.org/mozilla-central/rev/8eaf154b385bbe0ff06155294ccf7962aa2d3324/browser/base/content/browser-fullScreenAndPointerLock.js#444-447
Flags: needinfo?(xidorn+moz)
Updated•7 years ago
|
Component: DOM → Untriaged
Product: Core → Firefox
Comment 3•7 years ago
|
||
Given this matches other browsers as well as the rationale in comment #2, marking wontfix.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•