feat(nkwebkit): implement six empty load lifecycle callbacks #17540

Merged
B-Howell merged 12 commits from upstream-pr/17540 into main 2026-11-12 04:47:56 +00:00
B-Howell commented 2026-11-08 21:10:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by B-Howell on 2026-11-08T21:10:35Z.


What

Implement six existing EmptyFrameLoaderClient resource-load callbacks as empty void functions. The pinned WebKit source has empty bodies for the request, authentication challenge, response, content length, finish, and failure notifications. Physical console ABI remains unverified. The exports are distinct from #17328 and #17352. If either lands first, I will refresh this branch to preserve both sets of callbacks and tests.

tools/progress.py measures +6 on base 095ff723. libSceNKWebKit moves from 2,119/10,982 to 2,125/10,982. Repository progress moves from 12,558/37,874 to 12,564/37,874.

Tested

  • Windows test-only control 6cd0b75e built nkwebkit_base_tests. The normal nkwebkit_base selector exited 8 and logged all six named throws.
  • Exact d7d2cf46bb4b752527be5243fc2cdfcb2e7a0c92 passed nkwebkit_base 3/3 and public headers 65/65 on Windows (WinLibs GCC 15.2.0 r7) and Ubuntu WSL (GCC 11.4). The same fixture exercises all six callbacks.
  • WSL Ubuntu with GCC 11.4. Exact 1ae722e66c5eb02ac0c6a82a1b5319d60f496645, an ordinary merge of main at cdc7c828787132d4e64e22b426ad8c00801ed6c6 that keeps both these six callbacks and the ten from #17328, passed nkwebkit_base and nkwebkit_forwarding 3/3 each. 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

Prepared with Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5215162877 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17540). Originally posted by [B-Howell](https://github.com/B-Howell) on 2026-11-08T21:10:35Z. --- ### What Implement six existing `EmptyFrameLoaderClient` resource-load callbacks as empty `void` functions. The [pinned WebKit source](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/WebCore/loader/EmptyClients.cpp#L679-L727) has empty bodies for the request, authentication challenge, response, content length, finish, and failure notifications. Physical console ABI remains unverified. The exports are distinct from #17328 and #17352. If either lands first, I will refresh this branch to preserve both sets of callbacks and tests. `tools/progress.py` measures +6 on base `095ff723`. libSceNKWebKit moves from 2,119/10,982 to 2,125/10,982. Repository progress moves from 12,558/37,874 to 12,564/37,874. ### 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 test-only control `6cd0b75e` built `nkwebkit_base_tests`. The normal `nkwebkit_base` selector exited 8 and logged all six named throws. - Exact `d7d2cf46bb4b752527be5243fc2cdfcb2e7a0c92` passed `nkwebkit_base` 3/3 and public headers 65/65 on Windows (WinLibs GCC 15.2.0 r7) and Ubuntu WSL (GCC 11.4). The same fixture exercises all six callbacks. - WSL Ubuntu with GCC 11.4. Exact `1ae722e66c5eb02ac0c6a82a1b5319d60f496645`, an ordinary merge of `main` at `cdc7c828787132d4e64e22b426ad8c00801ed6c6` that keeps both these six callbacks and the ten from #17328, passed `nkwebkit_base` and `nkwebkit_forwarding` 3/3 each. 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 <!-- #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.
gabichuuuuu commented 2026-11-08 22:00:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-08T22:00:55Z.

Review: COMMENTED


Windows run of head d7d2cf46bb, merged onto main 0bae53facd in one tree with eight other open PRs that touch different files (all nine merged cleanly). Setup: Windows 11, WinLibs GCC 15.2 r7 (x86_64-ucrt-posix-seh, the CI toolchain), Release, BUILD_TESTING=ON.

  • nkwebkit_base with --repeat until-fail:5: 5 / 5 pass.
  • Negative control, with main's Export.cpp, LegacyExports.hpp and EmptyClients.cpp and this PR's test: 5 / 5 runs fail.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5819850405 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17540#pullrequestreview-5819850405). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-08T22:00:55Z. **Review:** COMMENTED --- Windows run of head `d7d2cf46bb`, merged onto `main` `0bae53facd` in one tree with eight other open PRs that touch different files (all nine merged cleanly). Setup: Windows 11, WinLibs GCC 15.2 r7 (`x86_64-ucrt-posix-seh`, the CI toolchain), Release, `BUILD_TESTING=ON`. - `nkwebkit_base` with `--repeat until-fail:5`: 5 / 5 pass. - **Negative control,** with `main`'s `Export.cpp`, `LegacyExports.hpp` and `EmptyClients.cpp` and this PR's test: 5 / 5 runs fail.
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!17540
No description provided.