LWN.net Logo

No problem...

No problem...

Posted Nov 9, 2011 16:09 UTC (Wed) by khim (subscriber, #9252)
In reply to: Actually that's the reason... by mathstuf
Parent article: Firefox 8 released

Sorry, I messed up. I meant mouse lock, not mouse capture. Here is the doc.

If I remember correctly you must allow it explicitly every time website asks for it, but Chrome team thinks how to make it less tedious (probably some kind of "sticky acceptance"). A lot of games (both HTML5 and NaCl) want mouse lock, thus I'm not sure it's good idea to disable it (although you may not care about games).


(Log in to post comments)

No problem...

Posted Nov 9, 2011 16:32 UTC (Wed) by mathstuf (subscriber, #69389) [Link]

I don't particularly care about games. That pretty much leaves just malicious use of it for me. I'm also unsure of how it would work with a modal browser.

The fancy things that are done in HTML5 aren't that spectacular to me which is why I build my own webkitgtk with most of it disabled. Some things just don't need to happen at all. For example, Engine Yard[1] spikes a CPU after a few focus events on it so that it can waste time and energy animating a silly island or whatever making the site basically useless (though I don't do Ruby at all, if any site I *did* use ended up doing something like that, it's an easy way to get me to search for something else).

[1]http://www.engineyard.com/

It's your choice, of course...

Posted Nov 9, 2011 16:48 UTC (Wed) by khim (subscriber, #9252) [Link]

The fancy things that are done in HTML5 aren't that spectacular to me

Well, HTML5 is mostly about webapps these times and if you don't want and don't need webapps - it's your choice, but then it should not matter to you if someone checks version string or UA of browser, or whatever.

though I don't do Ruby at all, if any site I *did* use ended up doing something like that, it's an easy way to get me to search for something else.

It's your choice. Thankfully few users feel like this so they can usually be ignore. BTW I've checked the Engine Yard: yeah, what it does is completely unnecessary but it does not waste all that many resources and does not waste any when you switch to the other tab so I'm not sure I want to start some kind of jihad which will waste a lot of my own human time and energy to save few percents of battery life on my laptop.

It's your choice, of course...

Posted Nov 9, 2011 17:03 UTC (Wed) by mathstuf (subscriber, #69389) [Link]

> it does not waste all that many resources

Switching focus 4 times incurs a 3 second delay on the whole window (input, clicks, whatever) while the CPU goes to 100% (Core i7@1.8GHz) emptying the event queue (not to mention that the animation doesn't work while the event queue is being processed). More switches seems to be somewhere near quadratic. Luckily I don't do much mousing around, so focus is unlikely to be a trigger (scrolling is usually a heavy hitter when there's a social bar or whatever hanging around).

It's your choice, of course...

Posted Nov 9, 2011 17:07 UTC (Wed) by mathstuf (subscriber, #69389) [Link]

> Switching focus 4 times incurs a 3 second delay

Shouldn't do the such tests while make -j8 is going. It's closer to 4 times is a 1 second delay, but it's still feels quadratic if it falls behind at all.

This is strage: in my case it only needs few seconds to settle...

Posted Nov 9, 2011 17:25 UTC (Wed) by khim (subscriber, #9252) [Link]

Well, yes, it's not the best design you can imagine, but I think the idea that you can fix it in browser is wrong: if it bothers you that much then just don't visit the site. You don't try to fix normal programs with SELinux policies, why do you want to try to do that with webapps?

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds