Copy and Paste Freeze UI on Wayland
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: matrix.org, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
41.64 KB,
text/plain
|
Details |
Using Firefox on Wayland the entire browser freezes for a couple of seconds when copying or pasting a large amount of data (such as an image).
Firefox should not lock up the UI in this scenario. Additionally a couple of seconds is extraordinarily long for 6MiB of image. (Although there may be some re-compression going on.
Ideally no tab would freeze, however definitely it shouldn't be the entire browser. Sometimes the system "this application is not responding" dialog pops up.
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Reporter | ||
Comment 3•4 years ago
|
||
Reporter | ||
Updated•4 years ago
|
Comment 4•3 years ago
|
||
Can you try latest nightly with async clipboard enabled (https://bugzilla.mozilla.org/show_bug.cgi?id=1725149#c5)?
Thanks.
Reporter | ||
Comment 5•3 years ago
|
||
I tested nightly with async clipboard and the browser no longer locks up on paste 🎉
It still takes a long time to paste (roughly the same as stable) but at least the browser doesn't lock up. So I think we can consider this done.
Comment 6•3 years ago
|
||
Can you please use firefox profiler (https://profiler.firefox.com/) to get performance data while long paste?
Thanks.
Reporter | ||
Comment 7•3 years ago
|
||
https://profiler.firefox.com/public/7ssm05xha11e4cr3zrfcdcvx6b933dbzyyysjtr
It looks like a lot of the time is spent in LZ4 which I guess is because the source image is a JPEG and Firefox always copies PNG to the clipboard.
Comment 8•3 years ago
|
||
I see. Yes, Firefox puts more than one image format to clipboard, I see:
image/bmp
image/jpeg
image/png
I wonder if it's possible to disable such image conversions and just paste what we have.
Description
•