LibWeb: Implement emulated Geolocation position retrieval

This implements enough of the Geolocation spec that it is now possible
for websites to retrieve the current geo position or try to watch for
updates (which currently never happen).

As it stands now, it only returns a single emulated position that points
to San Francisco.
This commit is contained in:
Jelle Raaijmakers
2025-06-22 20:26:03 +02:00
committed by Jelle Raaijmakers
parent 53c35c5d3b
commit 71f03cb785
Notes: github-actions[bot] 2025-06-24 09:35:05 +00:00
11 changed files with 477 additions and 48 deletions

View File

@@ -35,6 +35,9 @@ public:
TimerTask,
JavaScriptEngine,
// https://w3c.github.io/geolocation/#dfn-geolocation-task-source
Geolocation,
// https://html.spec.whatwg.org/multipage/webappapis.html#navigation-and-traversal-task-source
NavigationAndTraversal,