Open Bug 1852659 Opened 1 year ago Updated 9 months ago

Content not clipped in auxiliary/dialog windows with rounded bottom corners

Categories

(Core :: Widget: Gtk, defect)

Firefox 119
Desktop
Linux
defect

Tracking

()

Tracking Status
firefox119 --- affected

People

(Reporter: abrarsl2002, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(7 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Safari/605.1.15

Steps to reproduce:

Firefox Nightly 119.0a1 (2023-09-10) (64-bit) on Linux with newly added rounded corners.

Open any auxiliary/dialog window such as,

Browser Console,
Dev Tools Window,
About Window,
Profile Manager,
Library (Downloads, History, Bookmarks).

Actual results:

The contents of the windows have not been clipped.

Expected results:

The contents should be clipped at the window corners.

Please ignore the UA in the report. I used a different browser to submit the bug.

I'm noticing the same issue in FF Dev. Edt. 118.0b8 (64-bit), both in pop ups/dialog windows and the main browser window.

Reproduced the issue with Firefox 119.0a1 (2023-09-10) on Ubuntu 22.04. Indeed when I opened one of the auxiliary/dialog window the content of the windows have not been clipped.
Marking issue as new for engineering input. Thank you.

Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true
OS: Unspecified → Linux
Hardware: Unspecified → Desktop

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Emilio, any idea here?
Thanks.

Flags: needinfo?(emilio)

Yeah this is kind of expected since we implemented the clipping using CSS on browser.css. We could just move it to somewhere shared, but we kinda need to come up with some better approach anyways to fix the performance issues.

Depends on: 1850827
Flags: needinfo?(emilio)

Can someone that can reproduce this attach about:support information? In particular, are you on Wayland or X11? Any GTK theme that isn't the default?

I can't reproduce this on either GNOME nor KDE with either Wayland or X11, so I'm confused since comment 3 indicates it should repro there :)

Flags: needinfo?(ttntm)
Flags: needinfo?(dlucaci)
Flags: needinfo?(abrarsl2002)
Attached file Support Info

I can't reproduce the clipping issue with xwayland. The corners are simply not rounded at all.

Flags: needinfo?(abrarsl2002)
Attached file about:config output
I have reverted to the default theme, can confirm what abrarsl2002 mentioned in the last comment: bottom borders not rounded at all. I proceeded to install a gnome extension called Rounded window Corners (https://extensions.gnome.org/extension/5237/rounded-window-corners/) an relogged. Result: FF bottom corners are rounded and content is properly clipped. IDK what to make of it, but it looks like it's unrelated to FF's code in my case. I'm attaching about:support anyway, just in case:

I have reverted to the default theme, can confirm what abrarsl2002 mentioned in the last comment: bottom borders not rounded at all.

I proceeded to install a gnome extension called Rounded window Corners (https://extensions.gnome.org/extension/5237/rounded-window-corners/) an relogged.

Result: FF bottom corners are rounded and content is properly clipped.

IDK what to make of it, but it looks like it's unrelated to FF's code in my case.

I've attached about:support output anyway, just in case.

Flags: needinfo?(ttntm)

(In reply to abrarsl2002 from comment #10)

I can't reproduce the clipping issue with xwayland. The corners are simply not rounded at all.

That's the expected behavior on Wayland too. It seems you have an adw-gtk3-dark theme. Does using plain Adwaita fix it? Do you have an extension like comment 12 or so?

Flags: needinfo?(abrarsl2002)

I tried again with plain Adwaita. The problem still occurs.

Flags: needinfo?(abrarsl2002)
Attached image adwaita_wayland.png
Attached image adwaita_xwayland.png

Any gnome extension or so? I can't reproduce that.

Both of those images were taken with plain Adwaita. The buggy one was with native Wayland FF and the other one is Xwayland FF via setting MOZ_ENABLE_WAYLAND=0

No GNOME extensions or anything weird being done server side as far as I know.

I installed my FF from https://gitlab.com/projects261/firefox-nightly-flatpak
I'll test with a tarball straight from Mozilla once it's done downloading.

Issue persists with the tarball and exhibits the same behaviour.

Flags: needinfo?(dlucaci)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: