top | item 47169939 (no title) andrewflnr | 3 days ago This is something that browsers should solve. discuss order hn newest kg|3 days ago Unfortunately, browsers "solved" this by intentionally adding APIs that enable websites to do this to you. It wasn't possible to abuse users this way until the relevant APIs for detecting focus and occlusion were added. :( titzer|3 days ago It's a huge conflict of interest for an ads company to develop a browser, let alone the browser with...(checks notes)...77% market share. roywiggins|3 days ago https://github.com/mozilla/video-bg-play load replies (1) thih9|3 days ago Both could work. The API could be permission based. E.g. without consent the app would always see itself as in focus. sunaookami|2 days ago So one could stub out https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibi... or fake it via an extension (there are actually some already that disable the API by injecting JS that always returns "visible", f.e. https://addons.mozilla.org/firefox/addon/disable-page-visibi...). Don't know if there are more. xenadu02|3 days ago But just use Chrome! Our website only works in Chrome. Everyone should just be using Chrome. What's wrong with a Chrome monoculture?:) BenjiWiebe|3 days ago Open a new browser window just for that tab. Presto, that tab is always active, even if that window is underneath another window.In Firefox you can drag'n'drop a tab "out" of the tab bar, which will move it to a new window. Might work in other browsers too. benhurmarcel|2 days ago Browsers are funded by ads
kg|3 days ago Unfortunately, browsers "solved" this by intentionally adding APIs that enable websites to do this to you. It wasn't possible to abuse users this way until the relevant APIs for detecting focus and occlusion were added. :( titzer|3 days ago It's a huge conflict of interest for an ads company to develop a browser, let alone the browser with...(checks notes)...77% market share. roywiggins|3 days ago https://github.com/mozilla/video-bg-play load replies (1) thih9|3 days ago Both could work. The API could be permission based. E.g. without consent the app would always see itself as in focus. sunaookami|2 days ago So one could stub out https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibi... or fake it via an extension (there are actually some already that disable the API by injecting JS that always returns "visible", f.e. https://addons.mozilla.org/firefox/addon/disable-page-visibi...). Don't know if there are more. xenadu02|3 days ago But just use Chrome! Our website only works in Chrome. Everyone should just be using Chrome. What's wrong with a Chrome monoculture?:)
titzer|3 days ago It's a huge conflict of interest for an ads company to develop a browser, let alone the browser with...(checks notes)...77% market share.
thih9|3 days ago Both could work. The API could be permission based. E.g. without consent the app would always see itself as in focus.
sunaookami|2 days ago So one could stub out https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibi... or fake it via an extension (there are actually some already that disable the API by injecting JS that always returns "visible", f.e. https://addons.mozilla.org/firefox/addon/disable-page-visibi...). Don't know if there are more.
xenadu02|3 days ago But just use Chrome! Our website only works in Chrome. Everyone should just be using Chrome. What's wrong with a Chrome monoculture?:)
BenjiWiebe|3 days ago Open a new browser window just for that tab. Presto, that tab is always active, even if that window is underneath another window.In Firefox you can drag'n'drop a tab "out" of the tab bar, which will move it to a new window. Might work in other browsers too.
kg|3 days ago
titzer|3 days ago
roywiggins|3 days ago
thih9|3 days ago
sunaookami|2 days ago
xenadu02|3 days ago
:)
BenjiWiebe|3 days ago
In Firefox you can drag'n'drop a tab "out" of the tab bar, which will move it to a new window. Might work in other browsers too.
benhurmarcel|2 days ago