Open Bug 2007564 Opened 3 months ago Updated 2 months ago

[Sway] New windows, popups, and private windows are drawn only in the background color.

Categories

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

Firefox 147
Desktop
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: akkun11.open, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(8 files)

Attached image bug.png

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0

Steps to reproduce:

  1. Setup multi monitor with multi GPU (primary GPU is dGPU)

iGPU: Intel HD Gprahics 4600 (Core i7-4770S)
dGPU: Radeon RX 6700 XT

monitor list:
Display (JPN2500): 1920x1080 in 25", 120 Hz [External] dGPU
Display (FTD-G16AS): 1280x1024 in 16", 75 Hz [External] iGPU
Display (MP156Y2-M): 1920x1080 in 19", 60 Hz [External] iGPU

DE: Sway 1.11 (wlroots 0.19.2-1.1 ChahyOS x86_64-v3 repo)

  1. open Firefox (v147.0b3, Arch Linux)
    open popup (ex: Bitwarden)
    open new private window

Actual results:

The window will only be drawn with the background color.
Components inside the window respond to the mouse.

Expected results:

The window will be drawn as usual.
This problem is resolved for normal new windows if you set "Homepage and new windows" to something other than "Firefox Home" (ex: Blank Page).

If layers.acceleration.disabled=true is set, private windows will be drawn.
However, it is drawn to the full screen size excluding the status bar, and will not be redrawn even if you operate it.

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

Component: Untriaged → Graphics
Product: Firefox → Core

When using Xwayland by MOZ_ENABLE_WAYLAND=0 (and layers.acceleration.disabled=false),
private windows and popups will be drawn correctly and work.

Both iGPU and dGPU use Mesa driver.

(I posted the comment above without previewing Markdown. Please ignore the font size.)

Is this a regression? Can you use mozregression?

OS: Unspecified → Linux
Hardware: Unspecified → Desktop

(I'm currently investigating whether this is a regression or not. Please wait for a while.)

I'm not sure if it's related to this bug,
but changing the title bar settings causes Firefox to freeze,
and on the next startup only the background color is drawn (regardless of the homepage).

This bug may be specific to my profile.
It cannot be reproduced with an empty profile or mozregression.
I would like to add that I am using Profile-sync-daemon.

Adding to Triage so we can follow-up after the holidays.

Blocks: gfx-triage
Severity: -- → S3
Priority: -- → P2

Could you please attach the output of your about:support to this report when you get a chance?

Flags: needinfo?(akkun11.open)
Attached file about_support.json
Flags: needinfo?(akkun11.open)
Attached image metamask.png

MetaMask's popup can be drawn.
I don't know why.

Attachment #9536533 - Attachment description: about_config.json → about_support.json

(In reply to akkun11.open from comment #7)

This bug may be specific to my profile.
It cannot be reproduced with an empty profile or mozregression.
I would like to add that I am using Profile-sync-daemon.

Thank you for uploading your about:support. Looks like you have 40 extensions installed. Since this isn't happening for you on a clean profile (no extensions), would you be willing to systematically disable extensions and see if that identifies a particular extension that is causing this problem?

Flags: needinfo?(akkun11.open)

This bug occurs even in safe mode, so I don't think extensions are involved.

Flags: needinfo?(akkun11.open)

Martin, we're not sure what to ask for to diagnose this further -- it goes away with a clean profile, but not with safe mode (which should have much the same effect). Do you have any ideas on how to proceed?

Flags: needinfo?(stransky)

Sure, will handle it.

Component: Graphics → Widget: Gtk
Flags: needinfo?(stransky)
Priority: P2 → P3
gfx.webrender.compositor	true

you have enabled experimental/unssuported yet feature. So this looks like a Sway compositor bug - please file it there.

Summary: New windows, popups, and private windows are drawn only in the background color. → [Sway] New windows, popups, and private windows are drawn only in the background color.

btw. the compositor is used for HDR rendering - Bug 1642854.

You can try the same profile in Gnome/KDE to make sure it's Sway compositor issue.

Attached video hyprland.mp4

I have a similar problem with Hyprland.
Sometimes normal windows are not drawn either.

(I updated packages, firefox-developer-editon is now 148.0b9-1.1)

Attached video hyprland2-comp.mp4
Attached file prefs.js

Applying this prefs.js makes Firefox broken.
Creating a new profile and copying this prefs.js broke private window rendering.

These prefs stand out to me

widget.wayland.opaque-region.enabled
privacy.fingerprintingProtection
layout.css.prefers-color-scheme.content-override
layers.gpu-process.enabled
gfx.webrender.compositor
browser.tabs.inTitlebar

try changing the value of these prefs to default and see if that fixes it.

(In reply to Timothy Nikkel (:tnikkel) from comment #22)

These prefs stand out to me
gfx.webrender.compositor
try changing the value of these prefs to default and see if that fixes it.

See comment 16.

Attached file prefs-nobug.js

My Firefox Developer Edition is no longer broken. (I don't know why)
Attach my current prefs.js.

$ pacman -Qi firefox-developer-edition sway wlroots0.19
Installed From  : cachyos-extra-v3
Name            : firefox-developer-edition
Version         : 148.0b9-1.1
Description     : Fast, Private & Safe Web Browser (Developer Edition)
Architecture    : x86_64_v3
URL             : https://www.mozilla.org/firefox/developer/
Licenses        : MPL-2.0
Groups          : None
Provides        : None
Depends On      : alsa-lib  at-spi2-core  bash  cairo  dbus  ffmpeg  fontconfig  freetype2  gcc-libs  gdk-pixbuf2  glib2  glibc  gtk3  hicolor-icon-theme  libpulse  libx11  libxcb  libxcomposite  libxdamage
                  libxext  libxfixes  libxrandr  libxss  libxt  mime-types  nspr  nss  pango  ttf-font
Optional Deps   : hunspell-en_US: Spell checking, American English
                  libnotify: Notification integration
                  networkmanager: Location detection via available WiFi networks
                  onnxruntime: Local machine learning features such as smart tab groups
                  speech-dispatcher: Text-to-Speech
                  xdg-desktop-portal: Screensharing with Wayland [installed]
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 281.45 MiB
Packager        : CachyOS <admin@cachyos.org>
Build Date      : Sat Jan 31 06:37:07 2026
Install Date    : Sun Feb 1 13:05:02 2026
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

Installed From  : cachyos-extra-v3
Name            : sway
Version         : 1:1.11-1.1
Description     : Tiling Wayland compositor and replacement for the i3 window manager
Architecture    : x86_64_v3
URL             : https://swaywm.org/
Licenses        : MIT
Groups          : None
Provides        : wayland-compositor
Depends On      : cairo  gdk-pixbuf2  libevdev.so=2-64  libinput  libjson-c.so=5-64  libpixman-1.so=0-64  libudev.so=1-64  libwayland-server.so=0-64  libxcb  libxkbcommon.so=0-64  pango  pcre2  ttf-font
                  wlroots0.19  xcb-util-wm
Optional Deps   : brightnessctl: Brightness adjustment tool used in the default configuration
                  foot: Terminal emulator used in the default configuration
                  grim: Screenshot utility used in the default configuration [installed]
                  i3status: Status line generation
                  libpulse: Volume adjustment tool (pactl) used in the default configuration [installed]
                  mako: Lightweight notification daemon [installed]
                  polkit: System privilege control. Required if not using seatd service [installed]
                  swaybg: Wallpaper tool for sway [installed]
                  sway-contrib: Collection of user-contributed scripts for sway
                  swayidle: Idle management daemon
                  swaylock: Screen locker
                  waybar: Highly customizable bar
                  wmenu: Application launcher used in default config
                  xorg-xwayland: X11 support [installed]
                  xdg-desktop-portal-gtk: Default xdg-desktop-portal for file picking [installed]
                  xdg-desktop-portal-wlr: xdg-desktop-portal backend [installed]
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 5.88 MiB
Packager        : CachyOS <admin@cachyos.org>
Build Date      : Tue Jun 10 00:50:44 2025
Install Date    : Wed Jul 2 21:23:14 2025
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : Signature

Installed From  : cachyos-extra-v3
Name            : wlroots0.19
Version         : 0.19.2-2.1
Description     : Modular Wayland compositor library
Architecture    : x86_64_v3
URL             : https://gitlab.freedesktop.org/wlroots/wlroots
Licenses        : MIT
Groups          : None
Provides        : libwlroots-0.19.so=libwlroots-0.19.so-64
Depends On      : libdisplay-info.so=3-64  libglvnd  libinput  liblcms2.so=2-64  libliftoff.so=0-64  libpixman-1.so=0-64  libseat.so=1-64  libudev.so=1-64  libvulkan.so=1-64  libwayland-client.so=0-64
                  libwayland-server.so=0-64  libxcb  libxkbcommon.so=0-64  opengl-driver  xcb-util-errors  xcb-util-renderutil  xcb-util-wm
Optional Deps   : xorg-xwayland: Xwayland support [installed]
                  vulkan-validation-layers: validation layers for the experimental vulkan renderer backend
Required By     : sway
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 1743.13 KiB
Packager        : CachyOS <admin@cachyos.org>
Build Date      : Tue Dec 30 19:38:37 2025
Install Date    : Tue Jan 13 11:32:35 2026
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: