Open
Bug 1251217
Opened 9 years ago
Updated 2 years ago
Grey bar at the bottom of initially maximized window
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
REOPENED
People
(Reporter: marco, Unassigned)
References
Details
(Keywords: regression, Whiteboard: [gfx-noted][tpi:+])
Attachments
(6 files)
Lately, I've been seeing this grey bar at the bottom of every page. I can't reproduce it easily.
Reporter | ||
Comment 1•9 years ago
|
||
Sorry, bottom of only one window. The second window doesn't have it.
Summary: Grey bar at the bottom of all windows → Grey bar at the bottom of a window
Reporter | ||
Comment 2•9 years ago
|
||
I've tried disabling all addons, still happening.
Reporter | ||
Comment 3•9 years ago
|
||
If I resize the window, the grey bar disappears.
Reporter | ||
Comment 4•9 years ago
|
||
If I open another application while Firefox is starting up, instead of the grey bar I see the bottom part of the window of the other application.
Reporter | ||
Updated•9 years ago
|
OS: Unspecified → Linux
Reporter | ||
Comment 5•9 years ago
|
||
It doesn't happen if I run Firefox via mozregression, even if I use my profile...
Comment 6•9 years ago
|
||
Does this ever happen when gfx.xrender.enabled is true?
Reporter | ||
Comment 7•9 years ago
|
||
(In reply to Karl Tomlinson (ni?:karlt) from comment #6)
> Does this ever happen when gfx.xrender.enabled is true?
Yes, it happens no matter what the value of the pref is.
Updated•9 years ago
|
Component: Untriaged → Graphics
Product: Firefox → Core
Reporter | ||
Comment 8•9 years ago
|
||
This doesn't happen if I set display scaling to a value below 1.5 (like Jonathan described in bug 1248427 comment 7).
Updated•9 years ago
|
Whiteboard: [gfx-noted]
Updated•9 years ago
|
Keywords: regression
Summary: Grey bar at the bottom of a window → Grey bar at the bottom of a window with dpi scaling
Reporter | ||
Comment 9•9 years ago
|
||
Looks like this was fixed by the patch from bug 1240749, so this was likely a regression from bug 890156.
Comment 10•9 years ago
|
||
Great! Thanks for checking. Bug 1240749 aimed to substantially clean up DPI handling in widget/gtk, so it makes sense for it to have fixed this at the same time.
Reporter | ||
Comment 11•9 years ago
|
||
Unfortunately, it's still happening and it isn't related to DPI. It's a sneaky bug.
I have another observation.
If I open Firefox, minimize and maximize the first window and then restart, it doesn't happen.
If I restart without minimizing and maximizing the window (which is the normal situation when you launch Firefox for the first time in a session), it happens.
I'll try to find a regression range with mozregression tomorrow (I already tried and failed before, because I couldn't reproduce in builds downloaded via mozregression, but now I have this additional observation which could help).
Reporter | ||
Comment 12•9 years ago
|
||
Still unable to reproduce with mozregression.
Summary: Grey bar at the bottom of a window with dpi scaling → Grey bar at the bottom of a window
Thanks for chasing this Marco; having the regression range will help, as you say, it's a sneaky bug.
Updated•9 years ago
|
Assignee: nobody → milan
Updated•9 years ago
|
Flags: needinfo?(howareyou322)
Updated•9 years ago
|
Assignee: milan → nobody
Platform triage decision: We don't believe this is critical for Fx47 release.
tracking-firefox47:
--- → -
Updated•9 years ago
|
Comment 15•9 years ago
|
||
I couldn't reproduce this with FF 47 on linux based on comment 11. Marco, are you still able to reproduce it?
Flags: needinfo?(howareyou322) → needinfo?(mcastelluccio)
Reporter | ||
Comment 16•9 years ago
|
||
Yes, I can still reproduce it. The grey bar (which actually isn't a gray bar but a portion of the screen with stale content, so it is gray if the background was gray when I started Firefox) is sometimes at the bottom, sometimes on the right side.
Flags: needinfo?(mcastelluccio)
Comment 17•9 years ago
|
||
Marco, are you still able to reproduce this with latest firefox nightly? If yes, can you go to about:config page and enable nglayout.debug.paint_flashing/layers.draw-borders? Please also update the captured screen and about:support page for further debugging.
Flags: needinfo?(mcastelluccio)
Comment 18•9 years ago
|
||
Does the window always open in maximized mode, even when it was not maximized in the previous session?
See Also: → 1274620
Reporter | ||
Comment 19•9 years ago
|
||
(In reply to Karl Tomlinson (ni?:karlt) from comment #18)
> Does the window always open in maximized mode, even when it was not
> maximized in the previous session?
I think it opens maximized and quickly gets resized.
I can't reproduce the bug if I restart Firefox after resizing the window (see comment 11), probably because the window gets resized.
Bug 1274620 looks like a duplicate of this bug.
Flags: needinfo?(mcastelluccio)
Reporter | ||
Comment 20•9 years ago
|
||
(In reply to Peter Chang[:pchang] from comment #17)
> Marco, are you still able to reproduce this with latest firefox nightly? If
> yes, can you go to about:config page and enable
> nglayout.debug.paint_flashing/layers.draw-borders? Please also update the
> captured screen and about:support page for further debugging.
Yes, I'm still able to reproduce.
Here's a first screenshot (without those options enabled).
You can see that there's a rectangle at the bottom that contains stale content from the window that was focused before Firefox (a gedit window).
Reporter | ||
Comment 21•9 years ago
|
||
Here's a second screenshot with the options enabled.
Now for some reason the window is in a weird state. It's maximized (because the window manager is not showing the title bar) and at the same time it isn't.
Comment 22•9 years ago
|
||
(In reply to Marco Castelluccio [:marco] from comment #19)
> (In reply to Karl Tomlinson (ni?:karlt) from comment #18)
> > Does the window always open in maximized mode, even when it was not
> > maximized in the previous session?
>
> I think it opens maximized and quickly gets resized.
I'm not understanding. The windows look maximized in the screenshots.
Are they?
> I can't reproduce the bug if I restart Firefox after resizing the window
> (see comment 11), probably because the window gets resized.
Comment 11 says it doesn't reproduce when the window is explicitly maximized before restarting.
It sounds like this bug happens when the window manager chooses to maximize?
NSPR_LOG_MODULES=Widget:5 may provide some clues.
In Preferences -> General, what is "When Nightly starts"?
I wonder whether "Show my windows and tabs from last time" is involved.
Comment 23•9 years ago
|
||
(In reply to Marco Castelluccio [:marco] from comment #21)
> Created attachment 8756801 [details]
> Schermata del 2016-05-26 11-59-19.png
>
> Here's a second screenshot with the options enabled.
>
> Now for some reason the window is in a weird state. It's maximized (because
> the window manager is not showing the title bar) and at the same time it
> isn't.
Each green border is represented one layer(buffer) to display the content. I noticed the layer of xul with ABP button was very small(not fullscreen) but the FF windows was maximized.
Reporter | ||
Comment 24•9 years ago
|
||
(In reply to Karl Tomlinson (ni?:karlt) from comment #22)
> (In reply to Marco Castelluccio [:marco] from comment #19)
> > (In reply to Karl Tomlinson (ni?:karlt) from comment #18)
> > > Does the window always open in maximized mode, even when it was not
> > > maximized in the previous session?
> >
> > I think it opens maximized and quickly gets resized.
>
> I'm not understanding. The windows look maximized in the screenshots.
> Are they?
Sorry, let me clarify.
- I have multiple windows open, the bug is always related to the first one.
- If I resize this window and restart Firefox, I can't reproduce the bug and the window is opened with the right dimensions (and not maximized).
- If I resize and then maximize this window and restart Firefox, I can't reproduce the bug and the window is maximized.
- If I never resize the window during the session, I can reproduce the bug the next time I start Firefox.
>
> > I can't reproduce the bug if I restart Firefox after resizing the window
> > (see comment 11), probably because the window gets resized.
>
> Comment 11 says it doesn't reproduce when the window is explicitly maximized
> before restarting.
>
> It sounds like this bug happens when the window manager chooses to maximize?
>
> NSPR_LOG_MODULES=Widget:5 may provide some clues.
>
> In Preferences -> General, what is "When Nightly starts"?
> I wonder whether "Show my windows and tabs from last time" is involved.
I'm attaching the log.
Yes, I set up Nightly to restore the session.
Reporter | ||
Comment 25•9 years ago
|
||
(In reply to Peter Chang[:pchang] from comment #23)
> (In reply to Marco Castelluccio [:marco] from comment #21)
> > Created attachment 8756801 [details]
> > Schermata del 2016-05-26 11-59-19.png
> >
> > Here's a second screenshot with the options enabled.
> >
> > Now for some reason the window is in a weird state. It's maximized (because
> > the window manager is not showing the title bar) and at the same time it
> > isn't.
>
> Each green border is represented one layer(buffer) to display the content. I
> noticed the layer of xul with ABP button was very small(not fullscreen) but
> the FF windows was maximized.
Indeed, that's the problem in the last screenshot.
Reporter | ||
Comment 26•9 years ago
|
||
Here's another screenshot. The first window is actually maximized, the area around the window is stale content (that is, I can't interact with it in any way).
Comment 27•9 years ago
|
||
Comment on attachment 8757231 [details]
widget_log.txt
Thanks.
It looks like there is initially a small 770x470 window at 1112,596. A button
click causes that to close.
Then it looks like a new process starts, requests maximized mode for a window
[7ff17a4f0c00] before showing. It is notified of dimensions 2766x1578 at
114,42, which is consistent with maximized mode on a 2880x1620 monitor.
A new 1982x854 window [7ff16d7ae000] is shown at 898,766, not maximized.
Another new 1982x854 window [7ff16e4ec800] is shown at 898,766, not maximized.
The window [7ff17a4f0c00] that was maximized requests normal size mode (but I
can't tell from the log whether the request was actually sent to the window
manager). Then it requests maximized mode again.
Configure events indicate that the window is resized and repositioned, but
then returns to 2766x1578 at 114,42.
No size_allocate nor OnWindowStateEvent maximized status change notifications
are received for these resizes.
Another new 1982x854 window [7ff16e4f0800] is shown at 898,766, not maximized.
Window [7ff16d7ae000] requests maximized mode, then normal mode, then
maximized mode, then normal mode, then maximized mode. It is resized to
2766x1578 at 114,42 and receives a size-allocate notification.
Window [7ff16e4f0800] requests maximized mode. It is resized to
2766x1578 at 114,42 and receives a size-allocate notification.
Comment 28•9 years ago
|
||
I don't know why session restore is indecisive on the window modes.
What goes wrong with [7ff17a4f0c00] seems to be that the bounds are recorded
on size request when resized to unmaximized size, but are not updated for the
later maximized size because the multiple changes in state are effectively
coalesced into a no-op and so no size-allocate is received.
Probably mBounds should not be set on the resize request in general, because
we don't know that the size will be changed. We do know that a configure
notify event will be received, but there are many of them.
The disadvantage of waiting for the size-allocate to update mBounds is that
layout can't prospectively begin resize reflow until the size allocate is
received. That would however be much less a problem than ending up with the
wrong size.
I think the next step here is to try not setting mBounds until size-allocate
on (toplevel) managed windows, and see what is depending on this being set
synchronously.
Summary: Grey bar at the bottom of a window → Grey bar at the bottom of initially maximized window
Updated•9 years ago
|
Component: Graphics → Widget: Gtk
Comment 30•8 years ago
|
||
Just experienced this issue with FF 48.0b7 on fedora-24 with latest updates running xfce4/xfwn.
At startup firefox restored 4 Tabs but content was only 2/3 of the window size.
Updated•8 years ago
|
Priority: -- → P3
Whiteboard: [gfx-noted] → [gfx-noted][tpi:+]
Comment 31•8 years ago
|
||
What I saw recently quite often is that firefox needs a few seconds to actually resize its content to the main window: https://youtu.be/oSZDrSV_O9c
so while the content resize does happen, it is performed very delayed and leads to horrible user experience.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•