feat(nkwebkit): implement shouldUseCredentialStorage #17569

Closed
alvaroelpob wants to merge 7 commits from upstream-pr/17569 into main
alvaroelpob commented 2026-11-08 22:32:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-08T22:32:02Z.


What

Implement WebCore::EmptyFrameLoaderClient::shouldUseCredentialStorage from the pinned WebKit 11.x behavior, returning false for all inputs.

Tested

Linux: suite.py nkwebkit-credential-storage-policy at 11ca294abf: 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:5215772977 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17569). Originally posted by [alvaroelpob](https://github.com/alvaroelpob) on 2026-11-08T22:32:02Z. --- ### What Implement WebCore::EmptyFrameLoaderClient::shouldUseCredentialStorage from the pinned WebKit 11.x behavior, returning false for all inputs. ### 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 nkwebkit-credential-storage-policy` at 11ca294abf: 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:27:49 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: correct the export prototype so it matches the ABI and can be used by its caller.

What I ran

Reviewed head dc7084bc74e4199cd1fc60b062250dd186f18013. I read the prepared description, commits, manifest and diff, then used repo_read.py to inspect the changed implementation, declaration, test and relevant CMake configuration. No tests or build commands were run.

Results

Check Result Note
Changed-code review failed Prototype mismatch
Tests not run No command execution available

Findings

Blocking

  • core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp:681 declares the export with an explicit void* receiver before the DocumentLoader*, but the matching implementation at core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp:76 has the receiver only in its parameter list, as required by the C++ member-function ABI. This makes the declaration incompatible with the definition and changes the call interface; the new test calls using the declaration at core/libs/prx/libSceNKWebKit/tests/EmptyClientsCredentialStorage.cpp:12-13, so it exercises the mismatched prototype rather than verifying that the implementation is callable through its actual ABI. Align the declaration with the definition and validate the explicit receiver/argument placement against the intended ABI.

Non-blocking

None.

Not verified

  • Export.cpp and docs/dev/debt/libSceNKWebKit.md were excluded from the prepared bundle by size. I read the relevant head ranges through repo_read.py; the rest of those files was not reviewed.
  • No build, test, console or hardware behavior was run. The PR description reports a Linux CTest run at a different revision; that is author-reported, not independently verified.
  • The included CMake file glob-registers tests, but I did not run configuration or confirm the resulting test registration.

To get this to a good state

Correct the declaration and implementation/test call shape to agree on the ABI, then rerun the credential-storage test and relevant build checks on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5995118273 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17569#pullrequestreview-5995118273). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T15:27:49Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: correct the export prototype so it matches the ABI and can be used by its caller. ## What I ran Reviewed head `dc7084bc74e4199cd1fc60b062250dd186f18013`. I read the prepared description, commits, manifest and diff, then used `repo_read.py` to inspect the changed implementation, declaration, test and relevant CMake configuration. No tests or build commands were run. ## Results | Check | Result | Note | |---|---|---| | Changed-code review | failed | Prototype mismatch | | Tests | not run | No command execution available | ## Findings ### Blocking - `core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp:681` declares the export with an explicit `void*` receiver before the `DocumentLoader*`, but the matching implementation at `core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp:76` has the receiver only in its parameter list, as required by the C++ member-function ABI. This makes the declaration incompatible with the definition and changes the call interface; the new test calls using the declaration at `core/libs/prx/libSceNKWebKit/tests/EmptyClientsCredentialStorage.cpp:12-13`, so it exercises the mismatched prototype rather than verifying that the implementation is callable through its actual ABI. Align the declaration with the definition and validate the explicit receiver/argument placement against the intended ABI. ### Non-blocking None. ## Not verified - `Export.cpp` and `docs/dev/debt/libSceNKWebKit.md` were excluded from the prepared bundle by size. I read the relevant head ranges through `repo_read.py`; the rest of those files was not reviewed. - No build, test, console or hardware behavior was run. The PR description reports a Linux CTest run at a different revision; that is author-reported, not independently verified. - The included CMake file glob-registers tests, but I did not run configuration or confirm the resulting test registration. ## To get this to a good state Correct the declaration and implementation/test call shape to agree on the ABI, then rerun the credential-storage test and relevant build checks on the updated head.
MarcZX10 commented 2026-11-22 06:43:31 +00:00 (Migrated from github.com)

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

Review: APPROVED


Reviewed — looks good

Nothing in the inspected implementation blocks merging; the PR replaces the export stub with a false-returning implementation and adds focused checks for both identifier extremes.

What I ran

Reviewed head 11ca294abf37761c95b8e47b358447539d593770. I read description.md, commits.md, manifest.json, diff.patch, the added-line ranges in LegacyExports.hpp, EmptyClients.cpp, and EmptyClientsCredentialStorage.cpp, and the relevant Export.cpp range. I also searched the NKWebKit tree for the new symbol and test references. No tests or build commands were run.

Results

Check Result Note
Diff and changed-line review passed Implementation and test lines inspected
Test execution not run Author reports Linux CTest 6575/6575 passed
Full changed-file review not run Debt note was not readable; export file was not read in full

Findings

Blocking

None identified in the inspected code.

Non-blocking

None.

Not verified

docs/dev/debt/changes/nkwebkit-credential-storage-policy.md could not be read by the reader. Export.cpp was reviewed only around the removed stub, not in full. I did not run tests, check PS5 ABI behavior, or verify the external WebKit references described in the debt note. The reader also exposed no files.json; the manifest lists five changed files, four of which were read at least at the changed-line ranges.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6010817181 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17569#pullrequestreview-6010817181). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T06:43:31Z. **Review:** APPROVED --- # Reviewed — looks good Nothing in the inspected implementation blocks merging; the PR replaces the export stub with a false-returning implementation and adds focused checks for both identifier extremes. ## What I ran Reviewed head `11ca294abf37761c95b8e47b358447539d593770`. I read `description.md`, `commits.md`, `manifest.json`, `diff.patch`, the added-line ranges in `LegacyExports.hpp`, `EmptyClients.cpp`, and `EmptyClientsCredentialStorage.cpp`, and the relevant `Export.cpp` range. I also searched the NKWebKit tree for the new symbol and test references. No tests or build commands were run. ## Results | Check | Result | Note | |---|---|---| | Diff and changed-line review | passed | Implementation and test lines inspected | | Test execution | not run | Author reports Linux CTest 6575/6575 passed | | Full changed-file review | not run | Debt note was not readable; export file was not read in full | ## Findings ### Blocking None identified in the inspected code. ### Non-blocking None. ## Not verified `docs/dev/debt/changes/nkwebkit-credential-storage-policy.md` could not be read by the reader. `Export.cpp` was reviewed only around the removed stub, not in full. I did not run tests, check PS5 ABI behavior, or verify the external WebKit references described in the debt note. The reader also exposed no `files.json`; the manifest lists five changed files, four of which were read at least at the changed-line ranges. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 16:01:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T16:01:07Z.

Review: COMMENTED


I built and ran the branch's EmptyClientsCredentialStorage fixture on Linux against the existing runtime libraries. It passed both cases for the empty loader client's credential-storage response.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6173433893 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17569#pullrequestreview-6173433893). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T16:01:07Z. **Review:** COMMENTED --- I built and ran the branch's `EmptyClientsCredentialStorage` fixture on Linux against the existing runtime libraries. It passed both cases for the empty loader client's credential-storage response. 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!17569
No description provided.