Open Bug 1968382 Opened 1 year ago Updated 4 months ago

Fullscreen videos not filling the entire screen (visible top and left margins/desktop wallpaper)

Categories

(Core :: Widget: Win32, defect, P3)

Unspecified
Windows 11
defect

Tracking

()

Tracking Status
firefox-esr140 --- unaffected
firefox147 --- wontfix
firefox148 --- wontfix
firefox149 --- wontfix
firefox150 --- wontfix
firefox151 --- wontfix

People

(Reporter: kevinszarafin, Unassigned, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached file firefox bug.txt —

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0

Steps to reproduce:

I start Firefox normally and go to youtube.com, click on any video, press f to fullscreen it (or the button for fullscreen), video is shown in fullscreen but has weird edges

Actual results:

The Video was shown in fullscreen but had these tiny edges showing my pc background.

Expected results:

Fullscreen without the 2mm border arround the 2 edges

Attached image image.png —

I've attached a new image where it shows the border on the top and on the left

Component: Audio/Video: Playback → Widget: Win32
OS: Unspecified → Windows 11
Hardware: Unspecified → x86_64

Can you try running in troubleshooting mode, to see if this is maybe due to a misbehaving extension (maybe 7TV), etc? To run in troubleshooting mode, in the Firefox menu choose Help > Troubleshooting Mode and then click Restart. Let us know what you find.

Flags: needinfo?(kevinszarafin)
Summary: Hi, ive recently switched from Google Chrome to Firefox and ive noticed when watching YT or anything in fullscreen basically i have a weird edge (about 3mm) on the left and top site of my screen. → when watching YT or anything in fullscreen basically i have a weird edge (about 3mm) on the left and top site of my screen

Hi, in Troubleshooting Mode they borders are gone. When i restart firefox and exit the Mode i think they come back. even when i have no extensions installed.

Flags: needinfo?(kevinszarafin)

Also i dont know if that helps, when i have these borders and exit fullscreen and reenter fullscreen they disappear

I have Changed layers.acceleration.force-enabled option to true in the about:config and that seems to have resolved the issue. I will do some testing and let you know later.

Severity: -- → S4

Thanks Kevin, that's actually probably the crux of the issue (but not everything -- see below). It looks like you have turned off acceleration previously and that the force-enabled pref is overriding the disabled pref. From your about:support:

HW_COMPOSITING:
default: available,
user: disabled, Disabled by layers.acceleration.disabled=true, Blockiert; Fehlercode FEATURE_FAILURE_COMP_PREF

layers.acceleration.disabled was probably part of the issue, although it uses the same behavior in troubleshooting mode, which you mention does not have the bug. (I also do not see the bug with that pref set.) It should work regardless but this is not the normal setup. If we need to go further, we'll have to bisect the differences with troubleshooting mode to see if we can see what it's doing differently, but that wouldn't be easy to do.

Duplicate of this bug: 1961732
Duplicate of this bug: 1976999

Given the other bugs, it seems probable that this is due to the user disabling HW acceleration. Moving to graphics.

Severity: S4 → --
Component: Widget: Win32 → Graphics

yes, switching off the HW acceleration causes this bug. But it is sometimes necessary if you need to use screen capture software.
And indeed going from full screen to normal and then back to full screen solves the problem if you are working with disabled HW acceleration.

Duplicate of this bug: 1972448

The severity field is not set for this bug.
:bhood, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(bhood)
Flags: needinfo?(bhood)

The severity field is not set for this bug.
:bhood, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(bhood)
See Also: → 1999857
See Also: → 1999851
See Also: → 1999759
See Also: → 1998848
See Also: → 1997468
See Also: → 1996010
See Also: → 1993474
Duplicate of this bug: 1999759
Duplicate of this bug: 1986166
See Also: 1999759 →
See Also: 1999851 →
Duplicate of this bug: 1997468
Hardware: x86_64 → Unspecified
Summary: when watching YT or anything in fullscreen basically i have a weird edge (about 3mm) on the left and top site of my screen → Fullscreen videos not filling the entire screen (visible top and left margins/desktop wallpaper)
Version: Firefox 138 → unspecified
See Also: 1997468 →
See Also: 1996010 →
See Also: 1999857 →
Duplicate of this bug: 2001217
Duplicate of this bug: 2001582

bhood has over 100 pending needinfo requests. Can you please ask someone else to look into this bug? People keep creating forum threads about it and submitting duplicate reports.

Flags: needinfo?(gstoll)
See Also: → 1999748
See Also: → 1828683
See Also: → 2001696
See Also: → 1999842
See Also: → 2001742
Severity: -- → S3
Priority: -- → P3
Duplicate of this bug: 1999842
See Also: 1999842 →
Duplicate of this bug: 2001742
See Also: 2001742 →
Duplicate of this bug: 2001696
See Also: 2001696 →
Duplicate of this bug: 1999748
See Also: 1999748 →

This is an old bug that's existed when running firefox in 'software mode'. I've even posted about it.

The way we used to get around this was by pressing F11 (or click fullscreen) twice. The first time would be exactly like the image OP included, the second time would be properly fullscreen. Since a recent update, the issue persists even after multiple F11 keypresses.

I ran Mozregression and found that the dates where this new behaviour started occuring was Oct5->Oct6. Mozregression spit out this url:

https://phabricator.services.mozilla.com/D267040

After reading the diff, I found that if I set:

widget.windows.windowsappsdk.enabled == false.

I can now press F11 **once ** and it's actually fullscreen!

Thanks for the investigation!

If that is a workaround, it’s possible that bug 1993474 will fix this.

Flags: needinfo?(gstoll)

I'm still having this issue on 145.0.2

I’m still seeing this issue in the current build as well.

Behavior:
The fullscreen video border/misalignment problem only happens when the main Firefox window is maximized (the square icon between the close “X” and minimize “_”).
If Firefox is not maximized (just in normal window mode), fullscreen videos render correctly with no border issues.
This only happens if Hardware Acceleration is turned off, which is unfortunately necessary, because watching videos in Firefox with it enabled, while playing certain games (e.g. Final Fantasy XIV), causes insane stutters in video playback.

Workaround:
If I start Firefox in normal windowed mode, enter fullscreen on a video (works correctly), and then maximize the Firefox window afterward, fullscreen video continues to behave normally. The issue only appears when trying to enter fullscreen video while Firefox is already maximized.

Duplicate of this bug: 1998848
Duplicate of this bug: 2007265

(In reply to frtz45 from comment #37)

(In reply to CrasH_CTB from comment #36)

(In reply to frtz45 from comment #35)

(In reply to frtz45 from comment #12)

yes, switching off the HW acceleration causes this bug. But it is sometimes necessary if you need to use screen capture software.
And indeed going from full screen to normal and then back to full screen solves the problem if you are working with disabled HW acceleration.

and this workaround (going from full screen to normal and then back to full screen) doesn't work anymore either in Firefox.

For me I have to full screen video once BUT firefox window cant be maximized while I do that. Than it works fine.

yeah, that used to work for me, but not any more.
I think it is rather strange that this issue isn't resolved a long time ago and that Librewolf, which is a derivative of Firefox, doesn't have this bug.

yeah the only workaround is to open about:config and set:

widget.windows.windowsappsdk.enabled == false

It won't 'fix' the issue but at least with this flag you can go back to fullscreen-ing twice without the strange border. It is a little frustrating that we're yeeeears into this bug and it's not been resolved.

See Also: 1998848 →

Since this issue still hasn't been resolved, I've now switched completely to Librewolf. What I don't understand is why Mozilla can't resolve this issue. Librewolf is based on Firefox. It shouldn't be that difficult to compare the two to see what Librewolf does differently from Firefox...

Component: Graphics → Widget: Win32

Are people still able to reproduce the issue in Firefox 147?

(In reply to Jeff Muizelaar [:jrmuizel] from comment #45)

Are people still able to reproduce the issue in Firefox 147?

Yes. This is still a problem in 147.

Greg, this still appears not to be fixed. What are the next steps here?

Flags: needinfo?(gstoll)

Sigh, I'm unable to reproduce this still. :handyman, have you been able to?

Flags: needinfo?(gstoll) → needinfo?(davidp99)

Is there any logging I can do that might help?

Thanks, Chris, it's a long shot but it might help if you turn on the Widget log. You can do this in about:logging. Under "New log modules", enter "timestamp,sync,Widget:5" (no quotes) and click "set log modules". Also click "enable stack traces for log messages". You can then record a profile, (which will include the log messages) by pressing Ctrl+Shift+1 to start the profile, then reproduce the bug, and then Ctrl+Shift+2 to stop it. When that's done, click "Upload local profile" in the profile tab that opens (upper-left) and copy the URL that it gives you into a post here. Thanks for the help!


I'm unable to reproduce this on multiple single or dual monitor configurations, regardless of display dimensions/DPI, or fullscreen mode (e.g. fullscreen from page, which was the original bug, vs pressing F11).

Flags: needinfo?(davidp99) → needinfo?(christopher.humber)
Keywords: regression
Regressed by: 1947324
See Also: → 2014626

(In reply to David Parks [:handyman] from comment #50)

Thanks, Chris, it's a long shot but it might help if you turn on the Widget log. You can do this in about:logging. Under "New log modules", enter "timestamp,sync,Widget:5" (no quotes) and click "set log modules". Also click "enable stack traces for log messages". You can then record a profile, (which will include the log messages) by pressing Ctrl+Shift+1 to start the profile, then reproduce the bug, and then Ctrl+Shift+2 to stop it. When that's done, click "Upload local profile" in the profile tab that opens (upper-left) and copy the URL that it gives you into a post here. Thanks for the help!


I'm unable to reproduce this on multiple single or dual monitor configurations, regardless of display dimensions/DPI, or fullscreen mode (e.g. fullscreen from page, which was the original bug, vs pressing F11).

Sorry, I couldn't get to this last night. I took on some dev responsibilities at work and our code is 20 year old spaghetti, built on an even older stack but I digress.

I'll run this tonight and post the results. I do run:

widget.windows.windowsappsdk.enabled == false

should I turn this back on for testing/logging?

Flags: needinfo?(christopher.humber)

I'm unable to reproduce this on multiple single or dual monitor configurations, regardless of display dimensions/DPI, or fullscreen mode (e.g. fullscreen from page, which was the original bug, vs pressing F11).

I forgot to mention this. This bug ONLY occurs when hardware acceleration is turned off. Further, I suspect part of the problem set is 2 monitors with different DPI's, based on the many, many people reporting this. So you might want to match that config for your own testing.

I can confirm that. I also have two monitors, but the second one is usually turned off, and this happens even with one monitor on.
And yes, I don't have hardware acceleration enabled.
But I still find it strange that Firefox has this issue and Librewolf doesn't.

Many thanks both. I was indeed running with layers.acceleration.disabled=true but no luck.

(In reply to Chris Humber from comment #51)

I'll run this tonight and post the results. I do run:

widget.windows.windowsappsdk.enabled == false

should I turn this back on for testing/logging?

Yes, you'll need that to get the failure log. There are some error messages that I'm hoping to see since that would explain things, but I'm a bit skeptical they will be there.

(In reply to David Parks [:handyman] from comment #54)

Many thanks both. I was indeed running with layers.acceleration.disabled=true but no luck.

(In reply to Chris Humber from comment #51)

I'll run this tonight and post the results. I do run:

widget.windows.windowsappsdk.enabled == false

should I turn this back on for testing/logging?

Yes, you'll need that to get the failure log. There are some error messages that I'm hoping to see since that would explain things, but I'm a bit skeptical they will be there.

Oh boy. I'm confused. I spend a couple hours trying to figure this out.
Randomly while I was testing, the issue completely went away. I don't understand why, or what changed but it disappeared, so I don't know there. Hopefully it stays that way?

Good news (?) though, I was able to reproduce the issue on a brand new empty profile and ran your logs there. I ran 2 sets, 1 was exactly what you asked for:

timestamp,sync,Widget:5

https://profiler.firefox.com/from-browser/calltree/?globalTrackOrder=d0c69a8714w25b&hiddenGlobalTracks=1w57wc&hiddenLocalTracksByPid=9588-0w2~4880-0~12292-0~4872-0~12580-0~2764-0~19300-023~18876-0~12208-0~14204-0~9196-0~6496-0~12560-01&implementation=js&thread=0&v=13

But I also ran:

timestamp,sync,Widget:5,BaseWidget:5,WindowsEvent:5,TaskbarConcealer:5

https://profiler.firefox.com/from-browser/calltree/?globalTrackOrder=a0896132745&hiddenGlobalTracks=1w8&hiddenLocalTracksByPid=9588-0~4880-0~12292-0~4872-0~14556-0~16648-0~14204-0~12580-0~12560-01~19300-023&implementation=js&thread=0&v=13

Just in case it had value.

Now I could also get the bug to 'disappear' if I added a theme. I didn't believe it so I recorded a video so you can see for yourselves:
https://youtu.be/MLozTgM1JmY

I diffed prefs.js in both, and there didn't appear to be meaningful changes, besides some obvious theme things, most notably: browser.uiCustomization.state. changing this did nothing to resolve.

I wasn't sure how those logs worked, so here are the logfiles in case it helps:

timestamp,sync,Widget:5
https://drive.google.com/file/d/1YTRxlmnfQAvd6sjn3JTvixMje9_FkzdN/view?usp=sharing

timestamp,sync,Widget:5,BaseWidget:5,WindowsEvent:5,TaskbarConcealer:5
https://drive.google.com/file/d/1CR2ZhWdUXuKbqINFoOzflZG7ITncZswh/view?usp=sharing

Thanks for the effort, Chris. This does help, but unfortunately I'll need you to try it again. The errors I was looking for weren't present in the log I asked for but the timestamp,sync,Widget:5,BaseWidget:5,WindowsEvent:5,TaskbarConcealer:5 one shows some unexpected fullscreening behavior. Unfortunately, you only got the log, not the profile, so it's missing a lot of the information we need to figure this out. You must have taken some effort to get the pdfs, which were helpful, because the profiler links were local to your machine so they don't show anything here. If you can (and the issue reproduces), can you try again with the profiler instructions below (from comment 50 but with your expanded log list). Note the part about uploading your profile -- that's all that you were missing. You'll be able to see the log messages there, under "Marker Table". You won't need to do anything like making the pdfs.

You can do this in about:logging. Under "New log modules", enter "timestamp,sync,Widget:5,BaseWidget:5,WindowsEvent:5,TaskbarConcealer:5" (no quotes) and click "set log modules". Also click "enable stack traces for log messages". You can then record a profile, (which will include the log messages) by pressing Ctrl+Shift+1 to start the profile, then reproduce the bug, and then Ctrl+Shift+2 to stop it. When that's done, click "Upload local profile" in the profile tab that opens (upper-left) and copy the URL that it gives you into a post here.

(In reply to David Parks [:handyman] from comment #57)

Thanks for the effort, Chris. This does help, but unfortunately I'll need you to try it again. The errors I was looking for weren't present in the log I asked for but the timestamp,sync,Widget:5,BaseWidget:5,WindowsEvent:5,TaskbarConcealer:5 one shows some unexpected fullscreening behavior. Unfortunately, you only got the log, not the profile, so it's missing a lot of the information we need to figure this out. You must have taken some effort to get the pdfs, which were helpful, because the profiler links were local to your machine so they don't show anything here. If you can (and the issue reproduces), can you try again with the profiler instructions below (from comment 50 but with your expanded log list). Note the part about uploading your profile -- that's all that you were missing. You'll be able to see the log messages there, under "Marker Table". You won't need to do anything like making the pdfs.

You can do this in about:logging. Under "New log modules", enter "timestamp,sync,Widget:5,BaseWidget:5,WindowsEvent:5,TaskbarConcealer:5" (no quotes) and click "set log modules". Also click "enable stack traces for log messages". You can then record a profile, (which will include the log messages) by pressing Ctrl+Shift+1 to start the profile, then reproduce the bug, and then Ctrl+Shift+2 to stop it. When that's done, click "Upload local profile" in the profile tab that opens (upper-left) and copy the URL that it gives you into a post here.

Oh geez, i'm sorry. I definitely skipped a step there.

I can reproduce the issue at any time, it's just laborious. I won't be able to get to this for a few hours though. Sorry for the delay, Apologies.

No worries. Thanks for being so patient with this!

(In reply to David Parks [:handyman] from comment #59)

No worries. Thanks for being so patient with this!

https://share.firefox.dev/3O3Gepc

I cycled F11 a couple times there. If you'd like anything else, truly, don't hesitate to ask. Happy to help! :D

(In reply to David Parks [:handyman] from comment #59)

No worries. Thanks for being so patient with this!

and 1 more with a single fullscreen so the data is less noisy, maybe?

https://share.firefox.dev/4tC7Y4C

And apparently fullscreen working normally was very short lived. My regular profile is back to the way it was. I have to leave widget.windows.windowsappsdk.enabled == false and press f11 twice again.

Previously, you could get rid of the border by enlarging the movie clip (edge visible), then making it small again, and then enlarging it again. Then the edge would disappear. Now you always have the border, no matter what you do.

(In reply to frtz45 from comment #63)

Previously, you could get rid of the border by enlarging the movie clip (edge visible), then making it small again, and then enlarging it again. Then the edge would disappear. Now you always have the border, no matter what you do.

Yeah, I also don't understand why it was marked 'unconfirmed'. Multiple people are still complaining about this issue, there are screenshots. I posted of whats happening in the comments above. Im not sure that 'unconfirmed' is the right thing to have done. Maybe librewolf is the play here?

(In reply to Chris Humber from comment #64)

Yeah, I also don't understand why it was marked 'unconfirmed'. Multiple people are still complaining about this issue, there are screenshots. I posted of whats happening in the comments above. Im not sure that 'unconfirmed' is the right thing to have done. Maybe librewolf is the play here?

Yes, I am using Librewolf now, except for online banking. My bank does not accept Librewolf as a browser.
And I don't know a lot of these things, but is it very difficult to compare Librewolf with Firefox, just to find out what goes wrong in Firefox?

Status: UNCONFIRMED → NEW
Ever confirmed: true

Set release status flags based on info from the regressing bug 1947324

Set release status flags based on info from the regressing bug 1947324

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: