Bug 1224995

Summary: Native Firefox package on Plasma Wayland runs the KDE File Picker under XWayland, not respecting HDPI scaling
Product: [openSUSE] openSUSE Tumbleweed Reporter: Ali F. <radicalite>
Component: FirefoxAssignee: Factory Mozilla <factory-mozilla>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: pavel.urusov
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Filepicker comparsion between Native Firefox on TW and Flatpak Firefox

Description Ali F. 2024-05-22 12:58:57 UTC
Created attachment 875025 [details]
Filepicker comparsion between Native Firefox on TW and Flatpak Firefox

When using the file picker from the native Firefox package, the file picker runs in XWayland, this isn't noticeable on non HiDPI displays unless there's a HiDPI display connected, or are simply using a HiDPI screen as the only screen, then this becomes instantly noticeable. 

This behaviour isn't consistent with applications from the rest of the system (moving aside VLC, but the app itself runs entirely under XWayland by default...), as they run the file picker under Wayland, following the correct scaling setting. the Firefox flatpak also runs the file picker under Wayland correctly (via Portal). This behaviour also doesn't happen with the native Firefox package on TWGNOME, running the GTK file picker under Wayland with respect to scaling, so I assume this happens from the OpenSUSE KDE patches added to Firefox?

Install is a fresh TWKDE install. Comparison in image 

Operating System: openSUSE Tumbleweed 20240520
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.9.1-1-default (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6267U CPU @ 2.90GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Graphics 550
Manufacturer: Apple Inc.
Product Name: MacBookPro13,2
System Version: 1.0 

Display config is 
2560x1600@175%@60hz (Built-in Screen) set to left
1920x1080@100%@120hz (Acer Technologies VG242Y) set to right, set as primary display.
Comment 1 Pavel Urusov 2024-06-05 11:29:45 UTC
I am also affected by this issue, it seems libqt5-qtwayland is required to get the file picker in Firefox to use Wayland: https://bugzilla.suse.com/show_bug.cgi?id=1226002
Comment 2 Ali F. 2024-06-05 12:04:41 UTC
(In reply to Pavel Urusov from comment #1)
> I am also affected by this issue, it seems libqt5-qtwayland is required to
> get the file picker in Firefox to use Wayland:
> https://bugzilla.suse.com/show_bug.cgi?id=1226002

This worked! thank you a lot for finding this out!! now onwards to trying to get SDDM to run in wayland on TW... 

Either way - confused on why such a dep is missing in the first place from a KDE Plasma desktop, I personally don't even have the x11 session installed, it's weird to see these papercuts on OpenSUSE.
Comment 3 hui 2024-06-27 12:23:08 UTC
*** Bug 1226002 has been marked as a duplicate of this bug. ***