I am a bit confused of how does the "sharing your location" feature works in browsers. Assume I am using Chrome, I have the following questions:
When a website prompt the pop-up request "this website want to know your location", when I click "allow", what will the browser do?
If I click "do not allow", can the website still obtain my IP address and use it to locate me? My assumptions are if a web server is virtual hosted on a cloud server, my IP address will be intercepted at the front end and may or may not be forwarded to the origin server.
If the IP can nontheless be known by the origin server and use it to locate me, I wonder how much practical value does the "sharing your location" option have (well I understand in many case IP may not be accurate, but in many other case it is)?
In the case that my IP is not accurate and can't be used to locate me, how would "allowing the website to access my location" make the website know my location?
Revision: So I knew the basic drills such as GPS data will help on more accurate location, and how IP can be obfuscated either intentionally or unintentionally. I think my question boils down to, what extra information does Google have, such that enabling and disabling "share my location" can really make a difference: assuming I use a brand new desktop, is it true that if my IP is inaccurate, then Google can't know where I am either, if my IP is accurate, the website gonna know no matter I choose to share my location or not?