feat(libSceNKWebKit): implement WKContextGetGeolocationManager and WKGeolocationManager functions #19486
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19486"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by adriaespii on 2026-11-13T12:12:26Z.
What
Implement WKContextGetGeolocationManager alongside WKGeolocationManagerSetProvider, WKGeolocationManagerProviderDidChangePosition, WKGeolocationManagerProviderDidFailToDeterminePosition, and WKGeolocationManagerProviderDidFailToDeterminePositionWithErrorMessage.
WKContextGetGeolocationManager returns the context's host WKGeolocationManager instance (created lazily on the host ProcessPool), making the manager reachable by guest titles from a WKContextRef.
Tested
Checklist
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T04:19:17Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
e466f1acf64550c0e9f73c17294603e49920ebebusing the prepared diff andrepo_read.py. No build or tests were run; the Windows build and unit tests are author-reported.Results
Findings
Blocking
None.
Non-blocking
WKGeolocationManagerProviderDidChangePositionignores a null position reference and leaves the prior position intact (core/libs/prx/libSceNKWebKit/src/GeolocationManager.cpp:28-30). Please confirm that this matches the intended provider API behavior; the current test only checks that the call does not throw.docs/dev/debt/changes/nkwebkit-context-geolocation-manager.md:5). This limits the implementation to manager access and state bookkeeping.Not verified
core/libs/prx/libSceNKWebKit/Export.cppandcore/libs/prx/libSceNKWebKit/include/InventoryExports.hppwas excluded because each is too large for the review folder. The diff shows the old stubs removed, and repository searches did not find the new provider names inExport.cpp; export routing and ABI registration therefore remain unverified.core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp,core/libs/prx/libSceNKWebKit/src/Configuration.hpp,core/libs/prx/libSceNKWebKit/src/GeolocationManager.cpp,core/libs/prx/libSceNKWebKit/src/Types.hpp,core/libs/prx/libSceNKWebKit/tests/GeolocationManager.cpp,docs/dev/debt/changes/nkwebkit-context-geolocation-manager.md, and targeted ranges incore/libs/prx/libSceNKWebKit/src/Object.hpp,core/libs/prx/libSceNKWebKit/src/Context.cpp,core/libs/prx/libSceNKWebKit/src/TypeIds.cpp, andcore/libs/prx/libSceNKWebKit/CMakeLists.txt.core/libs/prx/libSceNKWebKit/Export.cppandcore/libs/prx/libSceNKWebKit/include/InventoryExports.hpp.To get this to a good state
Nothing is required. Optional: confirm the null-position behavior and clarify the limits of provider callback and service integration in the PR description.
Imported from boykopovar/AnyPS5. Originally posted by malekaifa on 2026-11-23T18:02:36Z.
Review: CHANGES_REQUESTED
Exact-head blocker on
e466f1acf64550c0e9f73c17294603e49920ebeb:WKGeolocationManagerProviderDidChangePositionsilently returns whenpositionRef == nullptr. The pinned WebKit C API (WKGeolocationManager.cppat80f77e94c63ee7202eec3d4b5b1a021dd89011ba) passestoImpl(positionRef)directly toWebGeolocationManagerProxy::providerDidChangePosition, and that function immediately dereferencesposition->corePosition(). So null is not a successful no-op in the cited source. In this project, the non-null path already goes throughNKWebKit::Cast, which is the appropriate place to preserve invalid-reference handling. Please remove the silent null return (or provide console evidence that the PS5 module intentionally diverges) and add a null-position regression that proves the chosen behavior while leaving prior state unchanged on failure. AI-assisted: yesImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T09:18:05Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
59fc913f98d6214a44b37297fd83151ce7049d32againstmain. No build or tests were run. Read the prepared description, commits, manifest, diff, and the full text of all changed files exceptExport.cpp; inspected its relevant diff hunk. The reader reportedExport.cppas too large to include.Results
Findings
Blocking
None.
Non-blocking
WKGeolocationManagerSetProviderstores the provider base, but does not invoke provider callbacks, and the manager is not integrated with a WebKit geolocation service. The debt entry documents these limits. If this PR is meant to enable title geolocation end to end, that behavior remains to be implemented. (GeolocationManager.cpp, debt entry)Not verified
The author reports a Windows 11 Release build, convention check, and unit tests; these were not run in this review. The full
Export.cpptext was not read. All other changed files listed in the manifest were read.To get this to a good state
Nothing is required. Optional: follow up with callback invocation and WebKit geolocation service integration if end-to-end geolocation is in scope.
Imported from boykopovar/AnyPS5. Originally posted by malekaifa on 2026-11-30T00:37:48Z.
Review: APPROVED
Re-reviewed exact head
59fc913f98. The earlier null-position blocker is fixed: WKGeolocationManagerProviderDidChangePosition now routes the reference through NKWebKit::Cast, and the regression test asserts the null case throws without mutating stored position/error state. I reviewed the current implementation, export routing changes, tests, and debt fragment; I found no new blocking source issue. Exact-head hosted checks are terminal with no failures (Windows, eligibility, report, library-portability, conventions, labels, and PR checks succeeded; targeted jobs are skipped as expected). Integration note: this head is currently 2,681 commits behind main, although GitHub still reports it mergeable/clean, so refresh policy is a separate merge-queue decision.