feat(libSceNKWebKit): implement Geolocation and Notification permission request calls #15176

Merged
adriaespii merged 1 commit from upstream-pr/15176 into main 2026-11-07 03:53:25 +00:00
adriaespii commented 2026-11-02 20:02:02 +00:00 (Migrated from github.com)

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 GeolocationPermissionRequest and NotificationPermissionRequest host objects track the permission state in memory; null or wrong-type references throw std::invalid_argument via NKWebKit::Cast.

Tested

check_conventions.py --base origin/main passed. Added test coverage in Base.cpp covering pending, allowed and denied state transitions, and null reference exception handling.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5126594623 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15176). Originally posted by [adriaespii](https://github.com/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 `GeolocationPermissionRequest` and `NotificationPermissionRequest` host objects track the permission state in memory; null or wrong-type references throw `std::invalid_argument` via `NKWebKit::Cast`. ### Tested `check_conventions.py --base origin/main` passed. Added test coverage in `Base.cpp` covering pending, allowed and denied state transitions, and null reference exception handling. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-02 20:10:32 +00:00 (Migrated from github.com)

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 39817b04a53c24dc3402970c6a458e64e0122f43 against base 096c45570f516de76a43bbe1b97781381c84f55f, which was also current main during 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.

git diff --check 096c45570f516de76a43bbe1b97781381c84f55f...39817b04a53c24dc3402970c6a458e64e0122f43
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15176 --output-dir /tmp/anyps5-pr-precheck-15176
python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 096c45570f516de76a43bbe1b97781381c84f55f --head 39817b04a53c24dc3402970c6a458e64e0122f43 --json | python3 -c 'import json,sys; d=json.load(sys.stdin); print("status: " + d["status"]); print("symbols: " + str(len(d["symbols"]))); print("findings: " + str(len(d["findings"])))'
python3 tools/pr_stack_check.py 15176 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck-15176/stack
git fetch https://github.com/boykopovar/AnyPS5.git refs/pull/15176/head:refs/review/pr-15176-20261102
git fetch https://github.com/boykopovar/AnyPS5.git refs/pull/15170/head:refs/review/pr-15170-20261102 refs/pull/15173/head:refs/review/pr-15173-20261102 refs/pull/15174/head:refs/review/pr-15174-20261102 refs/pull/15175/head:refs/review/pr-15175-20261102
git merge-tree --write-tree refs/review/pr-15176-20261102 096c45570f516de76a43bbe1b97781381c84f55f
for p in 15170 15173 15174 15175; do git merge-tree --write-tree --name-only refs/review/pr-15176-20261102 refs/review/pr-$p-20261102; done
git grep -n -E 'GeolocationPermissionRequest|NotificationPermissionRequest' refs/review/pr-15176-20261102 -- ':!core/libs/prx/libSceNKWebKit/tests/Base.cpp' | head -100
gh pr checks 15176 --repo boykopovar/AnyPS5

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

Check Result Note
Diff check passed No whitespace errors.
Conventions and template passed Repository check passed.
ABI lexical audit passed 10,255 symbols; no findings.
Test registration passed The changed test is covered by the CMake source glob.
Test-quality heuristic not run Optional helper is absent in the isolated snapshot.
Main merge preview passed Exact-head preview onto current main is clean.
Pairwise overlap previews failed Conflicts with four open PR heads.
Precheck wrapper failed Optional scripts are absent in its isolated snapshot.
Hosted CI not run Six exact-head jobs were queued.
Local build and CTest not run No local compilation or CTest.
Precheck report and raw outputs

Precheck report table (verbatim):

Check Status Command / reason
build_and_compile not_applicable The precheck deliberately does not configure, build, or compile AnyPS5.
diff_check passed git diff --check 096c45570f516de76a43bbe1b97781381c84f55f...39817b04a53c24dc3402970c6a458e64e0122f43
conventions_and_pr_template passed /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
changed_export_abi_audit failed /usr/bin/python3 tools/pr_abi_audit.py --base 096c45570f516de76a43bbe1b97781381c84f55f --head 39817b04a53c24dc3402970c6a458e64e0122f43 --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.
python_test_registration not_applicable No changed test_*.py files.
live_dependency_and_mergeability_check passed /usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15176 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck-15176/stack
build_dependent_cpp_tests not_applicable Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.
test_quality_heuristics failed /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.md
negative_controls not_applicable No changed Python test module in tools/ can be run as a no-build base-source control.

Precheck command output:

/tmp/anyps5-pr-precheck-15176/report.md
/tmp/anyps5-pr-precheck-15176/report.json
Conclusion: checks failed

ABI audit command output:

status: passed
symbols: 10255
findings: 0

Individual current-main preview output:

4cfb3c2d1681e7618b233afd2269f6c5aaa37c7b

Pairwise merge-tree output from the review command:

PAIR 15176 + 15170: conflict
a4c803dad238f9c42513bac9dbc4105002cfb253
docs/dev/debt/libSceNKWebKit.md
Auto-merging core/libs/prx/libSceNKWebKit/Export.cpp
Auto-merging core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
Auto-merging core/libs/prx/libSceNKWebKit/src/Configuration.hpp
Auto-merging docs/dev/debt/libSceNKWebKit.md
CONFLICT (content): Merge conflict in docs/dev/debt/libSceNKWebKit.md

PAIR 15176 + 15173: conflict
4b015146e1a479060c74fe310daea6e1407e5c4d
core/libs/prx/libSceNKWebKit/src/Configuration.hpp
core/libs/prx/libSceNKWebKit/tests/Base.cpp
docs/dev/debt/libSceNKWebKit.md
Auto-merging core/libs/prx/libSceNKWebKit/Export.cpp
Auto-merging core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
Auto-merging core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp
Auto-merging core/libs/prx/libSceNKWebKit/src/Configuration.hpp
CONFLICT (content): Merge conflict in core/libs/prx/libSceNKWebKit/src/Configuration.hpp
Auto-merging core/libs/prx/libSceNKWebKit/tests/Base.cpp
CONFLICT (content): Merge conflict in core/libs/prx/libSceNKWebKit/tests/Base.cpp
Auto-merging docs/dev/debt/libSceNKWebKit.md
CONFLICT (content): Merge conflict in docs/dev/debt/libSceNKWebKit.md

PAIR 15176 + 15174: conflict
0d6a7aecddda1c41b6ace179204d878cb9675019
core/libs/prx/libSceNKWebKit/tests/Base.cpp
docs/dev/debt/libSceNKWebKit.md
Auto-merging core/libs/prx/libSceNKWebKit/Export.cpp
Auto-merging core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
Auto-merging core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp
Auto-merging core/libs/prx/libSceNKWebKit/src/Configuration.hpp
Auto-merging core/libs/prx/libSceNKWebKit/tests/Base.cpp
CONFLICT (content): Merge conflict in core/libs/prx/libSceNKWebKit/tests/Base.cpp
Auto-merging docs/dev/debt/libSceNKWebKit.md
CONFLICT (content): Merge conflict in docs/dev/debt/libSceNKWebKit.md

PAIR 15176 + 15175: conflict
e01718ce6721764329e085d73f3e26e1e9a5e712
core/libs/prx/libSceNKWebKit/tests/Base.cpp
docs/dev/debt/libSceNKWebKit.md
Auto-merging core/libs/prx/libSceNKWebKit/Export.cpp
Auto-merging core/libs/prx/libSceNKWebKit/include/Api.hpp
Auto-merging core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
Auto-merging core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp
Auto-merging core/libs/prx/libSceNKWebKit/tests/Base.cpp
CONFLICT (content): Merge conflict in core/libs/prx/libSceNKWebKit/tests/Base.cpp
Auto-merging docs/dev/debt/libSceNKWebKit.md
CONFLICT (content): Merge conflict in docs/dev/debt/libSceNKWebKit.md

Exact-head git grep output:

refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp:78:void APS5_VABI WKGeolocationPermissionRequestAllow(const void* permissionRequestRef);
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp:79:void APS5_VABI WKGeolocationPermissionRequestDeny(const void* permissionRequestRef);
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp:80:std::uint32_t APS5_VABI WKGeolocationPermissionRequestGetTypeID();
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp:98:void APS5_VABI WKNotificationPermissionRequestAllow(const void* permissionRequestRef);
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp:99:void APS5_VABI WKNotificationPermissionRequestDeny(const void* permissionRequestRef);
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp:100:std::uint32_t APS5_VABI WKNotificationPermissionRequestGetTypeID();
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/Configuration.hpp:126:class GeolocationPermissionRequest final : public ObjectOf<ObjectType::GeolocationPermissionRequest> {
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/Configuration.hpp:132:class NotificationPermissionRequest final : public ObjectOf<ObjectType::NotificationPermissionRequest> {
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:6:void APS5_VABI WKGeolocationPermissionRequestAllow(const void* permissionRequestRef) {
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:7:    auto* request = NKWebKit::Cast<NKWebKit::GeolocationPermissionRequest>(permissionRequestRef, __func__);
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:8:    request->state = NKWebKit::GeolocationPermissionRequest::State::Allowed;
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:11:void APS5_VABI WKGeolocationPermissionRequestDeny(const void* permissionRequestRef) {
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:12:    auto* request = NKWebKit::Cast<NKWebKit::GeolocationPermissionRequest>(permissionRequestRef, __func__);
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:13:    request->state = NKWebKit::GeolocationPermissionRequest::State::Denied;
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:16:void APS5_VABI WKNotificationPermissionRequestAllow(const void* permissionRequestRef) {
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:17:    auto* request = NKWebKit::Cast<NKWebKit::NotificationPermissionRequest>(permissionRequestRef, __func__);
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:18:    request->state = NKWebKit::NotificationPermissionRequest::State::Allowed;
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:21:void APS5_VABI WKNotificationPermissionRequestDeny(const void* permissionRequestRef) {
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:22:    auto* request = NKWebKit::Cast<NKWebKit::NotificationPermissionRequest>(permissionRequestRef, __func__);
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:23:    request->state = NKWebKit::NotificationPermissionRequest::State::Denied;
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/TypeIds.cpp:157:std::uint32_t APS5_VABI WKGeolocationPermissionRequestGetTypeID() {
refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/TypeIds.cpp:217:std::uint32_t APS5_VABI WKNotificationPermissionRequestGetTypeID() {
refs/review/pr-15176-20261102:docs/dev/debt/libSceNKWebKit.md:10:- [Geolocation and Notification permission requests](../../../core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp) (libSceNKWebKit) - WKGeolocationPermissionRequest* and WKNotificationPermissionRequest* update allow/deny state on the host object.

Hosted check output:

conventions	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41515445115/job/125517716006
eligibility	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41515445758/job/125517716017
intake	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41515445212/job/125517715018
labels	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41515444726/job/125517714398
library-portability	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41515445602/job/125517712865
report	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41515445655/job/125517712984

Negative control

Assertion Change to code under test Did the new test fail?
Allow/deny resolves the corresponding permission request No mutation; the PR's C++ test binary was not built. Not run.

Findings

Blocking

  • Permission decisions have no runtime effect. Each export only assigns Allowed or Denied to 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 to allow()/deny(), and the notification calls forward to didReceiveDecision(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.
  • Landing order is unresolved. Pairwise previews of this head against #15170 (fcb36214af0fe7dede6707fd940fb348a3d4c5f6), #15173 (7715d1de92b206dedf96075f43ac1454f1a856b9), #15174 (360adcb1b4b2efdec6d9c78beef118de080ae8c4) and #15175 (3ae71a60432f41d5d1370727a7e9e4fcf9741deb) conflict in docs/dev/debt/libSceNKWebKit.md; with #15173 in Configuration.hpp, tests/Base.cpp and the debt file; with #15174 in the test and debt files; and with #15175 in the test and debt files. The checklist currently says Depends 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

  • The tests exercise null input for the two Allow exports, but not wrong-type references or null input for the Deny exports. 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5742671200 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15176#pullrequestreview-5742671200). Originally posted by [MarcZX10](https://github.com/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 `39817b04a53c24dc3402970c6a458e64e0122f43` against base `096c45570f516de76a43bbe1b97781381c84f55f`, which was also current `main` during 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. ```sh git diff --check 096c45570f516de76a43bbe1b97781381c84f55f...39817b04a53c24dc3402970c6a458e64e0122f43 python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15176 --output-dir /tmp/anyps5-pr-precheck-15176 python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 096c45570f516de76a43bbe1b97781381c84f55f --head 39817b04a53c24dc3402970c6a458e64e0122f43 --json | python3 -c 'import json,sys; d=json.load(sys.stdin); print("status: " + d["status"]); print("symbols: " + str(len(d["symbols"]))); print("findings: " + str(len(d["findings"])))' python3 tools/pr_stack_check.py 15176 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck-15176/stack git fetch https://github.com/boykopovar/AnyPS5.git refs/pull/15176/head:refs/review/pr-15176-20261102 git fetch https://github.com/boykopovar/AnyPS5.git refs/pull/15170/head:refs/review/pr-15170-20261102 refs/pull/15173/head:refs/review/pr-15173-20261102 refs/pull/15174/head:refs/review/pr-15174-20261102 refs/pull/15175/head:refs/review/pr-15175-20261102 git merge-tree --write-tree refs/review/pr-15176-20261102 096c45570f516de76a43bbe1b97781381c84f55f for p in 15170 15173 15174 15175; do git merge-tree --write-tree --name-only refs/review/pr-15176-20261102 refs/review/pr-$p-20261102; done git grep -n -E 'GeolocationPermissionRequest|NotificationPermissionRequest' refs/review/pr-15176-20261102 -- ':!core/libs/prx/libSceNKWebKit/tests/Base.cpp' | head -100 gh pr checks 15176 --repo boykopovar/AnyPS5 ``` 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 | Check | Result | Note | |---|---|---| | Diff check | passed | No whitespace errors. | | Conventions and template | passed | Repository check passed. | | ABI lexical audit | passed | 10,255 symbols; no findings. | | Test registration | passed | The changed test is covered by the CMake source glob. | | Test-quality heuristic | not run | Optional helper is absent in the isolated snapshot. | | Main merge preview | passed | Exact-head preview onto current `main` is clean. | | Pairwise overlap previews | failed | Conflicts with four open PR heads. | | Precheck wrapper | failed | Optional scripts are absent in its isolated snapshot. | | Hosted CI | not run | Six exact-head jobs were queued. | | Local build and CTest | not run | No local compilation or CTest. | <details><summary>Precheck report and raw outputs</summary> Precheck report table (verbatim): | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check 096c45570f516de76a43bbe1b97781381c84f55f...39817b04a53c24dc3402970c6a458e64e0122f43` | | conventions_and_pr_template | passed | `/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` | | changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base 096c45570f516de76a43bbe1b97781381c84f55f --head 39817b04a53c24dc3402970c6a458e64e0122f43 --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15176 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck-15176/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/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.md` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | Precheck command output: ```text /tmp/anyps5-pr-precheck-15176/report.md /tmp/anyps5-pr-precheck-15176/report.json Conclusion: checks failed ``` ABI audit command output: ```text status: passed symbols: 10255 findings: 0 ``` Individual current-main preview output: ```text 4cfb3c2d1681e7618b233afd2269f6c5aaa37c7b ``` Pairwise merge-tree output from the review command: ```text PAIR 15176 + 15170: conflict a4c803dad238f9c42513bac9dbc4105002cfb253 docs/dev/debt/libSceNKWebKit.md Auto-merging core/libs/prx/libSceNKWebKit/Export.cpp Auto-merging core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp Auto-merging core/libs/prx/libSceNKWebKit/src/Configuration.hpp Auto-merging docs/dev/debt/libSceNKWebKit.md CONFLICT (content): Merge conflict in docs/dev/debt/libSceNKWebKit.md PAIR 15176 + 15173: conflict 4b015146e1a479060c74fe310daea6e1407e5c4d core/libs/prx/libSceNKWebKit/src/Configuration.hpp core/libs/prx/libSceNKWebKit/tests/Base.cpp docs/dev/debt/libSceNKWebKit.md Auto-merging core/libs/prx/libSceNKWebKit/Export.cpp Auto-merging core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp Auto-merging core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp Auto-merging core/libs/prx/libSceNKWebKit/src/Configuration.hpp CONFLICT (content): Merge conflict in core/libs/prx/libSceNKWebKit/src/Configuration.hpp Auto-merging core/libs/prx/libSceNKWebKit/tests/Base.cpp CONFLICT (content): Merge conflict in core/libs/prx/libSceNKWebKit/tests/Base.cpp Auto-merging docs/dev/debt/libSceNKWebKit.md CONFLICT (content): Merge conflict in docs/dev/debt/libSceNKWebKit.md PAIR 15176 + 15174: conflict 0d6a7aecddda1c41b6ace179204d878cb9675019 core/libs/prx/libSceNKWebKit/tests/Base.cpp docs/dev/debt/libSceNKWebKit.md Auto-merging core/libs/prx/libSceNKWebKit/Export.cpp Auto-merging core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp Auto-merging core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp Auto-merging core/libs/prx/libSceNKWebKit/src/Configuration.hpp Auto-merging core/libs/prx/libSceNKWebKit/tests/Base.cpp CONFLICT (content): Merge conflict in core/libs/prx/libSceNKWebKit/tests/Base.cpp Auto-merging docs/dev/debt/libSceNKWebKit.md CONFLICT (content): Merge conflict in docs/dev/debt/libSceNKWebKit.md PAIR 15176 + 15175: conflict e01718ce6721764329e085d73f3e26e1e9a5e712 core/libs/prx/libSceNKWebKit/tests/Base.cpp docs/dev/debt/libSceNKWebKit.md Auto-merging core/libs/prx/libSceNKWebKit/Export.cpp Auto-merging core/libs/prx/libSceNKWebKit/include/Api.hpp Auto-merging core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp Auto-merging core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp Auto-merging core/libs/prx/libSceNKWebKit/tests/Base.cpp CONFLICT (content): Merge conflict in core/libs/prx/libSceNKWebKit/tests/Base.cpp Auto-merging docs/dev/debt/libSceNKWebKit.md CONFLICT (content): Merge conflict in docs/dev/debt/libSceNKWebKit.md ``` Exact-head `git grep` output: ```text refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp:78:void APS5_VABI WKGeolocationPermissionRequestAllow(const void* permissionRequestRef); refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp:79:void APS5_VABI WKGeolocationPermissionRequestDeny(const void* permissionRequestRef); refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp:80:std::uint32_t APS5_VABI WKGeolocationPermissionRequestGetTypeID(); refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp:98:void APS5_VABI WKNotificationPermissionRequestAllow(const void* permissionRequestRef); refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp:99:void APS5_VABI WKNotificationPermissionRequestDeny(const void* permissionRequestRef); refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp:100:std::uint32_t APS5_VABI WKNotificationPermissionRequestGetTypeID(); refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/Configuration.hpp:126:class GeolocationPermissionRequest final : public ObjectOf<ObjectType::GeolocationPermissionRequest> { refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/Configuration.hpp:132:class NotificationPermissionRequest final : public ObjectOf<ObjectType::NotificationPermissionRequest> { refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:6:void APS5_VABI WKGeolocationPermissionRequestAllow(const void* permissionRequestRef) { refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:7: auto* request = NKWebKit::Cast<NKWebKit::GeolocationPermissionRequest>(permissionRequestRef, __func__); refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:8: request->state = NKWebKit::GeolocationPermissionRequest::State::Allowed; refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:11:void APS5_VABI WKGeolocationPermissionRequestDeny(const void* permissionRequestRef) { refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:12: auto* request = NKWebKit::Cast<NKWebKit::GeolocationPermissionRequest>(permissionRequestRef, __func__); refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:13: request->state = NKWebKit::GeolocationPermissionRequest::State::Denied; refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:16:void APS5_VABI WKNotificationPermissionRequestAllow(const void* permissionRequestRef) { refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:17: auto* request = NKWebKit::Cast<NKWebKit::NotificationPermissionRequest>(permissionRequestRef, __func__); refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:18: request->state = NKWebKit::NotificationPermissionRequest::State::Allowed; refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:21:void APS5_VABI WKNotificationPermissionRequestDeny(const void* permissionRequestRef) { refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:22: auto* request = NKWebKit::Cast<NKWebKit::NotificationPermissionRequest>(permissionRequestRef, __func__); refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp:23: request->state = NKWebKit::NotificationPermissionRequest::State::Denied; refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/TypeIds.cpp:157:std::uint32_t APS5_VABI WKGeolocationPermissionRequestGetTypeID() { refs/review/pr-15176-20261102:core/libs/prx/libSceNKWebKit/src/TypeIds.cpp:217:std::uint32_t APS5_VABI WKNotificationPermissionRequestGetTypeID() { refs/review/pr-15176-20261102:docs/dev/debt/libSceNKWebKit.md:10:- [Geolocation and Notification permission requests](../../../core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp) (libSceNKWebKit) - WKGeolocationPermissionRequest* and WKNotificationPermissionRequest* update allow/deny state on the host object. ``` Hosted check output: ```text conventions pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41515445115/job/125517716006 eligibility pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41515445758/job/125517716017 intake pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41515445212/job/125517715018 labels pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41515444726/job/125517714398 library-portability pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41515445602/job/125517712865 report pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41515445655/job/125517712984 ``` </details> ## Negative control | Assertion | Change to code under test | Did the new test fail? | |---|---|---| | Allow/deny resolves the corresponding permission request | No mutation; the PR's C++ test binary was not built. | Not run. | ## Findings ### Blocking - **Permission decisions have no runtime effect.** Each export only assigns `Allowed` or `Denied` to 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 to `allow()`/`deny()`, and the notification calls forward to `didReceiveDecision(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. - **Landing order is unresolved.** Pairwise previews of this head against #15170 (`fcb36214af0fe7dede6707fd940fb348a3d4c5f6`), #15173 (`7715d1de92b206dedf96075f43ac1454f1a856b9`), #15174 (`360adcb1b4b2efdec6d9c78beef118de080ae8c4`) and #15175 (`3ae71a60432f41d5d1370727a7e9e4fcf9741deb`) conflict in `docs/dev/debt/libSceNKWebKit.md`; with #15173 in `Configuration.hpp`, `tests/Base.cpp` and the debt file; with #15174 in the test and debt files; and with #15175 in the test and debt files. The checklist currently says `Depends 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 - The tests exercise null input for the two `Allow` exports, but not wrong-type references or null input for the `Deny` exports. Adding those cases would cover the stated invalid-reference behavior more directly. ## Sources - [Permission setter implementations at this head](https://github.com/boykopovar/AnyPS5/blob/39817b04a53c24dc3402970c6a458e64e0122f43/core/libs/prx/libSceNKWebKit/src/PermissionRequest.cpp#L6-L24) - [Permission state fields at this head](https://github.com/boykopovar/AnyPS5/blob/39817b04a53c24dc3402970c6a458e64e0122f43/core/libs/prx/libSceNKWebKit/src/Configuration.hpp#L126-L136) - [Tests at this head](https://github.com/boykopovar/AnyPS5/blob/39817b04a53c24dc3402970c6a458e64e0122f43/core/libs/prx/libSceNKWebKit/tests/Base.cpp#L354-L396) - [Repository overlap and dependency rule](https://github.com/boykopovar/AnyPS5/blob/096c45570f516de76a43bbe1b97781381c84f55f/CONTRIBUTING.md#L65-L70) - [WebKit geolocation decision forwarding at pinned commit](https://github.com/WebKit/WebKit/blob/d2915517219320e0fdfbfc4a59c168337d982292/Source/WebKit/UIProcess/API/C/WKGeolocationPermissionRequest.cpp#L39-L46) - [WebKit notification decision forwarding at pinned commit](https://github.com/WebKit/WebKit/blob/d2915517219320e0fdfbfc4a59c168337d982292/Source/WebKit/UIProcess/API/C/WKNotificationPermissionRequest.cpp#L39-L46) ## 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!15176
No description provided.