feat(libSceNKWebKit): implement WKContext client and invalid message callback controls #24867

Closed
jagrat04 wants to merge 1 commit from upstream-pr/24867 into main
jagrat04 commented 2026-11-21 08:10:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-11-21T08:10:41Z.


What

Implement WebKit C API WKContext client callback registration and invalid message handler in libSceNKWebKit:

  • WKContextSetClient (NID s19dG0nY-dE): sets the context client configuration state on the host ProcessPool instance following WebKit's WKContext.cpp.
  • WKContextSetHistoryClient (NID voUp4sJ5mfU): sets the history client configuration state on the host ProcessPool instance.
  • WKContextSetInvalidMessageFunction (NID v+TCMUBUWog): registers the invalid message callback function pointer following WebKit's WKContext.cpp.

Tested

tools/check_conventions.py --base origin/main passed; tools/debt_fold.py --check passed; tests/ContextClients.cpp tests setting and resetting context client, setting and resetting history client, registering and resetting invalid message callback, rejecting null context references, and enforcing object type safety. Not tested on a PS5.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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:5425853352 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24867). Originally posted by [jagrat04](https://github.com/jagrat04) on 2026-11-21T08:10:41Z. --- ### What Implement WebKit C API `WKContext` client callback registration and invalid message handler in `libSceNKWebKit`: - `WKContextSetClient` (NID `s19dG0nY-dE`): sets the context client configuration state on the host `ProcessPool` instance following WebKit's `WKContext.cpp`. - `WKContextSetHistoryClient` (NID `voUp4sJ5mfU`): sets the history client configuration state on the host `ProcessPool` instance. - `WKContextSetInvalidMessageFunction` (NID `v+TCMUBUWog`): registers the invalid message callback function pointer following WebKit's `WKContext.cpp`. ### Tested `tools/check_conventions.py --base origin/main` passed; `tools/debt_fold.py --check` passed; `tests/ContextClients.cpp` tests setting and resetting context client, setting and resetting history client, registering and resetting invalid message callback, rejecting null context references, and enforcing object type safety. Not tested on a PS5. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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) and the licence notice of code adapted from upstream (see AGENTS.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
PrivacyOnion commented 2026-11-21 08:14:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-21T08:14:17Z.

Review: CHANGES_REQUESTED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 27e51106f9:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_contextclients_tests failed to build.
    core/libs/prx/libSceNKWebKit/src/Configuration.hpp:55:7: error: redefinition of ‘class NKWebKit::Preferences’
    

Requesting changes for the points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004059022 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24867#pullrequestreview-6004059022). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-21T08:14:17Z. **Review:** CHANGES_REQUESTED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `27e51106f9`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_contextclients_tests` failed to build. ``` core/libs/prx/libSceNKWebKit/src/Configuration.hpp:55:7: error: redefinition of ‘class NKWebKit::Preferences’ ``` Requesting changes for the points above.
PrivacyOnion commented 2026-11-21 08:30:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-21T08:30:35Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against b6ec69b438:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_contextclients_tests built cleanly.
  • CTest (nkwebkit_contextclients):
    1/1 Test #4746: nkwebkit_contextclients ..........   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, 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/ContextClients.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • core/libs/prx/libSceNKWebKit/src/ContextClients.cpp: Verified NKWebKit::CastNKWebKit::ProcessPool(contextRef, func) enforces non-null and exact ObjectType::ProcessPool type check, throwing std::invalid_argument on null or mismatched types.
    • core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp: Verified signatures of WKContextSetClient, WKContextSetHistoryClient, and WKContextSetInvalidMessageFunction match standard WebKit C API and NKWebKit conventions.
    • core/libs/prx/libSceNKWebKit/Export.cpp: Verified legacy stubs for WKContextSetClient, WKContextSetHistoryClient, and WKContextSetInvalidMessageFunction were properly removed.
    • docs/dev/debt/changes/wkcontext-client-controls.md: Verified technical debt fragment correctly records removal of the three implemented functions according to debt conventions.
    • core/libs/prx/libSceNKWebKit/tests/ContextClients.cpp: Verified unit tests thoroughly exercise setting, resetting, nullptr context handling, and invalid object type rejection.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004155465 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24867#pullrequestreview-6004155465). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-21T08:30:35Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `b6ec69b438`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_contextclients_tests` built cleanly. - **CTest** (`nkwebkit_contextclients`): ``` 1/1 Test #4746: nkwebkit_contextclients .......... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `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/ContextClients.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - core/libs/prx/libSceNKWebKit/src/ContextClients.cpp: Verified NKWebKit::Cast<NKWebKit::ProcessPool>(contextRef, __func__) enforces non-null and exact ObjectType::ProcessPool type check, throwing std::invalid_argument on null or mismatched types. - core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp: Verified signatures of WKContextSetClient, WKContextSetHistoryClient, and WKContextSetInvalidMessageFunction match standard WebKit C API and NKWebKit conventions. - core/libs/prx/libSceNKWebKit/Export.cpp: Verified legacy stubs for WKContextSetClient, WKContextSetHistoryClient, and WKContextSetInvalidMessageFunction were properly removed. - docs/dev/debt/changes/wkcontext-client-controls.md: Verified technical debt fragment correctly records removal of the three implemented functions according to debt conventions. - core/libs/prx/libSceNKWebKit/tests/ContextClients.cpp: Verified unit tests thoroughly exercise setting, resetting, nullptr context handling, and invalid object type rejection. Looks Good To Me
MarcZX10 commented 2026-11-21 08:31:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T08:31:34Z.

Review: COMMENTED


Reviewed — no blocking findings

The reviewed code adds the three WKContext controls and tests their configuration state; no concrete blocking defect was verified in the files read.

What I ran

Inspected the prepared diff and selected source files at head b6ec69b438042b1e6a18513ca6bb7283d474f53d using repo_read.py. No commands or tests were run. The description reports convention and debt checks, but these were not run in this review.

Results

Check Result Note
Diff inspection passed Reviewed prepared diff
Tests and prechecks not run Author-reported only
PS5 behavior not run Not tested on console

Findings

Blocking

None verified in the files read.

Non-blocking

None.

Not verified

Full text was read for ContextClients.cpp, its test, and Configuration.hpp; the changed declarations in WebKitValueExports.hpp and the prepared diff were reviewed. Export.cpp and InventoryExports.hpp were excluded from the review folder because they were too large; their relevant diff hunks were inspected, but their full text and surrounding integration were not reviewed. No build, test suite, or PS5 run was performed. The manifest lists six changed files; four full files were available in the prepared review folder, while two were excluded by size.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004158961 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24867#pullrequestreview-6004158961). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T08:31:34Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The reviewed code adds the three `WKContext` controls and tests their configuration state; no concrete blocking defect was verified in the files read. ## What I ran Inspected the prepared diff and selected source files at head `b6ec69b438042b1e6a18513ca6bb7283d474f53d` using `repo_read.py`. No commands or tests were run. The description reports convention and debt checks, but these were not run in this review. ## Results | Check | Result | Note | |---|---|---| | Diff inspection | passed | Reviewed prepared diff | | Tests and prechecks | not run | Author-reported only | | PS5 behavior | not run | Not tested on console | ## Findings ### Blocking None verified in the files read. ### Non-blocking None. ## Not verified Full text was read for `ContextClients.cpp`, its test, and `Configuration.hpp`; the changed declarations in `WebKitValueExports.hpp` and the prepared diff were reviewed. `Export.cpp` and `InventoryExports.hpp` were excluded from the review folder because they were too large; their relevant diff hunks were inspected, but their full text and surrounding integration were not reviewed. No build, test suite, or PS5 run was performed. The manifest lists six changed files; four full files were available in the prepared review folder, while two were excluded by size. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-21 09:30:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T09:30:14Z.

Review: APPROVED


Reviewed — looks good

The implementation and all changed files included for review were inspected at the pinned head; no concrete blocking defect was verified. The claimed convention checks and tests were not run here.

What I ran

Read the prepared diff and changed-file contents at head 89e11d61cee1d0fb769c35ee35e6cef45b0ff687 using repo_read.py. No commands or tests were run.

Results

Check Result Note
Changed code review passed No verified blocking defect
Convention and debt checks not run Description reports them passed
Context client tests not run Description reports coverage; execution not confirmed

Findings

Blocking

None.

Non-blocking

None.

Not verified

Export.cpp and include/InventoryExports.hpp were excluded from the prepared full-text files because they were too large; their changes are visible in the diff. The PR's reported checks and tests were not executed, and PS5 behavior was not tested.

To get this to a good state

Nothing is required.

Files read

description.md, commits.md, manifest.json, diff.patch, include/WebKitValueExports.hpp, src/Configuration.hpp, src/ContextClients.cpp, and tests/ContextClients.cpp. The changed documentation file docs/dev/debt/changes/wkcontext-client-controls.md was present in the manifest but its full text was not read.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004399506 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24867#pullrequestreview-6004399506). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T09:30:14Z. **Review:** APPROVED --- # Reviewed — looks good The implementation and all changed files included for review were inspected at the pinned head; no concrete blocking defect was verified. The claimed convention checks and tests were not run here. ## What I ran Read the prepared diff and changed-file contents at head `89e11d61cee1d0fb769c35ee35e6cef45b0ff687` using `repo_read.py`. No commands or tests were run. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | No verified blocking defect | | Convention and debt checks | not run | Description reports them passed | | Context client tests | not run | Description reports coverage; execution not confirmed | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified `Export.cpp` and `include/InventoryExports.hpp` were excluded from the prepared full-text files because they were too large; their changes are visible in the diff. The PR's reported checks and tests were not executed, and PS5 behavior was not tested. ## To get this to a good state Nothing is required. ## Files read `description.md`, `commits.md`, `manifest.json`, `diff.patch`, `include/WebKitValueExports.hpp`, `src/Configuration.hpp`, `src/ContextClients.cpp`, and `tests/ContextClients.cpp`. The changed documentation file `docs/dev/debt/changes/wkcontext-client-controls.md` was present in the manifest but its full text was not read.
PrivacyOnion commented 2026-11-21 09:34:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-21T09:34:40Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 89e11d61ce:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_contextclients_tests built cleanly.
  • CTest (nkwebkit_contextclients):
    1/1 Test #4750: nkwebkit_contextclients ..........   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, 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/ContextClients.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • core/libs/prx/libSceNKWebKit/src/ContextClients.cpp: Verified NKWebKit::CastNKWebKit::ProcessPool(contextRef, func) validates contextRef for nullptr and exact ObjectType::ProcessPool type matching, throwing std::invalid_argument on violation
    • core/libs/prx/libSceNKWebKit/src/ContextClients.cpp: Checked client and history client configuration state transitions on ProcessPool, allowing setting and resetting with nullptr without leaking or invalid memory access
    • core/libs/prx/libSceNKWebKit/src/Configuration.hpp & ContextClients.cpp: Verified ProcessPool::GetInvalidMessageFunction and SetInvalidMessageFunction cross-DLL symbol visibility and linkage on Windows PE and Linux ELF
    • core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp & InventoryExports.hpp: Verified exported function prototypes and removal of outdated stub declarations in InventoryExports.hpp and Export.cpp
    • docs/dev/debt/changes/wkcontext-client-controls.md: Verified debt fragments properly record the removal of WKContextSetClient, WKContextSetHistoryClient, and WKContextSetInvalidMessageFunction stubs
    • core/libs/prx/libSceNKWebKit/tests/ContextClients.cpp: Verified unit tests thoroughly cover valid configuration, null resetting, nullptr context handling, and invalid object type rejection

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004420450 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24867#pullrequestreview-6004420450). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-21T09:34:40Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `89e11d61ce`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_contextclients_tests` built cleanly. - **CTest** (`nkwebkit_contextclients`): ``` 1/1 Test #4750: nkwebkit_contextclients .......... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `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/ContextClients.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - core/libs/prx/libSceNKWebKit/src/ContextClients.cpp: Verified NKWebKit::Cast<NKWebKit::ProcessPool>(contextRef, __func__) validates contextRef for nullptr and exact ObjectType::ProcessPool type matching, throwing std::invalid_argument on violation - core/libs/prx/libSceNKWebKit/src/ContextClients.cpp: Checked client and history client configuration state transitions on ProcessPool, allowing setting and resetting with nullptr without leaking or invalid memory access - core/libs/prx/libSceNKWebKit/src/Configuration.hpp & ContextClients.cpp: Verified ProcessPool::GetInvalidMessageFunction and SetInvalidMessageFunction cross-DLL symbol visibility and linkage on Windows PE and Linux ELF - core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp & InventoryExports.hpp: Verified exported function prototypes and removal of outdated stub declarations in InventoryExports.hpp and Export.cpp - docs/dev/debt/changes/wkcontext-client-controls.md: Verified debt fragments properly record the removal of WKContextSetClient, WKContextSetHistoryClient, and WKContextSetInvalidMessageFunction stubs - core/libs/prx/libSceNKWebKit/tests/ContextClients.cpp: Verified unit tests thoroughly cover valid configuration, null resetting, nullptr context handling, and invalid object type rejection Looks Good To Me
MarcZX10 commented 2026-11-22 19:37:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T19:37:42Z.

Review: APPROVED


Reviewed — looks good

The reviewed additions record client registration state and store the invalid-message callback; no verified blocking defect was found in the inspected code.

What I ran

Reviewed head d781f8b6ac175ce8ce1dd4d18bc6b4c48352ae42. I read the prepared description, commits, manifest, and diff, plus the changed source and test files and relevant CMake/context. No commands or tests were run.

Results

Check Result Note
Source review passed Inspected implementation and tests
Build and tests not run No execution environment provided
PS5 behavior not run Author also reports it was not tested

Findings

Blocking

None.

Non-blocking

None.

Not verified

The full text of core/libs/prx/libSceNKWebKit/Export.cpp and core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp was excluded because the files were too large for the review folder; their changed hunks were inspected in diff.patch. Build, automated checks, and PS5 behavior were not independently verified. Files read: description.md, commits.md, manifest.json, diff.patch, review/README.md, core/libs/prx/libSceNKWebKit/src/Configuration.hpp, core/libs/prx/libSceNKWebKit/src/ContextClients.cpp, core/libs/prx/libSceNKWebKit/tests/ContextClients.cpp, core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp, core/libs/prx/libSceNKWebKit/CMakeLists.txt, and core/libs/prx/libSceNKWebKit/src/Connection.cpp. Files reviewed per manifest: 7; changed lines in 5 of those were read from the prepared artifacts, and 2 excluded files' changed hunks were read from the diff.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6014072400 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24867#pullrequestreview-6014072400). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T19:37:42Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed additions record client registration state and store the invalid-message callback; no verified blocking defect was found in the inspected code. ## What I ran Reviewed head `d781f8b6ac175ce8ce1dd4d18bc6b4c48352ae42`. I read the prepared description, commits, manifest, and diff, plus the changed source and test files and relevant CMake/context. No commands or tests were run. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Inspected implementation and tests | | Build and tests | not run | No execution environment provided | | PS5 behavior | not run | Author also reports it was not tested | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The full text of `core/libs/prx/libSceNKWebKit/Export.cpp` and `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp` was excluded because the files were too large for the review folder; their changed hunks were inspected in `diff.patch`. Build, automated checks, and PS5 behavior were not independently verified. Files read: `description.md`, `commits.md`, `manifest.json`, `diff.patch`, `review/README.md`, `core/libs/prx/libSceNKWebKit/src/Configuration.hpp`, `core/libs/prx/libSceNKWebKit/src/ContextClients.cpp`, `core/libs/prx/libSceNKWebKit/tests/ContextClients.cpp`, `core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp`, `core/libs/prx/libSceNKWebKit/CMakeLists.txt`, and `core/libs/prx/libSceNKWebKit/src/Connection.cpp`. Files reviewed per manifest: 7; changed lines in 5 of those were read from the prepared artifacts, and 2 excluded files' changed hunks were read from the diff. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-25 04:25:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T04:25:42Z.

Review: COMMENTED


Reviewed — comments

Nothing blocks this review, but the client setters retain only whether a client was supplied, so optional points below are worth addressing before relying on these callbacks.

What I ran

Reviewed head 6e47b1b921c4e3987a7aeac9d39d4cceac8a413a. I inspected the prepared diff and targeted source searches; I did not run tests or prechecks. The reader was unavailable as a command, so repository files were read through the provided reader tool.

Results

Check Result Note
Diff and targeted code review passed Callback state and declarations inspected
Tests and prechecks not run No execution environment provided

Findings

Blocking

None.

Non-blocking

  • WKContextSetClient and WKContextSetHistoryClient only toggle boolean flags based on whether client is null. They do not retain the client structure or its callbacks, so this implements registration state but cannot invoke the registered callbacks. If callback invocation is outside this PR’s scope, clarify that in the description. Changed lines: core/libs/prx/libSceNKWebKit/src/ContextClients.cpp:118, core/libs/prx/libSceNKWebKit/src/ContextClients.cpp:123.
  • The invalid-message function is stored in one process-global variable rather than per context. Confirm that global scope matches the API’s intended semantics. Changed line: core/libs/prx/libSceNKWebKit/src/ContextClients.cpp:100.

Not verified

  • Export.cpp and InventoryExports.hpp full text were excluded as too large; their relevant removals are visible in the prepared diff, but their full contents were not read.
  • files.json was unavailable through the reader, so the excluded-file inventory could not be confirmed beyond the manifest.
  • No test binary, build, or convention/debt precheck was run; the PR description reports these passed. PS5 behavior was not tested.
  • Reviewed full text: WebKitValueExports.hpp, Configuration.hpp, ContextClients.cpp, ContextClients.cpp test, and the debt change record. Also inspected CMakeLists.txt for test discovery.

To get this to a good state

Nothing is required. Optional: clarify whether storing only client-present state and using one global invalid-message callback are intentional.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6051845507 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24867#pullrequestreview-6051845507). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T04:25:42Z. **Review:** COMMENTED --- # Reviewed — comments Nothing blocks this review, but the client setters retain only whether a client was supplied, so optional points below are worth addressing before relying on these callbacks. ## What I ran Reviewed head `6e47b1b921c4e3987a7aeac9d39d4cceac8a413a`. I inspected the prepared diff and targeted source searches; I did not run tests or prechecks. The reader was unavailable as a command, so repository files were read through the provided reader tool. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted code review | passed | Callback state and declarations inspected | | Tests and prechecks | not run | No execution environment provided | ## Findings ### Blocking None. ### Non-blocking - `WKContextSetClient` and `WKContextSetHistoryClient` only toggle boolean flags based on whether `client` is null. They do not retain the client structure or its callbacks, so this implements registration state but cannot invoke the registered callbacks. If callback invocation is outside this PR’s scope, clarify that in the description. Changed lines: `core/libs/prx/libSceNKWebKit/src/ContextClients.cpp:118`, `core/libs/prx/libSceNKWebKit/src/ContextClients.cpp:123`. - The invalid-message function is stored in one process-global variable rather than per context. Confirm that global scope matches the API’s intended semantics. Changed line: `core/libs/prx/libSceNKWebKit/src/ContextClients.cpp:100`. ## Not verified - `Export.cpp` and `InventoryExports.hpp` full text were excluded as too large; their relevant removals are visible in the prepared diff, but their full contents were not read. - `files.json` was unavailable through the reader, so the excluded-file inventory could not be confirmed beyond the manifest. - No test binary, build, or convention/debt precheck was run; the PR description reports these passed. PS5 behavior was not tested. - Reviewed full text: `WebKitValueExports.hpp`, `Configuration.hpp`, `ContextClients.cpp`, `ContextClients.cpp` test, and the debt change record. Also inspected `CMakeLists.txt` for test discovery. ## To get this to a good state Nothing is required. Optional: clarify whether storing only client-present state and using one global invalid-message callback are intentional.
MarcZX10 commented 2026-11-26 12:22:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T12:22:58Z.

Review: COMMENTED


Reviewed — no blocking findings

The inspected implementation matches the documented limited behavior; Export.cpp was excluded from the review folder, so the review is incomplete.

What I ran

Reviewed head dd6ac454c27ad12d7eb26f31ca49de2b10bf0af8 using repo_read.py reader tools. No commands or tests were run. The description reports convention and debt checks and a context-client test, but those results were not independently verified.

Results

Check Result Note
Source review passed Six changed files read
Tests and prechecks not run Author-reported results only
Full review not run Export.cpp was excluded

Findings

Blocking

None in the files read.

Non-blocking

None.

Sources

Behavior claims were checked against the changed implementation and its technical-debt entry at head dd6ac454c27ad12d7eb26f31ca49de2b10bf0af8.

Not verified

core/libs/prx/libSceNKWebKit/Export.cpp was excluded because it was too large for the review folder. Tests, convention checks, and debt checks were not run. No PS5 behavior was verified. The other six changed files were read: InventoryExports.hpp, WebKitValueExports.hpp, Configuration.hpp, ContextClients.cpp, tests/ContextClients.cpp, and wkcontext-client-controls.md.

To get this to a good state

Nothing is required. Optional: inspect the excluded Export.cpp before making a formal approval decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6074055775 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24867#pullrequestreview-6074055775). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-26T12:22:58Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The inspected implementation matches the documented limited behavior; `Export.cpp` was excluded from the review folder, so the review is incomplete. ## What I ran Reviewed head `dd6ac454c27ad12d7eb26f31ca49de2b10bf0af8` using `repo_read.py` reader tools. No commands or tests were run. The description reports convention and debt checks and a context-client test, but those results were not independently verified. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Six changed files read | | Tests and prechecks | not run | Author-reported results only | | Full review | not run | `Export.cpp` was excluded | ## Findings ### Blocking None in the files read. ### Non-blocking None. ## Sources Behavior claims were checked against the changed implementation and its technical-debt entry at head `dd6ac454c27ad12d7eb26f31ca49de2b10bf0af8`. ## Not verified `core/libs/prx/libSceNKWebKit/Export.cpp` was excluded because it was too large for the review folder. Tests, convention checks, and debt checks were not run. No PS5 behavior was verified. The other six changed files were read: `InventoryExports.hpp`, `WebKitValueExports.hpp`, `Configuration.hpp`, `ContextClients.cpp`, `tests/ContextClients.cpp`, and `wkcontext-client-controls.md`. ## To get this to a good state Nothing is required. Optional: inspect the excluded `Export.cpp` before making a formal approval decision.

Pull request closed

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!24867
No description provided.