I don't see anybody interested in actually fixing this.

I'll try to add a g_timeout_add_seconds timer of 60 seconds when
`mUninhibitAttempts` reach zero. After the timer, I will reset
`mUninhibitAttempts` and try again. Also I'll remove the `sWakeLockType
= Unsupported` logic, I see no benefit in not just "trying again after n
seconds".

I have a fairly good CPU (Amd Ryzen 7 8700G + 32GB RAM) for build and
testing, still this is my second time hacking the firefox source code.
I'll appreciate any help

So my plan is:

1. Removing "Unsupported" state.
2. Introducing a "cooldown timer" when uninhibiting fails multiple times and 
add a retry logic.
3. I'll try to scope it specifically for video playback, or generally by topic.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2047262

Title:
  Firefox stopped inhibiting screensaver on video playback

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/2047262/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to