feat(libSceNKWebKit): implement the special members of five interface base classes #22682
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/22682"
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 RiverWhy on 2026-11-18T02:02:38Z.
What
Implements 19 special-member exports of five abstract interface base classes. All of them throw on
maintoday.WebCore::BlobRegistry(3, 11.x):C2Ev, the copy constructor andD0.WebCore::DatabaseProvider(3):C1Ev(3.20),C2EvandD0(11.x).JSC::HeapAnalyzer(4, 11.x):C2Ev, the copy constructor,D0andD1.WebCore::MediaRecorderProvider(4, 11.x): the default and copy constructors, C1 and C2.Nicosia::SceneIntegration::Client(5, 3.20):C2Ev, the copy constructor,D0,D1andD2.The remaining destructors,
operator=and theMediaRecorderProviderallocation operators are already implemented onmain.Sources: BlobRegistry.h, DatabaseProvider.h, HeapAnalyzer.h and MediaRecorderProvider.h (PS5 11.x), and NicosiaSceneIntegration.h (3.20).
Details:
TrackPrivateBaseonmaindoes: offset-to-top 0, no type info, and the slots in declaration order. Pure slots are__cxa_pure_virtual.BlobRegistry: 10 pure methods, then the existingblobRegistryImplexport (returns null), then the destructors.HeapAnalyzer: the destructors, then 8 pure methods.MediaRecorderProvider: only the destructors, becauseENABLE_MEDIA_RECORDERdefaults to OFF andOptionsPlayStation.cmakedoesn't turn it on.DatabaseProviderandSceneIntegration::Client: the destructors, then one pure method.DatabaseProviderisRefCounted, so its constructors also set the reference count at offset 8 to 1.D0frees withfastFreefor theWTF_MAKE_FAST_ALLOCATEDclasses (DatabaseProviderthroughRefCounted, andMediaRecorderProvider, whoseD0onmainalready forwards tofastFree). Otherwise it uses the guest globaloperator delete.Debt: a fragment,
docs/dev/debt/changes/feat-nkwebkit-interface-base-members.md, adds the entry and removes the 13 of these exports that have inventory rows.Overlap:
pr_overlap.py --namesfinds no open PR with these 19 exports.Tested
Linux Mint 22.3. New
nkwebkit_interfacebasestest, for each class:blobRegistryImpl, destructors) are checked;operator newmemory (checked with a tracking guest heap) orfastMallocmemory;The full build succeeds, and all 132 NKWebKit tests pass.
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-18T02:04:29Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
b497228e88:tools/check_conventions.pypassed.nkwebkit_interfacebases_testsbuilt cleanly.nkwebkit_interfacebases):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/src/InterfaceBases.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-18T02:06:09Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the review is incomplete because two changed export files were excluded and no checks were run here.
What I ran
Read the prepared diff and targeted source context pinned to
b497228e88fc76e963647f7e05de60d4da6e82d9. I did not run build or tests; the description reports a Linux Mint 22.3 build and 132 passing NKWebKit tests.Commands: not run. Reader:
repo_read.py.Results
Findings
Blocking
None found in the source inspected.
Non-blocking
None.
Not verified
Full text of
core/libs/prx/libSceNKWebKit/Export.cppandcore/libs/prx/libSceNKWebKit/include/InventoryExports.hppwas excluded from the prepared files; I inspected the relevant source ranges through the pinned reader, but not either full file. Also not read:core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/tests/InterfaceBases.cpp, anddocs/dev/debt/changes/feat-nkwebkit-interface-base-members.md. The implementation and header, plus relevant ranges fromExport.cpp,InventoryExports.hpp,ForwardExports.cpp,WtfExports.hpp, andTrackPrivateBase.cpp, were read. No build, test, negative control, console behavior, or test output was independently verified.To get this to a good state
Nothing is required. Optional: provide a review bundle containing the excluded export files and the test source for a complete review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T22:35:23Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed implementation and tests show no verified blocking defect, but I could not verify the complete export and inventory files or run the checks reported by the author.
What I ran
Reviewed head
156680330564cb0e7ea8692b0b08787360bc73d0. No commands or tests were run; the prepared diff and pinned reader were used for inspection.Results
Findings
Blocking
None verified in the code read.
Non-blocking
None.
Not verified
The complete
Export.cppandInventoryExports.hppwere excluded from the review bundle and not read. The included diff shows the relevant removals fromExport.cpp, but I did not verify the full files or all export registration and inventory context. The author reports a successful Linux Mint 22.3 build and 132 passing NKWebKit tests; I did not run them. Console behavior and the exact ABI layouts against all referenced upstream headers were not independently confirmed.Read:
description.md,commits.md,manifest.json,diff.patch,README.md,InterfaceBaseExports.hpp,libSceNKWebKit.hpp,InterfaceBases.cpp,tests/InterfaceBases.cpp, andfeat-nkwebkit-interface-base-members.md. Excluded from full-text review:Export.cpp,InventoryExports.hpp;LegacyExports.hpphad no added lines.To get this to a good state
Nothing is required. The author-reported build and test results are useful context, but were not independently run.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T00:09:53Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing in the inspected implementation establishes a blocking defect; the author reports a successful full build and 132 passing NKWebKit tests, which I did not run.
What I ran
Reviewed head
0b1a897a12b478893cb7295eb2c2eb6fe4c24274. No build or test command was run. The reader was unavailable through the supplied command interface; I inspected the prepared review artifacts and targeted changed-file content through the review tools.Results
Findings
Blocking
None identified in the inspected patch.
Non-blocking
None.
Not verified
The patch describes implementation of 19 interface special-member exports across five classes. I reviewed the full new
InterfaceBases.cpp,InterfaceBaseExports.hpp, and test diff, plus the relevant diff sections and debt entry. I did not read all oftests/InterfaceBases.cppas a repository file, nor inspect full contents of changedExport.cppandInventoryExports.hpp, which were excluded from the review folder. The full changed-file texts forLegacyExports.hpp,libSceNKWebKit.hpp, and the debt entry were not read. Build/test results, upstream ABI declarations, and callers outside the prepared diff were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T09:21:59Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed implementation at
4e8d2f6344ae4798d5a836841109cac2bce2ab1dlooks consistent with its stated goal; the build and tests were not run during this review.What I ran
Read the prepared description, commits, manifest, and diff. Inspected the new implementation and test, the CMake test/source registration, and targeted export declarations. No build or test commands were run.
Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full contents of
Export.cppandInventoryExports.hppwere not read; targeted searches found no matching old stubs for the new definitions and confirmed the existingBlobRegistry::blobRegistryImpldeclaration. Other changed files read:InterfaceBaseExports.hpp,LegacyExports.hpp,libSceNKWebKit.hpp,InterfaceBases.cpp,tests/InterfaceBases.cpp, andfeat-nkwebkit-interface-base-members.md. The description's reported Linux build and 132 passing tests were not independently verified. No console behavior or Windows test run was verified.To get this to a good state
Nothing is required.