feat(nkwebkit): implement five empty resource callbacks #17352

Merged
B-Howell merged 23 commits from upstream-pr/17352 into main 2026-11-15 19:59:46 +00:00
B-Howell commented 2026-11-08 18:30:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by B-Howell on 2026-11-08T18:30:30Z.


What

Implements five existing EmptyFrameLoaderClient callbacks as empty void functions: prefetchDNS, startDownload, makeRepresentation, dispatchDidFailLoad, and convertMainResourceLoadToDownload. The pinned WebKit 11.x source defines these callbacks as empty. The total export count is unchanged. Physical console ABI remains unverified. This batch covers a separate set of exports from #17328. If either PR lands first, I will refresh the other branch to preserve both sets of callbacks and tests.

tools/progress.py measures +5 on base 52dfa45e. libSceNKWebKit moves from 2,118/10,982 to 2,123/10,982. Repository progress moves from 12,488/37,872 to 12,493/37,872.

Tested

  • The Windows test-only control on the original base reached the named prefetchDNS throw (CTest exit 8). The original candidate passed nkwebkit_base 3/3 and public headers 65/65 on Windows and WSL.

  • Exact d3546f82063de4e458d5d80e0b5caa2258d7439b passed nkwebkit_base 3/3 and public headers 65/65 on Windows (WinLibs GCC 15.2.0 r7) and Ubuntu WSL (GCC 11.4).

  • WSL Ubuntu with GCC 11.4. Exact e8cb3a7772b94d3596b508686fc57a96e883d32a, an ordinary merge of main at f89525511104d5ef691f703cedd8616f692f6df4 that keeps both these five callbacks and the ten from #17328, passed nkwebkit_base and nkwebkit_forwarding 3/3 each. Conventions passed.

  • Exact 93675cfee898e205caada37fdeddb6f4c74ab606 is an ordinary merge of main at 145e689adab572c44a99369516565d28e85f6c12. Only the debt count line conflicted; it is recounted from the merged tree (5950). No source conflict, so not rebuilt. Conventions passed.

  • On 660fd303ff65e0f94a0d0a7f9f1d871603d3d5f2, an ordinary merge of main at c65eb462147181941a64eaf6179876e81ae8a118 after #16937, conventions passed; doc-only conflict on the count line; count is main's stated 5967 minus this change's 5 removed stubs (5962). Not rebuilt.

  • On 266afe5b2af119edb626975874a2cbea3ca1b0e1, an ordinary merge of main at 6cc25635cf62042b693c8e2e4ff12ec8a47abb70 after #18533, conventions passed; doc-only conflict on the count line; count is main's stated 5965 minus this change's 5 removed inventory declarations (5960). Not rebuilt.

  • On fed72aa36dae2070255da4e8c70c518b6638625c, an ordinary merge of main at 993ad4ed86a15cbbb31cbd9fa9e512ee2c1b7c9f after #18094, conventions passed; doc-only conflict on the count line; count is main's stated 5962 minus this change's 5 removed inventory declarations (5957). #18094's test registration in tests/Base.cpp main() auto-merged next to ours, so WSL Ubuntu with GCC 11.4.0 rebuilt nkwebkit_base_tests, and nkwebkit_base passed 1/1.

  • On 1aeecb36e674fe1d0eff3d40c798c897cdd79748, an ordinary merge of main at c89d400b6a91 after #18224 and #18804, conventions passed; doc-only conflict on the count line; count is main's stated 5961 minus this change's 5 removed inventory declarations (5956). Their code is 3,900+ lines from ours in Export.cpp and does not touch tests/Base.cpp; not rebuilt.

  • On cb884d2a121f570e44a76e5530210d231613f181, an ordinary merge of main at 1d1fb4f1e1762b07fe309d1afd13cdbbd58b0f44 after #18415, conventions passed; doc-only conflict on the count line and the Functional list (kept both entries); count is main's stated 5950 minus this change's 5 removed inventory declarations (5945). Main's code is 2,800+ lines from ours in Export.cpp and InventoryExports.hpp and 130+ lines from ours in tests/Base.cpp; not rebuilt.

  • On 54c1fe022c6, an ordinary merge of main at 82160bba912 after #18538, conventions passed; doc-only conflict on the count line; count is main's stated 5949 minus this change's 5 removed stubs (5944). Main's code changes since the last merge are over 1,000 lines from this PR's hunks, so the earlier test results stand.

  • On 0c110a82670, an ordinary merge of main at 999d6f8ffd6, conventions passed; the previous head carried two count lines (5944 and 5940) from union merges, now one line at main's stated 5939 minus this change's 5 removed stubs (5934). Main's code changes are 7,000+ lines from this PR's hunks, so not rebuilt.

  • On ea00996a827: merged main after #19603; count line removed. Ordinary merge of main at 9b22c40f49a, conventions passed. The debt diff against main is now only this PR's entry and its 5 removed table rows. No code conflict and main changed none of this PR's other files, so not rebuilt.

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:5213945902 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17352). Originally posted by [B-Howell](https://github.com/B-Howell) on 2026-11-08T18:30:30Z. --- ### What Implements five existing `EmptyFrameLoaderClient` callbacks as empty `void` functions: `prefetchDNS`, `startDownload`, `makeRepresentation`, `dispatchDidFailLoad`, and `convertMainResourceLoadToDownload`. The [pinned WebKit 11.x source](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/WebCore/loader/EmptyClients.cpp) defines these callbacks as empty. The total export count is unchanged. Physical console ABI remains unverified. This batch covers a separate set of exports from #17328. If either PR lands first, I will refresh the other branch to preserve both sets of callbacks and tests. `tools/progress.py` measures +5 on base `52dfa45e`. libSceNKWebKit moves from 2,118/10,982 to 2,123/10,982. Repository progress moves from 12,488/37,872 to 12,493/37,872. ### 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. --> - The Windows test-only control on the original base reached the named `prefetchDNS` throw (CTest exit 8). The original candidate passed `nkwebkit_base` 3/3 and public headers 65/65 on Windows and WSL. - Exact `d3546f82063de4e458d5d80e0b5caa2258d7439b` passed `nkwebkit_base` 3/3 and public headers 65/65 on Windows (WinLibs GCC 15.2.0 r7) and Ubuntu WSL (GCC 11.4). - WSL Ubuntu with GCC 11.4. Exact `e8cb3a7772b94d3596b508686fc57a96e883d32a`, an ordinary merge of `main` at `f89525511104d5ef691f703cedd8616f692f6df4` that keeps both these five callbacks and the ten from #17328, passed `nkwebkit_base` and `nkwebkit_forwarding` 3/3 each. Conventions passed. - Exact `93675cfee898e205caada37fdeddb6f4c74ab606` is an ordinary merge of `main` at `145e689adab572c44a99369516565d28e85f6c12`. Only the debt count line conflicted; it is recounted from the merged tree (5950). No source conflict, so not rebuilt. Conventions passed. - On `660fd303ff65e0f94a0d0a7f9f1d871603d3d5f2`, an ordinary merge of `main` at `c65eb462147181941a64eaf6179876e81ae8a118` after #16937, conventions passed; doc-only conflict on the count line; count is main's stated 5967 minus this change's 5 removed stubs (5962). Not rebuilt. - On `266afe5b2af119edb626975874a2cbea3ca1b0e1`, an ordinary merge of `main` at `6cc25635cf62042b693c8e2e4ff12ec8a47abb70` after #18533, conventions passed; doc-only conflict on the count line; count is main's stated 5965 minus this change's 5 removed inventory declarations (5960). Not rebuilt. - On `fed72aa36dae2070255da4e8c70c518b6638625c`, an ordinary merge of `main` at `993ad4ed86a15cbbb31cbd9fa9e512ee2c1b7c9f` after #18094, conventions passed; doc-only conflict on the count line; count is main's stated 5962 minus this change's 5 removed inventory declarations (5957). #18094's test registration in `tests/Base.cpp` `main()` auto-merged next to ours, so WSL Ubuntu with GCC 11.4.0 rebuilt `nkwebkit_base_tests`, and `nkwebkit_base` passed 1/1. - On `1aeecb36e674fe1d0eff3d40c798c897cdd79748`, an ordinary merge of `main` at `c89d400b6a91` after #18224 and #18804, conventions passed; doc-only conflict on the count line; count is main's stated 5961 minus this change's 5 removed inventory declarations (5956). Their code is 3,900+ lines from ours in `Export.cpp` and does not touch `tests/Base.cpp`; not rebuilt. - On `cb884d2a121f570e44a76e5530210d231613f181`, an ordinary merge of `main` at `1d1fb4f1e1762b07fe309d1afd13cdbbd58b0f44` after #18415, conventions passed; doc-only conflict on the count line and the Functional list (kept both entries); count is main's stated 5950 minus this change's 5 removed inventory declarations (5945). Main's code is 2,800+ lines from ours in `Export.cpp` and `InventoryExports.hpp` and 130+ lines from ours in `tests/Base.cpp`; not rebuilt. - On `54c1fe022c6`, an ordinary merge of `main` at `82160bba912` after #18538, conventions passed; doc-only conflict on the count line; count is main's stated 5949 minus this change's 5 removed stubs (5944). Main's code changes since the last merge are over 1,000 lines from this PR's hunks, so the earlier test results stand. - On `0c110a82670`, an ordinary merge of `main` at `999d6f8ffd6`, conventions passed; the previous head carried two count lines (5944 and 5940) from union merges, now one line at main's stated 5939 minus this change's 5 removed stubs (5934). Main's code changes are 7,000+ lines from this PR's hunks, so not rebuilt. - On `ea00996a827`: merged main after #19603; count line removed. Ordinary merge of `main` at `9b22c40f49a`, conventions passed. The debt diff against main is now only this PR's entry and its 5 removed table rows. No code conflict and main changed none of this PR's other files, so not rebuilt. ### 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 18:50:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-08T18:50:20Z.

Review: COMMENTED


Read against the pinned WebKit source (PS5-WebKit-11.x 80f77e94, Source/WebCore/loader/EmptyClients.cpp). I didn't build this branch.

  • All five bodies are empty there, at exactly the lines the debt entry cites: makeRepresentation 637-639, convertMainResourceLoadToDownload 666-668, dispatchDidFailLoad 786-788, startDownload 839-841 and prefetchDNS 1084-1086. All five are void.
  • The mangled names are unchanged, so the NIDs stay the same. Each moves from the throwing inventory list to a documented no-op, and the debt file drops the matching table rows.
  • One nearby name to keep apart: dispatchDidFailLoading(DocumentLoader*, ResourceLoaderIdentifier, const ResourceError&) (725-727) is also empty upstream, but it's a different export, and it's not part of this PR.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5819157002 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17352#pullrequestreview-5819157002). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-08T18:50:20Z. **Review:** COMMENTED --- Read against the pinned WebKit source (`PS5-WebKit-11.x` `80f77e94`, `Source/WebCore/loader/EmptyClients.cpp`). I didn't build this branch. - All five bodies are empty there, at exactly the lines the debt entry cites: `makeRepresentation` 637-639, `convertMainResourceLoadToDownload` 666-668, `dispatchDidFailLoad` 786-788, `startDownload` 839-841 and `prefetchDNS` 1084-1086. All five are `void`. - The mangled names are unchanged, so the NIDs stay the same. Each moves from the throwing inventory list to a documented no-op, and the debt file drops the matching table rows. - One nearby name to keep apart: `dispatchDidFailLoading(DocumentLoader*, ResourceLoaderIdentifier, const ResourceError&)` (725-727) is also empty upstream, but it's a different export, and it's not part of this PR.
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!17352
No description provided.