feat(nkwebkit): implement ten empty loader callbacks #17328

Merged
B-Howell merged 10 commits from upstream-pr/17328 into main 2026-11-12 03:18:00 +00:00
B-Howell commented 2026-11-08 17:59:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by B-Howell on 2026-11-08T17:59:24Z.


What

Implement ten existing EmptyFrameLoaderClient callbacks. The pinned WebKit implementation defines them as empty void callbacks. These are title-change, completion/error, history, plugin redirect, insecure-content, and cached/provisional-frame notifications. The implementation preserves that behavior.

tools/progress.py reports 10 more implemented exports on base ef9ab2ea. libSceNKWebKit moves from 2,116/10,982 to 2,126/10,982. Repository progress moves from 12,482/37,870 to 12,492/37,870. Physical console ABI remains unverified.

Tested

  • Windows controls on the two original increments reached named throwing loader exports. The original Windows and WSL qualifications each passed nkwebkit_base 3/3 and public headers 65/65.
  • Exact 105d042d9e4bfb05706dd7f4a70beeae62e526c3 passed nkwebkit_base 3/3 and public headers 65/65 on Windows (WinLibs GCC 15.2.0 r7) and Ubuntu WSL (GCC 11.4).

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

Prepared with Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5213714936 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17328). Originally posted by [B-Howell](https://github.com/B-Howell) on 2026-11-08T17:59:24Z. --- ### What Implement ten existing `EmptyFrameLoaderClient` callbacks. The [pinned WebKit implementation](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/WebCore/loader/EmptyClients.cpp) defines them as empty `void` callbacks. These are title-change, completion/error, history, plugin redirect, insecure-content, and cached/provisional-frame notifications. The implementation preserves that behavior. `tools/progress.py` reports 10 more implemented exports on base `ef9ab2ea`. libSceNKWebKit moves from 2,116/10,982 to 2,126/10,982. Repository progress moves from 12,482/37,870 to 12,492/37,870. Physical console ABI remains unverified. ### 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. --> - Windows controls on the two original increments reached named throwing loader exports. The original Windows and WSL qualifications each passed `nkwebkit_base` 3/3 and public headers 65/65. - Exact `105d042d9e4bfb05706dd7f4a70beeae62e526c3` passed `nkwebkit_base` 3/3 and public headers 65/65 on Windows (WinLibs GCC 15.2.0 r7) and Ubuntu WSL (GCC 11.4). ### 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 <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no --> Prepared with Codex.
PrivacyOnion commented 2026-11-08 18:18:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-08T18:18:59Z.

Review: APPROVED


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

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_base_tests built cleanly.
  • CTest (nkwebkit_base):
    1/1 Test #3383: nkwebkit_base ....................   Passed    0.03 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/src/EmptyClients.cpp reverted to main and the new tests kept, the suite fails:
    1/1 Test #3383: nkwebkit_base ....................***Failed    0.11 sec
    0% tests passed, 1 tests failed out of 1
    
    Restoring the change makes it pass again.
  • Code reading:
    • core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp: Verified all ten WebCore::EmptyFrameLoaderClient symbols (didChangeTitle, finishedLoading, willChangeTitle, setMainDocumentError, revertToProvisionalState, saveViewStateToItem, redirectDataToPlugin, didRunInsecureContent, dispatchDidReceiveTitle, transitionToCommittedFromCachedFrame) return void and define no-op bodies matching upstream WebKit without memory dereferences or leaks.
    • core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp & Export.cpp: Verified all ten exports were removed from throwing NotImplemented_nid_no_patch stubs in Export.cpp and signatures correctly updated from int to void in InventoryExports.hpp.
    • core/libs/prx/libSceNKWebKit/tests/Base.cpp: Verified TestEmptyFrameLoaderClient invokes all ten callbacks within try/catch in main(), satisfying the negative gate test when implementations are reverted.
    • docs/dev/debt/libSceNKWebKit.md: Confirmed all ten symbols and NIDs (CdtXvtmle9M, lNAJstgvTDI, G5ZDNtddzSk, h1Ft1kj6f0g, 6Eu5XtKCAy0, NU3hnL+BDoQ, szwrXfLPPlE, WSiZNjSOyqM, aRwBsP0ib1E, pHmVAreojKs) were removed from the unimplemented inventory table and recorded in technical debt noting unverified console ABI.
    • AGENTS.md & Repository Conventions: Verified zero comments in code, Conventional Commits adherence in PR title, full PR description checklist completion, and no auxiliary/temporary files introduced.
  • Note: the AI-assisted checkbox can stay.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5819053434 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17328#pullrequestreview-5819053434). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-08T18:18:59Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `105d042d9e`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_base_tests` built cleanly. - **CTest** (`nkwebkit_base`): ``` 1/1 Test #3383: nkwebkit_base .................... Passed 0.03 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/src/EmptyClients.cpp` reverted to `main` and the new tests kept, the suite fails: ``` 1/1 Test #3383: nkwebkit_base ....................***Failed 0.11 sec 0% tests passed, 1 tests failed out of 1 ``` Restoring the change makes it pass again. - **Code reading**: - core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp: Verified all ten WebCore::EmptyFrameLoaderClient symbols (didChangeTitle, finishedLoading, willChangeTitle, setMainDocumentError, revertToProvisionalState, saveViewStateToItem, redirectDataToPlugin, didRunInsecureContent, dispatchDidReceiveTitle, transitionToCommittedFromCachedFrame) return void and define no-op bodies matching upstream WebKit without memory dereferences or leaks. - core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp & Export.cpp: Verified all ten exports were removed from throwing NotImplemented_nid_no_patch stubs in Export.cpp and signatures correctly updated from int to void in InventoryExports.hpp. - core/libs/prx/libSceNKWebKit/tests/Base.cpp: Verified TestEmptyFrameLoaderClient invokes all ten callbacks within try/catch in main(), satisfying the negative gate test when implementations are reverted. - docs/dev/debt/libSceNKWebKit.md: Confirmed all ten symbols and NIDs (CdtXvtmle9M, lNAJstgvTDI, G5ZDNtddzSk, h1Ft1kj6f0g, 6Eu5XtKCAy0, NU3hnL+BDoQ, szwrXfLPPlE, WSiZNjSOyqM, aRwBsP0ib1E, pHmVAreojKs) were removed from the unimplemented inventory table and recorded in technical debt noting unverified console ABI. - AGENTS.md & Repository Conventions: Verified zero comments in code, Conventional Commits adherence in PR title, full PR description checklist completion, and no auxiliary/temporary files introduced. - Note: the AI-assisted checkbox can stay. Looks Good To Me
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!17328
No description provided.