Bug 2216932

Summary: Firefox gets into a status where all keystrokes are delayed by 20+ seconds in all windows
Product: [Fedora] Fedora Reporter: Albert Flügel <af>
Component: firefoxAssignee: Gecko Maintainer <gecko-bugs-nobody>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: erack, gecko-bugs-nobody, jhorak, klaas, rstrode, stransky
Target Milestone: ---Keywords: Desktop, Regression, Upgrades
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-18 08:29:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Albert Flügel 2023-06-23 09:56:26 UTC
When i use firefox, after a while, any key typing (not mouse moving or clicking) gets delayed by 20 seconds or more. No other running program is affected meanwhile (e.g. thunderbird, shell window). The issue can only be fixed by restarting firefox

Reproducible: Always

Steps to Reproduce:
1. start firefox
2. use it for some time, usually longer than 10 minutes

Actual Results:  
For typing, firefox is hardly usable anymore e.g. while reporting a bug in this bugzilla

Expected Results:  
firefox remains usable

firefox-114.0.2-1.fc38.x86_64

Comment 1 Albert Flügel 2023-06-23 09:58:13 UTC
Additional info: firefox' CPU utilization looks normal while the problem is visible. So it should not be busy i guess. Pasting text with the middle mouse button works normally as well. Just typing does not.

Comment 2 Martin Stransky 2023-06-26 08:59:51 UTC
Can you please run on terminal with MOZ_LOG="Widget:5" env variable like:

MOZ_LOG="Widget:5" firefox 2>&1 | grep Key

and check if key events are logged in time or are delayed?
Thanks.

Comment 3 Albert Flügel 2023-07-07 13:41:29 UTC
Cannot reproduce it currently. I have wrapped the firefox program, so i always get key events logged, when firefox is started.
Please feel free to close this issue for now. When it comes back, i'll reopen.

Comment 4 Martin Stransky 2023-07-18 08:29:44 UTC
Okay, Thanks.