Open Bug 1736424 Opened 5 years ago Updated 29 days ago

Firefox prevents screen lock when closing laptop lid in KDE Plasma

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 93
defect

Tracking

()

UNCONFIRMED

People

(Reporter: kari, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

(Whiteboard: gtk-severity-sweep-2026-10)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0

Steps to reproduce:

Firefox is open. I close lid. Then, after some minutes I open it again.

Actual results:

The screen is not locked. This happens only when Firefox is open.

Expected results:

The screen should be locked. It is a major security risk if the screen lock does not work. This is related to Firefox and it does not happen when only Edge or Chrome is open.

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.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Which page is opened and focused in Firefox, and is Firefox having the window focus? Does this also happen when Firefox is not having the window focus? Have you reported this to your distribution if your distribution's screen lock does not work as expected?

Flags: needinfo?(kari)

(In reply to Andre Klapper from comment #2)

Which page is opened and focused in Firefox, and is Firefox having the window focus? Does this also happen when Firefox is not having the window focus? Have you reported this to your distribution if your distribution's screen lock does not work as expected?

This happens for example when https://yle.fi/uutiset is open and has focus. It happens also when this error page is open and has focus, but here when I open the lid, the page shows, but after about 20 seconds the computes goes to sleep.

Without focus, the computer goes to sleep and locks as it should.

No, I have not reported this to Debian/KDE, because this happens only with Firefox.

Flags: needinfo?(kari)
Blocks: gtk-kde
Priority: -- → P3

I found an explanation to this behaviour. It is related to timing of touch screen and lid close events. When the lid is closed fast, it causes also a touch screen event that disturbs the suspend. When the lid is closed carefully, no touch screen event is created and the computer suspends normally. However, I do not understand why this happens only with Firefox.
I have solved this by disabling the touch screen, which I do not use much.

Do you still reproduce ? I'm not even sure this should qualify as a bug on our side given comment 4

Flags: needinfo?(kari)
Severity: -- → S3
Whiteboard: gtk-severity-sweep-2026-10
You need to log in before you can comment on or make changes to this bug.