feat(libSceNKWebKit): implement Geolocation and Notification permission request calls #15176
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15176"
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-02T20:02:02Z.
What
Implement Geolocation and Notification permission request calls in
libSceNKWebKit:WKGeolocationPermissionRequestAllow: sets request state to allowed.WKGeolocationPermissionRequestDeny: sets request state to denied.WKNotificationPermissionRequestAllow: sets request state to allowed.WKNotificationPermissionRequestDeny: sets request state to denied.The
GeolocationPermissionRequestandNotificationPermissionRequesthost objects track the permission state in memory; null or wrong-type references throwstd::invalid_argumentviaNKWebKit::Cast.Tested
check_conventions.py --base origin/mainpassed. Added test coverage inBase.cppcovering pending, allowed and denied state transitions, and null reference exception handling.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T20:10:32Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The permission exports only mutate state that no runtime code consumes, and this branch conflicts with four open WebKit PRs without a declared landing order.
What I ran
Reviewed all 8 changed files at head
39817b04a53c24dc3402970c6a458e64e0122f43against base096c45570f516de76a43bbe1b97781381c84f55f, which was also currentmainduring review. The individual preview onto that base was clean. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. No local build or CTest was run.I manually inspected the implementation, state types, test assertions, and CMake test-source glob. I also searched the exact head for all references to the new permission-request state; outside the test, only the declarations and setter functions reference it.
Results
mainis clean.Precheck report and raw outputs
Precheck report table (verbatim):
The precheck deliberately does not configure, build, or compile AnyPS5.git diff --check 096c45570f516de76a43bbe1b97781381c84f55f...39817b04a53c24dc3402970c6a458e64e0122f43/usr/bin/python3 tools/check_conventions.py --base 096c45570f516de76a43bbe1b97781381c84f55f --head 39817b04a53c24dc3402970c6a458e64e0122f43 --title feat(libSceNKWebKit): implement Geolocation and Notification permission request calls --body /tmp/anyps5-pr-precheck-15176/pr-body.md/usr/bin/python3 tools/pr_abi_audit.py --base 096c45570f516de76a43bbe1b97781381c84f55f --head 39817b04a53c24dc3402970c6a458e64e0122f43 --jsonNo changed Python implementation files.No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.No changed test_*.py files./usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15176 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck-15176/stackNot run: C++ tests need exact-head binaries, which require a build; the precheck does not build./usr/bin/python3 /tmp/anyps5-pr-precheck-15176/head-39817b04a53c-2371a4e4/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck-15176/head-39817b04a53c-2371a4e4 --json core/libs/prx/libSceNKWebKit/Export.cpp core/libs/prx/libSceNKWebKit/include/Api.hpp core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp core/libs/prx/libSceNKWebKit/src/Configuration.hpp core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp core/libs/prx/libSceNKWebKit/tests/Base.cpp docs/dev/debt/libSceNKWebKit.mdNo changed Python test module in tools/ can be run as a no-build base-source control.Precheck command output:
ABI audit command output:
Individual current-main preview output:
Pairwise merge-tree output from the review command:
Exact-head
git grepoutput:Hosted check output:
Negative control
Findings
Blocking
AllowedorDeniedto a field on a private host object. The exact-head search found no non-test code that reads this field, so the calls do not deliver a decision to a manager, callback or other consumer. The tests assert only that the private field changed. In the upstream WebKit C API, the geolocation calls forward toallow()/deny(), and the notification calls forward todidReceiveDecision(true/false). Please connect these exports to a real decision handler and add a test for the observable resolution; if there is no general handler yet, keep the exports throwing rather than silently accepting a decision that is discarded.fcb36214af0fe7dede6707fd940fb348a3d4c5f6), #15173 (7715d1de92b206dedf96075f43ac1454f1a856b9), #15174 (360adcb1b4b2efdec6d9c78beef118de080ae8c4) and #15175 (3ae71a60432f41d5d1370727a7e9e4fcf9741deb) conflict indocs/dev/debt/libSceNKWebKit.md; with #15173 inConfiguration.hpp,tests/Base.cppand the debt file; with #15174 in the test and debt files; and with #15175 in the test and debt files. The checklist currently saysDepends on: none. Please agree an order with the affected PR authors, record the corresponding dependencies consistently, and resolve the conflicts on the branch that lands second.Non-blocking
Allowexports, but not wrong-type references or null input for theDenyexports. Adding those cases would cover the stated invalid-reference behavior more directly.Sources
Not verified
I did not build or run C++ tests, local CTest, or a negative control. The six hosted checks were still queued at the review snapshot; their completion and result remain unverified here.
To get this to a good state
Implement a consumed permission-decision path, coordinate and declare the overlap order, and add coverage for observable resolution and invalid references. On the resulting head I will rerun the diff, conventions, ABI and dependency/merge checks, then check the hosted build and tests before reconsidering approval.