feat(libSceNKWebKit): implement empty frame loader user agent #17771

Closed
alvaroelpob wants to merge 4 commits from upstream-pr/17771 into main
alvaroelpob commented 2026-11-09 15:25:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-09T15:25:52Z.


What

Implement EmptyFrameLoaderClient::userAgent using the pinned WebKit 11.x behavior, which returns the shared empty string for every URL. Add an ABI-correct string export and focused test.
On hold: EmptyFrameLoaderClient cannot be constructed yet (its four constructors throw and the module has no vtable for it), so no caller reaches this member until the client can be created.

Tested

Linux: suite.py feat/nkwebkit-empty-frame-loader-user-agent at 4bd7f23035: CTest 6575/6575 passed; conventions passed.

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:5226365692 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17771). Originally posted by [alvaroelpob](https://github.com/alvaroelpob) on 2026-11-09T15:25:52Z. --- ### What Implement `EmptyFrameLoaderClient::userAgent` using the pinned WebKit 11.x behavior, which returns the shared empty string for every URL. Add an ABI-correct string export and focused test. On hold: `EmptyFrameLoaderClient` cannot be constructed yet (its four constructors throw and the module has no vtable for it), so no caller reaches this member until the client can be created. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Linux: `suite.py feat/nkwebkit-empty-frame-loader-user-agent` at 4bd7f23035: CTest 6575/6575 passed; conventions passed. ### 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) - [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-20 15:25:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T15:25:00Z.

Review: APPROVED


Reviewed — looks good

The implementation at head 260ff20d86893ca591c53f95ab787e68c996b01a returns the shared empty string as described; no checks were run during this review.

What I ran

No commands or tests were run. I inspected the supplied diff and targeted source context.

Results

Check Result Note
Code inspection passed Return value and test wiring inspected
Tests not run Author reports 4814/4814 CTest tests passed on an earlier revision

Findings

Blocking

None.

Non-blocking

None.

Not verified

Full text was read for core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp, core/libs/prx/libSceNKWebKit/tests/EmptyFrameLoaderUserAgent.cpp, and core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp. Changed lines and diff context were inspected for all changed files. The full text of core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, and docs/dev/debt/libSceNKWebKit.md was excluded by the review folder size rule. Console execution and ABI remain unverified, as the PR description notes.

To get this to a good state

Nothing is required. Optional: run the focused test on this exact head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5995080666 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17771#pullrequestreview-5995080666). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T15:25:00Z. **Review:** APPROVED --- # Reviewed — looks good The implementation at head `260ff20d86893ca591c53f95ab787e68c996b01a` returns the shared empty string as described; no checks were run during this review. ## What I ran No commands or tests were run. I inspected the supplied diff and targeted source context. ## Results | Check | Result | Note | |---|---|---| | Code inspection | passed | Return value and test wiring inspected | | Tests | not run | Author reports 4814/4814 CTest tests passed on an earlier revision | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Full text was read for `core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp`, `core/libs/prx/libSceNKWebKit/tests/EmptyFrameLoaderUserAgent.cpp`, and `core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp`. Changed lines and diff context were inspected for all changed files. The full text of `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, and `docs/dev/debt/libSceNKWebKit.md` was excluded by the review folder size rule. Console execution and ABI remain unverified, as the PR description notes. ## To get this to a good state Nothing is required. Optional: run the focused test on this exact head.
MarcZX10 commented 2026-11-22 06:45:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T06:45:05Z.

Review: APPROVED


Reviewed — looks good

The reviewed change at 4bd7f230359fba3aed57aaa9653a20d91c3f030b implements the stated empty user agent behavior; the focused test is picked up by the existing test glob.

What I ran

No test commands were run. The description reports a Linux suite run, but that result was not independently verified.

Results

Check Result Note
Code and ABI review passed Return type and wrapper are consistent
Focused test registration passed Existing CMake glob includes the test
Test suite not run Author-reported result only

Findings

Blocking

None.

Non-blocking

None.

Not verified

No build or tests were run. Console execution and ABI behavior remain unverified, as stated in the debt note. Read: EmptyClients.cpp, WtfStringAbi.hpp, relevant InventoryExports.hpp declarations, EmptyFrameLoaderUserAgent.cpp, CMakeLists.txt, DiagnosticLoggingKeys.cpp, and EmptyLoaderLegacyCallbackExports.hpp. Excluded from full-text review: Export.cpp and the remainder of InventoryExports.hpp because the prepared review folder omitted them as too large; the changed hunks and relevant declaration were read from the diff and pinned repository head. The debt note was present in the diff but its full file text was not read.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6010827842 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17771#pullrequestreview-6010827842). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T06:45:05Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed change at `4bd7f230359fba3aed57aaa9653a20d91c3f030b` implements the stated empty user agent behavior; the focused test is picked up by the existing test glob. ## What I ran No test commands were run. The description reports a Linux suite run, but that result was not independently verified. ## Results | Check | Result | Note | |---|---|---| | Code and ABI review | passed | Return type and wrapper are consistent | | Focused test registration | passed | Existing CMake glob includes the test | | Test suite | not run | Author-reported result only | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified No build or tests were run. Console execution and ABI behavior remain unverified, as stated in the debt note. Read: `EmptyClients.cpp`, `WtfStringAbi.hpp`, relevant `InventoryExports.hpp` declarations, `EmptyFrameLoaderUserAgent.cpp`, `CMakeLists.txt`, `DiagnosticLoggingKeys.cpp`, and `EmptyLoaderLegacyCallbackExports.hpp`. Excluded from full-text review: `Export.cpp` and the remainder of `InventoryExports.hpp` because the prepared review folder omitted them as too large; the changed hunks and relevant declaration were read from the diff and pinned repository head. The debt note was present in the diff but its full file text was not read. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 13:09:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T13:09:06Z.

Review: COMMENTED


Built the changed sources and ran EmptyFrameLoaderUserAgent on Linux against the existing WebKit runtime. The fixture passed.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6170421494 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17771#pullrequestreview-6170421494). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T13:09:06Z. **Review:** COMMENTED --- Built the changed sources and ran `EmptyFrameLoaderUserAgent` on Linux against the existing WebKit runtime. The fixture passed. AI-assisted: yes.

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