Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upFullscreen Firefox windows fail to refresh normally #1502
Comments
marmarek
added
bug
C: gui-virtualization
labels
Dec 23, 2015
marmarek
added this to the Release 3.1 milestone
Dec 23, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Dec 23, 2015
Member
"becomes difficult to interact" means also window isn't refreshing normally (at least on my system) - only at desktop switch, window resize, focus switch etc. It looks like damage notifications are not delivered anymore (for this window, others are ok).
|
"becomes difficult to interact" means also window isn't refreshing normally (at least on my system) - only at desktop switch, window resize, focus switch etc. It looks like damage notifications are not delivered anymore (for this window, others are ok). |
marmarek
added
the
P: major
label
Dec 23, 2015
marmarek
modified the milestones:
Release 3.1,
Release 3.1 updates
Feb 8, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
cooloutac
Jun 20, 2016
Same exact thing is happening now on debian firefox-esr and whonix tor-browser. I think since the latest debian updates around when iceweasel was dropped.
cooloutac
commented
Jun 20, 2016
|
Same exact thing is happening now on debian firefox-esr and whonix tor-browser. I think since the latest debian updates around when iceweasel was dropped. |
marmarek
referenced this issue
Jul 15, 2016
Closed
Firefox freezes when pressing F11 for maximizing the window #2177
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Jul 15, 2016
Member
Note that this occurs whenever you try to enter fullscreen (e.g., by pressing F11) in Firefox, not just when watching fullscreen videos.
|
Note that this occurs whenever you try to enter fullscreen (e.g., by pressing F11) in Firefox, not just when watching fullscreen videos. |
andrewdavidwong
changed the title from
[R3.1-rc1] Firefox fullscreen videos not working
to
Fullscreen Firefox windows fail to refresh normally
Jul 15, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Aug 5, 2016
Member
Found it!
It happens only when VM is not allowed to enter full screen, otherwise full screen works fine.
This is because when Firefox (or any other application) request window manager to make the window full screen, window manager acknowledge this by adding _NET_WM_STATE_FULLSCREEN to _NET_WM_STATE window property. If VM is not allowed to have fullscreen windows, nothing like this happens. And apparently Firefox is waiting for this.
It's easy to check it manually:
-
Try to switch Firefox to full screen (F11) - the window will stop responding
-
Open some terminal in the same VM
-
Set
_NET_WM_STATEto_NET_WM_STATE_FULLSCREEN:xprop -f _NET_WM_STATE 32a -set _NET_WM_STATE _NET_WM_STATE_FULLSCREENThen click on Firefox window.
I don't see any way in the protocol how window manager could reject fullscreen request. So, there are two options:
- inform the VM at startup whether fullscreen is allowed or not, so gui-agent may decide on adding
_NET_WM_STATE_FULLSCREENto_NET_WM_SUPPORTEDon root window (advertise fullscreen support or not) - when application request fullscreen, but VM is not allowed to do so, add
_NET_WM_STATE_FULLSCREEN, then instantly remove it
The first option is more elegant, but requires minor protocol change (so can't be backported to stable releases). The second option may result in Firefox changing window size, which may be annoying. But at least it will not freeze. It's easy to see that - to remove the _NET_WM_STATE_FULLSCREEN value, replace it with empty string.
@andrewdavidwong @esheltone @cooloutac any opinion?
|
Found it! This is because when Firefox (or any other application) request window manager to make the window full screen, window manager acknowledge this by adding It's easy to check it manually:
I don't see any way in the protocol how window manager could reject fullscreen request. So, there are two options:
The first option is more elegant, but requires minor protocol change (so can't be backported to stable releases). The second option may result in Firefox changing window size, which may be annoying. But at least it will not freeze. It's easy to see that - to remove the @andrewdavidwong @esheltone @cooloutac any opinion? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Aug 5, 2016
Member
No strong personal opinion, but from a UX perspective, the first option is probably to be preferred. The reason is that, with the second option, most users probably won't know (or think to ask) why the Firefox window is changing size whenever they try to enter fullscreen. They'll just think it's a Qubes bug/quirk. (In fact, the new behavior would probably get reported as "new" bug at some point.)
|
No strong personal opinion, but from a UX perspective, the first option is probably to be preferred. The reason is that, with the second option, most users probably won't know (or think to ask) why the Firefox window is changing size whenever they try to enter fullscreen. They'll just think it's a Qubes bug/quirk. (In fact, the new behavior would probably get reported as "new" bug at some point.) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Aug 6, 2016
Member
Actually, there is third option:
3. Add _NET_WM_STATE_FULLSCREEN anyway (and do not remove it), even if the window was just maximized
Will will result in maximized window (so decorations will still be visible), which will behave as fullscreen one (address bar etc will be hidden).
|
Actually, there is third option: Will will result in maximized window (so decorations will still be visible), which will behave as fullscreen one (address bar etc will be hidden). |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Aug 7, 2016
Member
How exactly do the first and third options differ from the user's perspective? I understand how things will appear to the user with the third option but not the first one.
|
How exactly do the first and third options differ from the user's perspective? I understand how things will appear to the user with the third option but not the first one. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Aug 7, 2016
Member
- (not advertising fullscreen support at all): Firefox window isn't resized at all. But still hides address bar.
- (adding then instantly removing fullscreen flag): Firefox window is maximized, then returns to the normal size. Address bar is not hidden.
- (adding fullscreen flag, even though the window is just maximized): Firefox window is maximized, address bar is hidden. Window decorations are still visible (so, it isn't real fullscreen).
Anyway, you can try using the above xprop commands.
Anyway, you can try using the above |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Aug 7, 2016
Member
IMHO, the third option is by far the best. No contest.
The first two options unintuitively flout the user's intention and are likely to be interpreted as bugs. (We would have to add some kind of pop-up to explain to the user what just happened, and that would only be "less bad" from a UX perspective.)
Window decorations still being visible in the third option is a feature, not a bug, IMHO. Window decorations should always be preserved unless the user explicitly gives permission to hide them, since that's one of the main security features of Qubes.
|
IMHO, the third option is by far the best. No contest. The first two options unintuitively flout the user's intention and are likely to be interpreted as bugs. (We would have to add some kind of pop-up to explain to the user what just happened, and that would only be "less bad" from a UX perspective.) Window decorations still being visible in the third option is a feature, not a bug, IMHO. Window decorations should always be preserved unless the user explicitly gives permission to hide them, since that's one of the main security features of Qubes. |
andrewdavidwong
referenced this issue
Oct 29, 2016
Closed
Screen stops updating after YouTube videos enter fullscreen #2406
marmarek
closed this
in
marmarek/old-qubes-gui-daemon@1365570
Jan 12, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dmoerner
commented
Feb 13, 2017
|
Friendly request to push this to current-testing :) |
added a commit
to QubesOS/qubes-gui-daemon
that referenced
this issue
Feb 13, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Feb 13, 2017
Automated announcement from builder-github
The package qubes-gui-dom0-3.2.9-1.fc23 has been pushed to the r3.2 testing repository for dom0.
To test this update, please install it with the following command:
sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing
qubesos-bot
commented
Feb 13, 2017
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r3.2-dom0-cur-test
label
Feb 13, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dmoerner
Feb 22, 2017
Unfortunately, I do not see this bug fixed with qubes-gui-dom0-3.2.9-1.fc23 from qubes-dom0-current-testing.
dmoerner
commented
Feb 22, 2017
|
Unfortunately, I do not see this bug fixed with qubes-gui-dom0-3.2.9-1.fc23 from qubes-dom0-current-testing. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Have you restarted VM after applying update? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dmoerner
Feb 25, 2017
Yes, I have restarted the whole computer and tested in a dispVM. Maximizing any Youtube video causes the problem.
dmoerner
commented
Feb 25, 2017
|
Yes, I have restarted the whole computer and tested in a dispVM. Maximizing any Youtube video causes the problem. |
andrewdavidwong
reopened this
Feb 26, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 5, 2017
Member
What Firefox version do you have? Which template? What version of qubes-gui-vm package there?
|
What Firefox version do you have? Which template? What version of qubes-gui-vm package there? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Mar 5, 2017
Automated announcement from builder-github
The package qubes-gui-dom0-3.2.9-1.fc23 has been pushed to the r3.2 stable repository for dom0.
To install this update, please use the standard update command:
sudo qubes-dom0-update
Or update dom0 via Qubes Manager.
qubesos-bot
commented
Mar 5, 2017
|
Automated announcement from builder-github The package
Or update dom0 via Qubes Manager. |
qubesos-bot
added
r3.2-dom0-stable
and removed
r3.2-dom0-cur-test
labels
Mar 5, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dmoerner
Mar 6, 2017
Fedora 24, Firefox 51.0.1-2.fc24, qubes-gui-vm 3.2.13-1.fc24. This is on a dispVM on a fresh Qubes R3.2 install.
dmoerner
commented
Mar 6, 2017
|
Fedora 24, Firefox 51.0.1-2.fc24, qubes-gui-vm 3.2.13-1.fc24. This is on a dispVM on a fresh Qubes R3.2 install. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 6, 2017
Member
Ok, I've reproduced it. It happens only when Firefox window was already maximized. If not - then F11 make the Firefox window maximized and it's still alive. Also, when it's frozen (because of F11 while it was already maximized), then exiting fullscreen (F11 again) make the window alive again and also not maximized anymore. And then you can try again hitting F11 and this time it will work.
@dmoerner can you confirm it?
Really strange behavior...
While it probably can be somehow fixed, it's getting more and more complex. I propose to fix it as "wontfix" and document somewhere this workaround (if Firefox window freeze, press F11 twice). @andrewdavidwong what do you think?
|
Ok, I've reproduced it. It happens only when Firefox window was already maximized. If not - then F11 make the Firefox window maximized and it's still alive. Also, when it's frozen (because of F11 while it was already maximized), then exiting fullscreen (F11 again) make the window alive again and also not maximized anymore. And then you can try again hitting F11 and this time it will work. @dmoerner can you confirm it? Really strange behavior... |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Mar 6, 2017
Member
Really strange behavior...
While it probably can be somehow fixed, it's getting more and more complex. I propose to fix it as "wontfix" and document somewhere this workaround (if Firefox window freeze, press F11 twice). @andrewdavidwong what do you think?
Agreed. I'll add it to the FAQ.
Agreed. I'll add it to the FAQ. |
andrewdavidwong
added
C: doc
wontfix
labels
Mar 6, 2017
andrewdavidwong
closed this
in
QubesOS/qubes-doc@c3f4deb
Mar 6, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dmoerner
Mar 6, 2017
@marmarek Yes, I can confirm that the problem only arises when the window is already maximized in xfce4.
My apologies, I neglected to say that I was doing this testing on i3 in dom0, which seems to have different behavior from xfce4.
I do see slightly different behavior on i3 - after trying to make Firefox full screen, Firefox is non-responsive as in the initial bug report. I cannot exit fullscreen by hitting F11 to make the window alive again. So here the F11 twice trick does not work.
However, on i3, you can fix the behavior by pressing "$mod-f", to fullscreen the frame, after you've fullscreened the Youtube video. This is not ideal, but works well enough in practice.
dmoerner
commented
Mar 6, 2017
•
|
@marmarek Yes, I can confirm that the problem only arises when the window is already maximized in xfce4. My apologies, I neglected to say that I was doing this testing on i3 in dom0, which seems to have different behavior from xfce4. I do see slightly different behavior on i3 - after trying to make Firefox full screen, Firefox is non-responsive as in the initial bug report. I cannot exit fullscreen by hitting F11 to make the window alive again. So here the F11 twice trick does not work. However, on i3, you can fix the behavior by pressing "$mod-f", to fullscreen the frame, after you've fullscreened the Youtube video. This is not ideal, but works well enough in practice. |
marmarek
removed
the
wontfix
label
Mar 6, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Dropping "wontfix" label, as issue was fixed, partially. |
esheltone commentedDec 9, 2015
This is easy to reproduce:
Everything works as expected in Google Chrome.