Bug 495727

Summary: Many Firefox false positive cases are blocking sleep and screen locking
Product: [Unmaintained] Powerdevil Reporter: Xavier Corredor Llano <xavier.corredor.llano>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: arvamircea, m.kurz, natalie_clarius
Priority: NOR    
Version First Reported In: 6.2.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Firefox false positive instances blocking sleep

Description Xavier Corredor Llano 2024-11-02 19:36:16 UTC
Created attachment 175475 [details]
Firefox false positive instances blocking sleep

SUMMARY
Firefox video playing from youtube, instagram or any source block the sleep and screen locking correctly but (I think) they never removed, and after some hours using Firefox and even if no video is playing, there are many Firefox false positive cases are blocking sleep and screen locking (see the attacment)

STEPS TO REPRODUCE
1. Open firefox
2. Reproduce any video from any source
3. Close the tab, the Firefox video playing is still present in the Power and Battery icon tray

OBSERVED RESULT
Many Firefox false positive cases are blocking sleep and screen locking when nothing is playing

EXPECTED RESULT
Firefox should be blocking sleep only when is playing something, and should be removed when finished

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.6.58-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 6 × AMD Ryzen 5 4500U with Radeon Graphics
Memory: 30.8 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Comment 1 CocolinoFan 2024-11-03 16:42:37 UTC
Happens to me as well, since upgrading to Plasma 6 from Plasma 5.
Firefox prevents monitors from turning off. There is an icon on the bottom right of the screen "Power Management", it shows Firefox is preventing sleep even tho' there is no Firefox running.
Comment 2 CocolinoFan 2024-11-03 16:45:43 UTC
SOFTWARE/OS VERSIONS
Operating System: Kubuntu oracular 24.10 x86_64
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.6.2
Kernel Version: 6.11.0-9-generic
Graphics Platform: Wayland
Processors: Intel i7-7700K (8) @ 4.50 GHz
Memory: 31.30 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1080
Comment 3 CocolinoFan 2024-11-03 16:53:48 UTC
I think is the same issue as in this earlier bug report: https://bugs.kde.org/show_bug.cgi?id=491922
I think is safe to mark this bug report as Duplicate.
Comment 4 CocolinoFan 2024-11-03 16:54:08 UTC

*** This bug has been marked as a duplicate of bug 491922 ***