Closed Bug 465880 Opened 16 years ago Closed 3 years ago

Firefox lets javascript trick it into triggering "legacy fullscreen support" in compiz and other WMs

Categories

(Core :: DOM: Core & HTML, defect, P5)

x86
Linux
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: jason284, Unassigned)

References

(Depends on 1 open bug, )

Details

(Keywords: sec-low, Whiteboard: [sg:low])

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008101315 Ubuntu/8.10 (intrepid) Firefox/3.0.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008101315 Ubuntu/8.10 (intrepid) Firefox/3.0.3

This problem has been extensively discussed and documented here:

https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/99740

Now that we've figured out what's happening and discussed various workarounds/fixes we've decided that firefox should not allow javascript to trigger this strange full-screen mode. Please read the discussion on the ubuntu bugs page for rationale and more details.

Reproducible: Always

Steps to Reproduce:
Note that this bug does not appear in metacity, only window managers that support "legacy fullscreen support", such as compiz and wmii.

**Steps to reproduce :
0. Run compiz (gnome + desktop-effects) or wmii
1. Open a single instance of Firefox with no tabs open.
2. Go to http://www.htmlgoodies.com/legacy/beyond/javascript/bigsmall.html
3. Click the "Maximize" link located at the top left of this webpage.
4. Close Firefox.
5. Re-open Firefox.
6. Now the titlebar for Firefox and upper/lower panels should be missing.
Actual Results:  
Firefox comes up covering the entire screen, panels and all, with no title bar or anything.

Some repart that that firefox's menu and panel are also missing.

Expected Results:  
A firefox window with a title bar, etc, not covering gnome panels
That might describes two bugs, because it is possible to reproduce "Firefox suddenly covers the whole screen" by following these steps while compiz is enabled :

1. Use the bigger resolution that your computer can take and open Firefox.
2. If not already done, demaximize the Firefox window (right clic / Demaximize).
3. Close Firefox
4. Change the screen resolution for a very lower one.
5. Open Firefox

Not sure what javascript should or shouldn't allow, however the fact that Firefox sometime suddenly covers the whole screen is definitively wrong. Also, this is a regression over Firefox 2 on which this bug can't be reproduced.
The most useful comments seem to be:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/99740/comments/30
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/99740/comments/42

Weird window manager feature, but it should be easy for Firefox to work around it.  We should fix this even if we also fix bug 454779.
Flags: blocking-firefox3.1?
Whiteboard: [sg:low]
Jesse, I take it you meant to confirm this bug as well?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: General → DOM
Flags: blocking-firefox3.1?
Product: Firefox → Core
QA Contact: general → general
--> Core::DOM

A workaround is possible here, carrying over blocking flag. Not sure that it blocks, mind.
Flags: blocking1.9.1?
Flags: blocking1.9.1? → blocking1.9.1-
I wasn't able to reproduce this issue with Firefox 3.1b2 downloaded from here : http://www.mozilla.com/en-US/firefox/all-beta.html

Can someone else confirm if the bug is reproducible with 3.1b2?
Depends on: 581866
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML

Close as incomplete?

Flags: needinfo?(gpascutto)

SGTM. The POC doesn't even work due to https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenerror and unless there's existing Window managers that still allow this behavior I have no idea how to even investigate.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(gpascutto)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.