frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The <Geolocation> HTML Element

https://developer.chrome.com/blog/geolocation-html-element
36•enz•1d ago

Comments

troupo•1h ago
Even though the other browser vendors have positive reaction, note how this follows the same pattern Chrome has followed for over a decade:

- scribble on a napkin (explainer)

- ask others for their position

- ship regardless of position or any outstanding issues

- claim it's a new standard

breakingcups•1h ago
I'm not familiar with how this process went in this case, the blog post seems to suggest that feedback from other vendors was incorporated. Can you elaborate on the outstanding issues?
troupo•1h ago
If you follow the links to browser positions, there are still discussions about various concerns that don't seem to have been addressed.
nake89•1h ago
I'm curious to why the polyfill example uses unpkg.com. It is quite unreliable and has broken sites many times.

jsdelivr.com is much more reliable (Multi-CDN, Multi-DNS). Comparison: https://www.jsdelivr.com/unpkg

I am not affiliated in anyway to jsdeliver or unpkg. I simply used to be a user on unpkg.

bflesch•44m ago
Maybe for tracking purposes, because most google-affiliated CDNs are widely blocked and unpkg might be small enough to not immediately raise eyebrows with devs. Unpkg removed their SPONSORS.md file recently, and their README claims to be hosted at fly.io which seems to be behind Cloudflare.
jauntywundrkind•1h ago
Yay! Next up, <usermedia>, which is even more vital a permission to be able to flip on and off!! https://github.com/WICG/PEPC/blob/main/usermedia_element.md https://groups.google.com/a/chromium.org/g/blink-dev/c/jQgYo...

As noted in the intent to ship for both, these are a very specific narrow cases chipped off a bunch broader attempt to offer declarative ways to handle permissions in general, a <permission> element.

Intent-to-ship for geolocation: https://groups.google.com/a/chromium.org/g/blink-dev/c/GL0Bk...

Earlier Page-Embedded Permissions Control (PEPC) proposal: https://github.com/WICG/proposals/issues/113 https://github.com/andypaicu/PEPC/blob/main/explainer.md

The root problem is that permissions right now are super hard to adjust for users (and the way they are exposed to the page is not very good at dealing with users turning permissions on and off either). It's imo very good that we are finally leaving this awful tarpit of design, & moving towards permissions being more fluid. I get that other browsers wanted to be conservative & not do a generic <permission> element, but given how big an improvement this feels like, I sort of wish it'd gotten the pass.

crote•1h ago
I'm a bit confused about how it actually works, and somehow they decided to not include a demonstration video.

If clicking on it does trigger a location permission prompt: what's the point? The "issues" with prompts getting denied can already be solved by web developers doing this themselves, rather than just blindly firing off a request on page load.

If clicking on it does not trigger a location permission prompt: have we forgotten about the Line Of Death [0]? Clicking random website-styled elements should never result in dangerous actions being taken - and leaking the user's physical location is definitely dangerous. Sure, they are trying to restrict the styling, but that's a fools' errant: somebody will just make a browser game where the button looks to refer to something ingame, but actually leak your real-world location.

Besides, who's actually asking for this? Location is perhaps useful for Google Maps-like websites to save you a few seconds of scrolling, but in practice it has mostly been spammy websites trying to get me to "subscribe to local news". Making geolocation easier is the last thing I want in my browser!

[0]: https://textslashplain.com/2017/01/14/the-line-of-death/

rawling•54m ago
> The "issues" with prompts getting denied can already be solved by web developers doing this themselves

Does that mean identifying the browser and trying to tell the user how to go into the browser settings and un-block permission prompts?

jeroenhd•5m ago
You get prompted to supply your location just like normal.

Using geolocation on the web is not something I do daily, but I do use it every now and then. The "locate stores near me" button for looking up store closing times is a lot easier than manually panning across a map.

I find Chrome's current implementation (on Android) to be acceptable as long as measures are taken to prevent clickjacking and such to automate repeating prompts after denying permissions. I expect other browsers like Firefox to be more conservative in showing popups like that.

marginalia_nu•1h ago
This seems pretty sketchy, and I don't really understand what prevents a website from clickjacking.

The original flow is awkward, but also renders the permission element in a location that can't be clickjacked, thus offering some protection from geolocation.

adzm•1h ago
It still pops up a permission confirmation dialog
bflesch•27m ago
It explicitly pops up the confirmation dialog even though user has previously DENIED that geolocation permission dialog. The whole thing is only created because they see "high denial rates" and want to create a way to undo these denials.
jeroenhd•14m ago
The spec doesn't mandate such behaviour, that's up to the user agent to implement.

I've had to deal with plenty of people who couldn't do things like use Jitsi or other web apps because they missed or denied the permission prompt before reading them. The tiny icons in the address bar are barely recognised as clickable items by most users, which is a good thing for toning down annoyances but an awful inconvenience when trying to help people.

In a few cases, the solution to "accidentally dismissed permission popup" was "make everyone else download an app full of trackers".

bflesch•7m ago
Jitsi is about audio / video where this would make more sense, not about geolocation.

Geolocation based on IP address is always done in the background, so they already know what city you are from. But Google wants to have the nice high-precision location from our GPS chips so they can permanently associate the IP address, and available WIFIs/Bluetooth/network devices and all related MAC addresses to a specific building.

And they want to have this specific functionality so they can organically trick non-power-users who got accustomed to the permission popup dialogs into re-sharing their location.

bflesch•31m ago
Main purpose of this seems to offer a way for undoing "previously blocked location access" by the user.

> If a prompt appears unexpectedly, users may block it reflexively or accidentally, unaware that this decision creates a permanent block that is difficult to reverse. This context gap—rather than the feature itself—is a primary driver of high denial rates.

> If a user previously blocked location access when browsing a site (perhaps by accident or lack of context), clicking the element triggers a specialized recovery flow. This helps them re-enable location at the moment when they actually want to use location, without the friction of navigating deep into the browser's site settings.

Google sees "high denial rates" when they try ask users for their geolocation. This is a problem for Google's customers, the advertisers. So they introduce this <geolocation> HTML tag so that dark patterns can be employed to trick users into permanently sharing location even though they have blocked location sharing before.

If the Google engineers who are working on this feature would actually give a damn about users who decided to block geolocation access, this feature would be designed as a "temporary access to geolocation for duration of browser session".

So basically it is all about more tracking and less data privacy.

It's overdue that skilled engineers provide better solutions than this crap, but of course it's much easier to be apolitical and become a millionaire working for a bunch of tech bros who visited Epstein's island.

vachina•17m ago
Yeah they cited Zoom as a successful case study, but why does Zoom need access to my location in the first place? Asking me when I click the <geolocation> button will not change my decision to block.

Also I’m not sure about the argument of context disconnect. Properly designed websites will only ask for (and prompt the location permission modal) when it really needs it.

mkl•12m ago
The Zoom mention was about camera and microphone permission with <permission>:

> Zoom reported a 46.9% decrease in camera or microphone capture errors

jampekka•19m ago
The demo crashes Chrome on Android for me.

https://permission.site/geolocation_element.html

jeroenhd•3m ago
Works on my phone (after enabling the experiment in chrome-flags). Even includes localised permission prompts.
grugdev42•16m ago
I just don't get it. Why is this needed?

But I have no doubt there is a play happening here.

Probably it will change over time to make gathering data easier?

Or something else that makes Google money.

mdhb•6m ago
Try to use some critical thinking here before immediately jumping into conspiracy theories. Maybe start with reading the actual post rather than just seeing Google and geolocation in the same sentence and forming your opinion based on that.
mkl•15m ago
This might be easier than refusing permission every time - it sounds like I can just not click it. I really dislike location permission things. I don't know what location will be shared, I don't use anything that needs a precise location, and I don't ever want to share my actual location. If location permission things showed me a map with where they think I am and let me click a (vague) location to share, I might use them, but currently to find nearest stores or whatever I just type in a postcode or use their map.

Edit: this has prompted me to go find a way to turn off location permission requests in the browser settings. It turns out you can do it under Privacy and Security > Site Settings in Firefox and Chrome.

ivanjermakov•4m ago
> easier than refusing permission every time

Most browsers allow setting default permissions for all sites at once.

mkl•2m ago
Not default permissions, it turns out, but blocking the requests entirely.
senfiaj•4m ago
Is this element in the standard or some form of "embrace, extend, and extinguish"?

Have Taken Up Farming

https://dylan.gr/1768295794
60•djnaraps•1h ago•36 comments

The URL shortener that makes your links look as suspicious as possible

https://creepylink.com/
348•dreadsword•6h ago•62 comments

Raspberry Pi's New AI Hat Adds 8GB of RAM for Local LLMs

https://www.jeffgeerling.com/blog/2026/raspberry-pi-ai-hat-2/
34•ingve•1h ago•26 comments

Claude Cowork exfiltrates files

https://www.promptarmor.com/resources/claude-cowork-exfiltrates-files
660•takira•13h ago•294 comments

The <Geolocation> HTML Element

https://developer.chrome.com/blog/geolocation-html-element
36•enz•1d ago•25 comments

Handy – Free open source speech-to-text app

https://github.com/cjpais/Handy
83•tin7in•4h ago•45 comments

Ask HN: How are you doing RAG locally?

146•tmaly•19h ago•50 comments

Nao Labs (Open-Source Analytics Agent, YC X25) Is Hiring

https://www.ycombinator.com/companies/nao-labs/jobs/KjOBhf5-founding-software-engineer
1•ClaireGz•46m ago

Furiosa: 3.5x efficiency over H100s

https://furiosa.ai/blog/introducing-rngd-server-efficient-ai-inference-at-data-center-scale
165•written-beyond•8h ago•100 comments

New Safari developer tools provide insight into CSS Grid Lanes

https://webkit.org/blog/17746/new-safari-developer-tools-provide-insight-into-css-grid-lanes/
57•feross•9h ago•25 comments

Show HN: Sparrow-1 – Audio-native model for human-level turn-taking without ASR

https://www.tavus.io/post/sparrow-1-human-level-conversational-timing-in-real-time-voice
71•code_brian•15h ago•17 comments

Ask HN: Share your personal website

613•susam•16h ago•1709 comments

Scaling long-running autonomous coding

https://cursor.com/blog/scaling-agents
199•samwillis•11h ago•107 comments

Bubblewrap: A nimble way to prevent agents from accessing your .env files

https://patrickmccanna.net/a-better-way-to-limit-claude-code-and-other-coding-agents-access-to-se...
96•0o_MrPatrick_o0•8h ago•75 comments

Project SkyWatch (a.k.a. Wescam at Home)

https://ianservin.com/2026/01/13/project-skywatch-aka-wescam-at-home/
48•jjwiseman•16h ago•10 comments

The State of OpenSSL for pyca/cryptography

https://cryptography.io/en/latest/statements/state-of-openssl/
139•SGran•11h ago•26 comments

Bare metal programming with RISC-V guide (2023)

https://popovicu.com/posts/bare-metal-programming-risc-v/
24•todsacerdoti•4d ago•2 comments

Ask HN: What did you find out or explore today?

83•blahaj•15h ago•117 comments

Show HN: WebTiles – create a tiny 250x250 website with neighbors around you

https://webtiles.kicya.net/
181•dimden•5d ago•26 comments

Sun Position Calculator

https://drajmarsh.bitbucket.io/earthsun.html
114•sanbor•12h ago•23 comments

SparkFun Officially Dropping AdaFruit due to CoC Violation

https://www.sparkfun.com/official-response
459•yaleman•19h ago•459 comments

Find a pub that needs you

https://www.ismypubfucked.com/
291•thinkingemote•18h ago•232 comments

Show HN: Webctl – Browser automation for agents based on CLI instead of MCP

https://github.com/cosinusalpha/webctl
94•cosinusalpha•19h ago•31 comments

Desperately Seeking Squircles (2018)

https://www.figma.com/blog/desperately-seeking-squircles/
12•kjeetgill•3d ago•3 comments

Crafting Interpreters

https://craftinginterpreters.com/
98•tosh•11h ago•12 comments

Generate QR Codes with Pure SQL in PostgreSQL

https://tanelpoder.com/posts/generate-qr-code-with-pure-sql-in-postgres/
82•tanelpoder•4d ago•7 comments

How can I build a simple pulse generator to demonstrate transmission lines

https://electronics.stackexchange.com/questions/764155/how-can-i-build-a-simple-pulse-generator-t...
49•alphabetter•5d ago•10 comments

MIT Whirlwind I: A High-Speed Electronic Digital Computer (1951) [pdf]

https://dome.mit.edu/bitstream/handle/1721.3/40245/MC665_r12_R-209.pdf?sequence=1&isAllowed=y
18•stmw•5d ago•3 comments

Ask HN: What is the best way to provide continuous context to models?

50•nemath•8h ago•29 comments

ChromaDB Explorer

https://www.chroma-explorer.com/
53•arsentjev•11h ago•3 comments