feat(nkwebkit): implement four document loader callbacks #17602
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17602"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by B-Howell on 2026-11-09T00:31:24Z.
What
Implement four existing
EmptyFrameLoaderClientcallbacks as emptyvoidproviders insrc/EmptyClients.cpp:assignIdentifierToInitialRequest(dnvpRyqCZtA)updateCachedDocumentLoader(WZuPFqNHaW4)dispatchUnableToImplementPolicy(Ctm-m3Y326Q)setTitle(2oNey8Gkn4M)The authoritative source is pinned WebKit EmptyClients.cpp at
80f77e94c63ee7202eec3d4b5b1a021dd89011ba, SHA-256EEF819B6FFC10CDABD15BC6F3882D1A98B0BB893232EB0EB8145AB55E683B832. 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 libSceNKWebKitmeasures four additional implemented exports, from 2,125/10,982 to 2,129/10,982. #17563 implements the separatesetMainFrameDocumentReadycallback. 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
cb2bb5caon base286b14d2f7fd8d74cea82c432cc62e368d6d4beb:nkwebkit_base_testsbuilt successfully (exit 0); CTest^nkwebkit_base$returned 8 after reporting all four exactNotImplementedmessages in fixture order and reaching the expectedRequirefailure at line 1610. This was the expected negative-control outcome.Windows 11 GREEN on
0c9d12cb6f4080c27ec2ddddba7b4c58f9ea9a8c, WinLibs GCC 15.2.0 r7 UCRT, Release:nkwebkit_base3/3,nkwebkit_constants3/3, public headers 65/65.Ubuntu WSL GREEN on the same head, GCC 11.4, Release:
nkwebkit_base3/3,nkwebkit_constants3/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 ofmainatcec5030128a1bc530a5584d51fc762309a2bc5d2that keeps both these four callbacks and the ten from #17328, passednkwebkit_base3/3,nkwebkit_forwarding3/3 andnkwebkit_constants3/3. Conventions passed.Ubuntu WSL, GCC 11.4, Release: exact
a16320195bef66645ca57924bb5f5d4d8404f676, an ordinary merge ofmainat145e689adab572c44a99369516565d28e85f6c12that keeps both these four callbacks and the six from #17540, passednkwebkit_base3/3,nkwebkit_forwarding3/3 andnkwebkit_constants3/3. Conventions passed.The exact tested branch merges cleanly with
7854b95cand 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 ofmainatc65eb462147181941a64eaf6179876e81ae8a118after #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 ofmainat6cc25635cf62042b693c8e2e4ff12ec8a47abb70after #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 ofmainat993ad4ed86a15cbbb31cbd9fa9e512ee2c1b7c9fafter #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 ofmainatc89d400b6a91after #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 inExport.cppand 150+ inLegacyExports.hpp; not rebuilt.On
67bccf9f7ef516b9de77fffb8c230a776bbaf2f7, an ordinary merge ofmainat11392ec8ef9, 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_basepassed 3/3.On
60fee084aef, an ordinary merge ofmainat82160bba912after #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 ofmainatc76eb6a2643after #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 ofmainat19ba356e59fafter #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 ofmainatb4a82720a82, which includes the #19618 revert of theguest_ces_widetimeouts 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 inTypes.hpp, which these callbacks do not use, so not rebuilt.On
700433f281c: merged main after #19603; count line removed. Ordinary merge ofmainat9b22c40f49a, 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 main790e9a371cc:ctest -R nkwebkit116/116 passed,patched_librariespassed once the #19822 fix was in. Re-merged ontob9fb5ab5a32(no NKWebKit changes in between);check_conventionspassed. Removed a debt row that the automatic merge had brought back (convertMainResourceLoadToDownload, implemented on main).Debt fragment
0730892154: merged mainc3d38470e0cand moved this PR's debt edits intodocs/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 --checkandcheck_conventions.py --base origin/mainpass. Documentation only, no build.Checklist
Based on current
main; no other open PR implements the same functionsOne 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 fileNo notes, investigation
.mdfiles 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.