feat(libSceNKWebKit): implement seven legacy EmptyFrameLoaderClient callbacks #23743
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23743"
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 Dark3581 on 2026-11-19T15:19:17Z.
What
Implements seven 3.20
WebCore::EmptyFrameLoaderClientexports in libSceNKWebKit. All were throwing stubs inExport.cpp.Their signatures predate the pinned PS5 WebKit 11.x source. For example, 11.x has
committedLoad(DocumentLoader*, const SharedBuffer&)and a two-argumentdispatchCreatePage. So they follow WebKit Safari-611.1.1 EmptyFrameLoaderClient.h and EmptyClients.cpp. I compared the declarations at Safari-610.1.1, 610.1.18, 610.1.26, 610.2.6, 610.3.3, 611.1.1 and 611.1.9. 610.1.26 through 611.1.1 match all seven exports, andsendH2Pingtoo.committedLoad(DocumentLoader*, const char*, int)dispatchDidCommitLoad(Optional<HasInsecureContent>, Optional<UsedLegacyTLS>)dispatchCreatePage(const NavigationAction&)nullptrgeneratedMIMETypeForURLScheme(const String&) constemptyString(), through the referenced sharedEmptyStringImplpageID() const,frameID() constWTF::nullopt: a disengaged 16-byteWTF::Optional(engaged flag at 0, value at 8), returned in memory becauseWTF::Optionalhas a user-provided copy constructorcreateJavaAppletWidget(...)RefPtr<Widget>, returned in memory through an 8-byte non-trivially-copyable holderNone of the seven reads its arguments. The debt fragment adds an Older callable exports entry.
tools/pr_overlap.py --nameslists no open PR for any of the seven, and no PR closed by the open-PR limit touches them.--branchshows only the line every NKWebKit PR appends tolibSceNKWebKit.hpp. It failed closed on 32 PRs that conflict withmain. I grepped each one's diff from its merge base, and none changes these exports.Tested
Windows 10 22H2, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, on
mainb40a0d6dc7plus this commit.ctest -R "^(nkwebkit_|guest_nkwebkit)": 154 of 154 pass, including the newnkwebkit_emptyloaderlegacycallbacks.StringImplon repeated calls;pageIDandframeIDcome back disengaged into result buffers pre-filled with 0xa5.tools/check_conventions.py --base origin/main,tools/debt_fold.py --checkandtools/env_reference.py --checkpass.No title run: no title on hand reaches these callbacks.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T15:21:41Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
2f2676d904:tools/check_conventions.pypassed.nkwebkit_emptyloaderlegacycallbacks_testsbuilt cleanly.nkwebkit_emptyloaderlegacycallbacks):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/Api.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/src/EmptyLoaderLegacyCallbacks.cppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T15:26:38Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
e4a19e6bd1:tools/check_conventions.pypassed.nkwebkit_emptyloaderlegacycallbacks_testsbuilt cleanly.nkwebkit_emptyloaderlegacycallbacks):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/Api.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/src/EmptyLoaderLegacyCallbacks.cppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T15:29:33Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
e4a19e6bd16cc440bc840336c5c1e1f3bce028a1. No commands or tests were run; the PR description reports tests run by the author.Results
Export.cppand other changed files not fully readFindings
Blocking
None identified in the code reviewed.
Non-blocking
Not verified
Read:
description.md,commits.md,manifest.json,diff.patch,EmptyLoaderLegacyCallbackExports.hpp,EmptyLoaderLegacyCallbacks.cpp, its test,libSceNKWebKit.hpp, and the debt fragment.Export.cppwas excluded from the review folder and not read throughrepo_read.py;Api.hppandLegacyExports.hppwere present in the diff but their full contents were not reviewed. No tests or build checks were run. The description's reported Windows test results were not independently verified.To get this to a good state
Nothing is required. Optionally confirm the inferred ABI against a console module when available.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T16:59:57Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
ffd6f658ad:tools/check_conventions.pypassed.nkwebkit_emptyloaderlegacycallbacks_testsbuilt cleanly.nkwebkit_emptyloaderlegacycallbacks):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/Api.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/src/EmptyLoaderLegacyCallbacks.cppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T17:15:40Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the ABI declarations and callback bodies are consistent with the stated return behavior, and I found no verified defect.
What I ran
Read the prepared diff and targeted source context at head
ffd6f658ade070217ab255c5f61cf2d2ce76e263. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Tests and ABI behavior on the console were not run; the change's debt note also identifies the argument conventions as unverified. Read:
Export.cppdiff only,Api.hpp,EmptyLoaderLegacyCallbackExports.hpp,LegacyExports.hppdiff only,libSceNKWebKit.hppdiff only,EmptyLoaderLegacyCallbacks.cpp, its test, and the debt change fragment.Export.cppfull text was excluded as too large; other files omitted from prepared full text were assessed from the diff only. The prepared manifest was read;files.jsonwas not available through the reader.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T19:49:39Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed implementation adds seven legacy
EmptyFrameLoaderClientexports with no verified blocking defects; the ABI assumptions are documented as unverified against a console module.What I ran
No commands were run. I read the prepared diff and changed source and test files through
repo_read.pyat head5b7fb9f04e6584049d0fd12af9732147c7afcd48. The author reports running 154 tests and convention and debt checks; I did not run those checks.Results
Findings
Blocking
None identified in the code read.
Non-blocking
OptionalIdentifierandWidgetRefPtrremain inferred rather than confirmed against a console module. The debt entry records this limitation; a console comparison would strengthen confidence in these exports (EmptyLoaderLegacyCallbackExports.hpp:23,EmptyLoaderLegacyCallbackExports.hpp:31).Not verified
Export.cppwas excluded from the review folder because it was too large; only the changed hunks indiff.patchwere inspected, not its full text.Api.hppandLegacyExports.hppwere listed as changed but add no lines; their full text was not read. The ABI behavior on console and the reported Windows test runs were not independently verified. All other changed files listed in the manifest were read.To get this to a good state
Nothing is required. Optional: confirm the return layouts against a console module when one is available.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T16:47:01Z.
Review: COMMENTED
Reviewed — no blocking findings
The implementation matches the stated callback behavior in the code inspected, but ABI behavior on a console was not verified.
What I ran
Reviewed head
d92a57b7df9841a9c1776e38bacc7eb9b0c9f192. I did not run commands or tests; the test results in the PR description are author-reported.Results
Findings
Blocking
None.
Non-blocking
core/libs/prx/libSceNKWebKit/src/EmptyLoaderLegacyCallbacks.cpp:24anddocs/dev/debt/changes/feat-nkwebkit-empty-loader-legacy-callbacks.md:5). Confirm these conventions against a console module or equivalent ABI evidence when available.Not verified
Export.cppwas excluded because it is too large for the review folder; its surrounding implementation was not read.files.jsonwas not available as a review-folder document, so exclusions were taken from the manifest and file listing.description.md,commits.md,manifest.json,diff.patch,Api.hpp,EmptyLoaderLegacyCallbackExports.hpp,libSceNKWebKit.hpp,EmptyLoaderLegacyCallbacks.cpp,tests/EmptyLoaderLegacyCallbacks.cpp, and the debt change entry. Excluded:Export.cpp; the full text ofLegacyExports.hppwas not read (only its diff was inspected).To get this to a good state
Nothing is required. Optional: obtain console ABI evidence for the callback return conventions.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T19:37:37Z.
Review: COMMENTED
Reviewed — no blocking findings
The implementation and included tests are readable, but ABI behavior has not been confirmed against a console module and the reported checks were not run in this review.
What I ran
Read the prepared diff and targeted source at head
9735c434e2b4f1452ca93ba44d424af48acb4062; no commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
pageID,frameID, andcreateJavaAppletWidgetremain unverified on the console. The debt note records this; confirm against a console module when one is available. Seecore/libs/prx/libSceNKWebKit/include/EmptyLoaderLegacyCallbackExports.hpp:44anddocs/dev/debt/changes/feat-nkwebkit-empty-loader-legacy-callbacks.md:5.Sources
Not verified
The changed implementation, export declaration, and test source were read.
Export.cppwas inspected only at its opening line;Api.hpp,LegacyExports.hpp, andlibSceNKWebKit.hppwere not read in full. Those three changed files andExport.cppwere excluded from full-text review. The test results and checks described in the PR body were not independently verified; no physical-console behavior was tested.To get this to a good state
Nothing is required. The console ABI confirmation is optional follow-up.