I htink it's more related to HTML video element than Gtk linux backend: https://searchfox.org/mozilla-central/rev/3aaca0a12a2d1463da54933bdbdae2f06fead06f/dom/html/HTMLVideoElement.cpp#420 Gtk specific lock: https://searchfox.org/mozilla-central/rev/3aaca0a12a2d1463da54933bdbdae2f06fead06f/widget/gtk/WakeLockListener.cpp#511 Windows lock: https://searchfox.org/mozilla-central/rev/3aaca0a12a2d1463da54933bdbdae2f06fead06f/widget/windows/nsAppShell.cpp#175 We can adjust Linux lock to add 'isNonDisplayLock' from Windows but fullscreen/normal video playback is handled here: https://searchfox.org/mozilla-central/rev/3aaca0a12a2d1463da54933bdbdae2f06fead06f/dom/html/HTMLVideoElement.cpp#400 and it's shared by all platforms.
Bug 1749187 Comment 4 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
I think it's more related to HTML video element than Gtk linux backend: https://searchfox.org/mozilla-central/rev/3aaca0a12a2d1463da54933bdbdae2f06fead06f/dom/html/HTMLVideoElement.cpp#420 Gtk specific lock: https://searchfox.org/mozilla-central/rev/3aaca0a12a2d1463da54933bdbdae2f06fead06f/widget/gtk/WakeLockListener.cpp#511 Windows lock: https://searchfox.org/mozilla-central/rev/3aaca0a12a2d1463da54933bdbdae2f06fead06f/widget/windows/nsAppShell.cpp#175 We can adjust Linux lock to add 'isNonDisplayLock' from Windows but fullscreen/normal video playback is handled here: https://searchfox.org/mozilla-central/rev/3aaca0a12a2d1463da54933bdbdae2f06fead06f/dom/html/HTMLVideoElement.cpp#400 and it's shared by all platforms.