💾 Archived View for bbs.geminispace.org › u › wasolili › 21580 captured on 2024-12-17 at 15:53:19. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Comment by 🐦 wasolili

Re: "Are we giving too much power to the web browsers?"

In: u/ResetReboot

for this specific case, it may not be due to javascript (though javascript can be used to do this). browsers will prevent locking if a video is considered to be playing (which seems reasonable since it would be annoying for your screensaver to turn on due to inactivity when you're watching something)

if you go to about:config and search for "wake" you'll see options for disabling it.

🐦 wasolili [flaired user]

Nov 06 · 6 weeks ago

10 Later Comments ↓

🦂 zzo38 · Nov 06 at 20:14:

Are we giving too much power to the web browsers? Yes. The feature you mentioned is a useful one, but one that the user ought to be allowed to configure.

With many features that web browsers will have, more user commands (keyboard commands, menus, configuration files, etc) to control them should be needed too. Unfortunately, many things require the document to contain them (or JavaScript codes in the document) to work, rather than being specified by user commands which would be better, and the design isn't made very well for such things (instead they tend to remove menus and user options, which doesn't help). Many JavaScript functions and CSS commands will then become unnecessary, if designed better.

🚀 stack · Nov 06 at 20:39:

I find it disturbing that Firefox (and derivatives) launch dozens of worker processes just in case. The assumption is that the browser is the most important process in the world and any unused memory is wasted unless the browser uses it. For me it's pretty much the opposite.

It's so bad that when I do PS I can't see anything but browser processes generally.

🦉 ResetReboot [OP] · Nov 08 at 08:31:

Hey @wasolili I went and checked the config and turns out it is another pesky Web API that works both in Firefox and Chrome. So yeah, any JS can go and request that your computer never sleeps for whatever reason, but it is not something your browser does itself.

🐙 norayr · Nov 09 at 00:27:

one solution could be to suspend the tabs (there are extensions, that is useful to save ram and not run js when you don't need the tab).

what is very cool about firefox and its forks is that it remembers which window was in which workspace. i needed that feature a lot.

🚀 stack · Nov 09 at 00:40:

On Android the firefox UX is a complete mess -- there are tabs, bookmarks, recently-accessed pages, recently-closed tabs and god knows what else all mixed up. I never know when I'll see what. There are 42 tabs open for some reason on my phone, and I am afraid to touch them because I'd hate to have to actually type in URLs or search again.

🐙 norayr · Nov 09 at 23:23:

i just had a thought - how does browser prevent locking?

i use gentoo and i remember mplayer has xscreensaver flag. if it is enabled, mplayer is able to stop xscreensaver when it is running.

what that 'flag' means is that mplayer has this compiltation option. its configure script is able to detect presence of xscreensaver, or it is possible to explicitly tell mplayer to not use xscreensaver, and not have that functionality.

i wonder if firefox has such a flag. or, which screensaver/lock screen do you use? i guess from your desktop environment. is it gnome? it has its own screensavers.

🐙 norayr · Nov 09 at 23:29:

— gentoo firefox flags

i can only see gnome shell integration.

i guess if you use xscreensaver as your locking mechanism this won't happen.

🐦 wasolili [...] · Nov 10 at 04:11:

@ResetReboot yeah there's a javascript api to let pages prevent locking which can be disabled with the `dom.screenwakelock.enabled` setting. there's a separate feature where videos prevent locking that can be disabled with the `media.video-wakelock` setting.

🐙 norayr · Nov 11 at 11:45:

basically they can tell the program which locks to not lock. And the program may listen instead to you.

🦉 ResetReboot [OP] · Nov 20 at 12:03:

@norayr I'm using Cinnamon, ditched Gnome 3 after a couple upgrades made it unusable thanks to funky deps on my Debian and now I feel quite comfortable in it. Anyway, yeah, as @wasolilli commented I can disable the web API, but if I watch some long video, I do actually want that.

I guess the solution is to close the damn browser while I'm away from the computer, no need to have that window to remote code execution open while I'm not looking xD

Original Post

🦉 ResetReboot

Are we giving too much power to the web browsers? — Let's start with the basics. I recently found out that locking my screen in my desktop (Debian Linux) wouldn't suspend the two screens I have attached to it. It should, since the configuration states it should be the case. I checked it and it was correct. I even did the usual waltz of changing the settings to return to the original ones in case something got overwritten. Then, the next step was to start looking over the Web to try to find a...

💬 11 comments · 1 like · Nov 06 · 6 weeks ago · #rant #WorldWideWeb