feat(nkwebkit): implement four document loader callbacks #17602

Merged
B-Howell merged 25 commits from upstream-pr/17602 into main 2026-11-16 13:40:40 +00:00
B-Howell commented 2026-11-09 00:31:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by B-Howell on 2026-11-09T00:31:24Z.


What

Implement four existing EmptyFrameLoaderClient callbacks as empty void providers in src/EmptyClients.cpp:

  • assignIdentifierToInitialRequest (dnvpRyqCZtA)

  • updateCachedDocumentLoader (WZuPFqNHaW4)

  • dispatchUnableToImplementPolicy (Ctm-m3Y326Q)

  • setTitle (2oNey8Gkn4M)

The authoritative source is pinned WebKit EmptyClients.cpp at 80f77e94c63ee7202eec3d4b5b1a021dd89011ba, SHA-256 EEF819B6FFC10CDABD15BC6F3882D1A98B0BB893232EB0EB8145AB55E683B832. The source contains empty definitions for these callbacks. The providers use the existing NIDs listed above. Physical console ABI remains unmeasured.

tools/progress.py --module libSceNKWebKit measures four additional implemented exports, from 2,125/10,982 to 2,129/10,982. #17563 implements the separate setMainFrameDocumentReady callback. The overlap report flags three inherited throwing definitions in #13486 whose file is byte-identical to its merged main parent. #17540 and #17569 add different callbacks at a shared insertion point. If either lands first, I will merge current main and retain both callback sets and their fixtures.

Tested

  • Windows RED fixture cb2bb5ca on base 286b14d2f7fd8d74cea82c432cc62e368d6d4beb: nkwebkit_base_tests built successfully (exit 0); CTest ^nkwebkit_base$ returned 8 after reporting all four exact NotImplemented messages in fixture order and reaching the expected Require failure at line 1610. This was the expected negative-control outcome.

  • Windows 11 GREEN on 0c9d12cb6f4080c27ec2ddddba7b4c58f9ea9a8c, WinLibs GCC 15.2.0 r7 UCRT, Release: nkwebkit_base 3/3, nkwebkit_constants 3/3, public headers 65/65.

  • Ubuntu WSL GREEN on the same head, GCC 11.4, Release: nkwebkit_base 3/3, nkwebkit_constants 3/3, public headers 65/65. Both test checkouts restored cleanly.

  • python -B tools/check_conventions.py --base b5a9a4781c51efff59b3bfc3662f946fd1ef571f --head 0c9d12cb6f4080c27ec2ddddba7b4c58f9ea9a8c: passed.

  • Ubuntu WSL, GCC 11.4, Release: exact ac15557a8564f862cce785263769df049f344ab7, an ordinary merge of main at cec5030128a1bc530a5584d51fc762309a2bc5d2 that keeps both these four callbacks and the ten from #17328, passed nkwebkit_base 3/3, nkwebkit_forwarding 3/3 and nkwebkit_constants 3/3. Conventions passed.

  • Ubuntu WSL, GCC 11.4, Release: exact a16320195bef66645ca57924bb5f5d4d8404f676, an ordinary merge of main at 145e689adab572c44a99369516565d28e85f6c12 that keeps both these four callbacks and the six from #17540, passed nkwebkit_base 3/3, nkwebkit_forwarding 3/3 and nkwebkit_constants 3/3. Conventions passed.

The exact tested branch merges cleanly with 7854b95c and preserves the separate OpenPanelParameters implementation and tests from #15159. The preview has the same four-callback patch as the tested branch.

  • On 67f365ea4ab9fb805e57986f583b2e68ff50c004, 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 4 removed stubs (5963). Not rebuilt.

  • On c1db913f77e185ea7e1f76cce6e1f2849a371647, 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 the three inventory declarations this change implements (5962). Not rebuilt.

  • On 8dbd0f264ea90bcfa8e6d8d5fc11cfd2aa3c465b, an ordinary merge of main at 993ad4ed86a15cbbb31cbd9fa9e512ee2c1b7c9f after #18094; the count line merged cleanly only because main's new number matched ours, so it was corrected to main's stated 5962 minus the three inventory declarations this change implements (5959). Conventions passed. #18094's code is 700+ lines from ours; not rebuilt.

  • On 5964471f496aa108652132563394b27a76f7c41f, 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 the three inventory declarations this change implements (5958). Their code is 600+ lines from ours in Export.cpp and 150+ in LegacyExports.hpp; not rebuilt.

  • On 67bccf9f7ef516b9de77fffb8c230a776bbaf2f7, an ordinary merge of main at 11392ec8ef9, conventions passed; doc-only conflicts on the debt list and count line; count is main's stated 5950 minus the three inventory declarations this change implements (5947). Main's Export.cpp and LegacyExports.hpp removals landed within 50 lines of ours, so it was rebuilt: WSL Ubuntu, GCC, nkwebkit_base passed 3/3.

  • On 60fee084aef, 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 3 removed stubs (5946). 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 1ee064e9df4, an ordinary merge of main at c76eb6a2643 after #19322 and #17764, conventions passed; doc-only union merge of the count line; count is main's stated 5940 minus this change's 3 removed stubs (5937). Main's code changes are over 6,000 lines from this PR's hunks, so not rebuilt.

  • On 6d6fc94c440, an ordinary merge of main at 19ba356e59f after #19460, conventions passed; doc-only union merge of the count line; count is main's stated 5939 minus this change's 3 removed stubs (5936). #19460's code is 8,000+ lines from this PR's hunks, so not rebuilt.

  • On 3059fa4f7d2, an ordinary merge of main at b4a82720a82, which includes the #19618 revert of the guest_ces_wide timeouts that failed the previous Windows run; clean merge, conventions passed; count is main's stated 5939 minus this change's 3 removed stubs (5936). Main's NKWebKit change is in Types.hpp, which these callbacks do not use, so not rebuilt.

  • On 700433f281c: 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 3 removed table rows. No code conflict and main changed none of this PR's other files, so not rebuilt.

  • Main merge 21195f7a909: Windows 11, WinLibs GCC 15.2, Release, all 18 of our main merges from this round built together on main 790e9a371cc: ctest -R nkwebkit 116/116 passed, patched_libraries passed once the #19822 fix was in. Re-merged onto b9fb5ab5a32 (no NKWebKit changes in between); check_conventions passed. Removed a debt row that the automatic merge had brought back (convertMainResourceLoadToDownload, implemented on main).

  • Debt fragment 0730892154: merged main c3d38470e0c and moved this PR's debt edits into docs/dev/debt/changes/codex-nkwebkit-document-loader-notifications-four.md; the debt files match main, and the fragment applied to main gives the same debt lines as the previous head. debt_fold.py --check and check_conventions.py --base origin/main pass. Documentation only, no build.

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:5216808035 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17602). Originally posted by [B-Howell](https://github.com/B-Howell) on 2026-11-09T00:31:24Z. --- ### What Implement four existing `EmptyFrameLoaderClient` callbacks as empty `void` providers in `src/EmptyClients.cpp`: - `assignIdentifierToInitialRequest` (`dnvpRyqCZtA`) - `updateCachedDocumentLoader` (`WZuPFqNHaW4`) - `dispatchUnableToImplementPolicy` (`Ctm-m3Y326Q`) - `setTitle` (`2oNey8Gkn4M`) The authoritative source is [pinned WebKit EmptyClients.cpp](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/WebCore/loader/EmptyClients.cpp) at `80f77e94c63ee7202eec3d4b5b1a021dd89011ba`, SHA-256 `EEF819B6FFC10CDABD15BC6F3882D1A98B0BB893232EB0EB8145AB55E683B832`. The source contains empty definitions for these callbacks. The providers use the existing NIDs listed above. Physical console ABI remains unmeasured. `tools/progress.py --module libSceNKWebKit` measures four additional implemented exports, from 2,125/10,982 to 2,129/10,982. #17563 implements the separate `setMainFrameDocumentReady` callback. The overlap report flags three inherited throwing definitions in #13486 whose file is byte-identical to its merged main parent. #17540 and #17569 add different callbacks at a shared insertion point. If either lands first, I will merge current main and retain both callback sets and their fixtures. ### 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 RED fixture `cb2bb5ca` on base `286b14d2f7fd8d74cea82c432cc62e368d6d4beb`: `nkwebkit_base_tests` built successfully (exit 0); CTest `^nkwebkit_base$` returned 8 after reporting all four exact `NotImplemented` messages in fixture order and reaching the expected `Require` failure at line 1610. This was the expected negative-control outcome. - Windows 11 GREEN on `0c9d12cb6f4080c27ec2ddddba7b4c58f9ea9a8c`, WinLibs GCC 15.2.0 r7 UCRT, Release: `nkwebkit_base` 3/3, `nkwebkit_constants` 3/3, public headers 65/65. - Ubuntu WSL GREEN on the same head, GCC 11.4, Release: `nkwebkit_base` 3/3, `nkwebkit_constants` 3/3, public headers 65/65. Both test checkouts restored cleanly. - `python -B tools/check_conventions.py --base b5a9a4781c51efff59b3bfc3662f946fd1ef571f --head 0c9d12cb6f4080c27ec2ddddba7b4c58f9ea9a8c`: passed. - Ubuntu WSL, GCC 11.4, Release: exact `ac15557a8564f862cce785263769df049f344ab7`, an ordinary merge of `main` at `cec5030128a1bc530a5584d51fc762309a2bc5d2` that keeps both these four callbacks and the ten from #17328, passed `nkwebkit_base` 3/3, `nkwebkit_forwarding` 3/3 and `nkwebkit_constants` 3/3. Conventions passed. - Ubuntu WSL, GCC 11.4, Release: exact `a16320195bef66645ca57924bb5f5d4d8404f676`, an ordinary merge of `main` at `145e689adab572c44a99369516565d28e85f6c12` that keeps both these four callbacks and the six from #17540, passed `nkwebkit_base` 3/3, `nkwebkit_forwarding` 3/3 and `nkwebkit_constants` 3/3. Conventions passed. The exact tested branch merges cleanly with `7854b95c` and preserves the separate OpenPanelParameters implementation and tests from #15159. The preview has the same four-callback patch as the tested branch. - On `67f365ea4ab9fb805e57986f583b2e68ff50c004`, 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 4 removed stubs (5963). Not rebuilt. - On `c1db913f77e185ea7e1f76cce6e1f2849a371647`, 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 the three inventory declarations this change implements (5962). Not rebuilt. - On `8dbd0f264ea90bcfa8e6d8d5fc11cfd2aa3c465b`, an ordinary merge of `main` at `993ad4ed86a15cbbb31cbd9fa9e512ee2c1b7c9f` after #18094; the count line merged cleanly only because main's new number matched ours, so it was corrected to main's stated 5962 minus the three inventory declarations this change implements (5959). Conventions passed. #18094's code is 700+ lines from ours; not rebuilt. - On `5964471f496aa108652132563394b27a76f7c41f`, 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 the three inventory declarations this change implements (5958). Their code is 600+ lines from ours in `Export.cpp` and 150+ in `LegacyExports.hpp`; not rebuilt. - On `67bccf9f7ef516b9de77fffb8c230a776bbaf2f7`, an ordinary merge of `main` at `11392ec8ef9`, conventions passed; doc-only conflicts on the debt list and count line; count is main's stated 5950 minus the three inventory declarations this change implements (5947). Main's Export.cpp and LegacyExports.hpp removals landed within 50 lines of ours, so it was rebuilt: WSL Ubuntu, GCC, `nkwebkit_base` passed 3/3. - On `60fee084aef`, 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 3 removed stubs (5946). 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 `1ee064e9df4`, an ordinary merge of `main` at `c76eb6a2643` after #19322 and #17764, conventions passed; doc-only union merge of the count line; count is main's stated 5940 minus this change's 3 removed stubs (5937). Main's code changes are over 6,000 lines from this PR's hunks, so not rebuilt. - On `6d6fc94c440`, an ordinary merge of `main` at `19ba356e59f` after #19460, conventions passed; doc-only union merge of the count line; count is main's stated 5939 minus this change's 3 removed stubs (5936). #19460's code is 8,000+ lines from this PR's hunks, so not rebuilt. - On `3059fa4f7d2`, an ordinary merge of `main` at `b4a82720a82`, which includes the #19618 revert of the `guest_ces_wide` timeouts that failed the previous Windows run; clean merge, conventions passed; count is main's stated 5939 minus this change's 3 removed stubs (5936). Main's NKWebKit change is in `Types.hpp`, which these callbacks do not use, so not rebuilt. - On `700433f281c`: 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 3 removed table rows. No code conflict and main changed none of this PR's other files, so not rebuilt. - Main merge `21195f7a909`: Windows 11, WinLibs GCC 15.2, Release, all 18 of our main merges from this round built together on main `790e9a371cc`: `ctest -R nkwebkit` 116/116 passed, `patched_libraries` passed once the #19822 fix was in. Re-merged onto `b9fb5ab5a32` (no NKWebKit changes in between); `check_conventions` passed. Removed a debt row that the automatic merge had brought back (`convertMainResourceLoadToDownload`, implemented on main). - Debt fragment `0730892154`: merged main `c3d38470e0c` and moved this PR's debt edits into `docs/dev/debt/changes/codex-nkwebkit-document-loader-notifications-four.md`; the debt files match main, and the fragment applied to main gives the same debt lines as the previous head. `debt_fold.py --check` and `check_conventions.py --base origin/main` pass. Documentation only, no build. ### 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.
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!17602
No description provided.