feat(libSceNKWebKit): answer 128 exports whose 11.00 body is a bare ret #23753
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23753"
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 edubox on 2026-11-19T15:53:02Z.
What
One hundred and twenty-eight
libSceNKWebKitexports whose body in the 11.00 module is a singleretbyte stop throwing. They are emptyvoidfunctions, the same shape as the no-opssrc/NoOpExports.cppalready holds:WKPageSetUserContentExtensionsEnabled, theJSDOMRectList,JSAudioTrackandJSAnimationTimelinefinishCreationhooks, theFrameLoaderClientandEmptyFrameLoaderClientnotifications, theLibWebRTCProvidersetters and the rest of the list below.Evidence: the decrypted 11.00
libSceNKWebKit.sprx(SHA-2563af992253665387feeb5df90ff27dff683e3aa270cc4d92a0535b46ab18fa20d), the same image the constant exports were read from. Each of them has one byte,0xC3(ret), at its export address, so the module reads no argument and writes no return value. Declaring themvoidreproduces that; answering a constant would invent the register contents a caller reads back.The definitions moved from
Export.cpptosrc/NoOpExports.cpp, and their declarations ininclude/Api.hpp,include/InventoryExports.hppandinclude/LegacyExports.hppchanged frominttovoidto match. The return type is not part of the mangled name, so the exports are unchanged.Rebased onto
maindfe428e798. Two things changed with it:mainnow hassrc/NoOpExports.cppitself, with the 170 no-ops this branch used to move; the diff adds only the 128 it still lacks.Inspector::Protocol::BindingTraits::assertValueHasExpectedTypeinstantiations that 11.00 answers withretare implemented inmainwith an argument (src/InspectorBindingTraits.cpp), so they are left to that implementation instead of being redeclared here.The 128 exports
WKPageSetUserContentExtensionsEnabled,_ZN7WebCore13JSDOMRectList14finishCreationERN3JSC2VME,_ZN7WebCore22EmptyFrameLoaderClient31dispatchDecidePolicyForResponseERKNS_16ResourceResponseERKNS_15ResourceRequestENS_21PolicyCheckIdentifierERKN3WTF6StringEONS8_8FunctionIFvNS_12PolicyActionES7_EEE,_ZN7WebCore17FrameLoaderClient31dispatchDidReachLayoutMilestoneEN3WTF9OptionSetINS_15LayoutMilestoneEEE,_ZN7WebCore17LibWebRTCProvider9setActiveEb, and the other 123 in the diff.Tested
Linux x86-64 (CachyOS), GCC 16.2.1, Release,
BUILD_TESTING=ON, onmaindfe428e798:libSceNKWebKitbuilds, and a newnkwebkit_emptyexportstest (globbed fromtests/EmptyExports.cpp) calls all 128 and passes.Subprocess aborted), so the calls reach the definitions instead of being folded away; reverted.nm -Don the builtlibSceNKWebKit.prxlists the 128 names, and every one of them is defined once, insrc/NoOpExports.cpp.check_conventions.py --base origin/mainpasses.Not tested on a console beyond the module bodies, and no title in the 57 dumped registries imports this library.
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:58:13Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
f297ab5e68:tools/check_conventions.pypassed.guest_nkwebkit_empty_exports_testsbuilt cleanly.guest_nkwebkit_empty_exports):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/Api.hpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp,core/libs/prx/libSceNKWebKit/src/NoOpExports.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T16:11:35Z.
Review: COMMENTED
Reviewed — comments
The review of head
f297ab5e6898c78818e68cca8c0857cb8c61b12fis incomplete because two large changed files were not fully read, so a formal approval is not justified.What I ran
No commands or tests were run. I read the prepared description, commit summary, manifest, diff, and targeted source ranges through
repo_read.py.Results
Findings
Blocking
None verified in the code read.
Non-blocking
None.
Not verified
The full contents of
core/libs/prx/libSceNKWebKit/Export.cppandcore/libs/prx/libSceNKWebKit/include/InventoryExports.hppwere not read. The latter was inspected only at one targeted range. No tests, build, console behavior, or author-reported results were independently verified.Read:
description.md,commits.md,manifest.json,diff.patch; changed-file ranges inCMakeLists.txt,Api.hpp,LegacyExports.hpp,NoOpExports.cpp,GuestNkWebKitEmptyExports.cpp, andfeat-nkwebkit-empty-exports.md; one targeted range inInventoryExports.hpp.Excluded from full review:
Export.cppandInventoryExports.hpp(too large for the review folder; only a targeted range of the latter was read).To get this to a good state
Nothing is required. Optional: complete review of the two large changed files and run the relevant build and tests before seeking a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T17:32:07Z.
Review: COMMENTED
Reviewed — no blocking findings
The implementation matches the stated no-op behavior, with a non-blocking export-count discrepancy in its debt note.
What I ran
Reviewed head
00e5aa16a2bda180d4e38425d599f90b3551ed9ausing the prepared diff and pinnedrepo_read.py; no build or tests were run.Results
Findings
Blocking
None.
Non-blocking
docs/dev/debt/changes/feat-nkwebkit-empty-exports.md:5says 148 exports, while the PR title and description claim 150. Please reconcile the count.Not verified
The source reader provided the full text for the changed files listed as included in the manifest.
Export.cppandinclude/InventoryExports.hppwere excluded from the review folder as too large; only relevant diff hunks were inspected forExport.cpp, and selected declaration ranges were inspected forInventoryExports.hpp. Build/test, CI, binary symbol listing, and console behavior were not independently verified. The prepared review bundle did not exposefiles.json, so exclusions are reported from the manifest.To get this to a good state
Nothing is required. Optional: reconcile the export count in the debt note with the implementation and PR description.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T04:50:32Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed portions show no concrete blocking defect, but the review is incomplete because some changed lines and files were not read.
What I ran
Head:
2a1e02f1dcb4224af8c65df6b58c157fa19b2a89. No build or tests were run. The author reports Linux x86-64 tests and checks indescription.md; those results were not independently verified.Results
Findings
Blocking
None identified in the portions read.
Non-blocking
None.
Not verified
I read
description.md,commits.md,manifest.json,README.md, and the changed lines shown forCMakeLists.txt,Api.hpp,LegacyExports.hpp,NoOpExports.cpp,GuestNkWebKitEmptyExports.cpp, and the debt change note. I also inspected portions ofdiff.patch. I did not read every added line inLegacyExports.hpporNoOpExports.cpp;Export.cppandInventoryExports.hppwere excluded from the review folder and their contents were not read. I could not verify the claimed 11.00 module bytes, export inventory, or author-reported checks.To get this to a good state
Nothing is required. Optional: complete inspection of the unread changed lines and excluded files, then verify the reported build and tests before making a formal decision.