feat(libSceNKWebKit): implement WKContext injected bundle configuration and messaging #24504
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/24504"
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 jagrat04 on 2026-11-20T17:59:42Z.
What
Implement
WKContextPostMessageToInjectedBundle,WKContextSetInitializationUserDataForInjectedBundleandWKContextSetInjectedBundleClientinlibSceNKWebKit, recording initialization user data, posted messages and injected bundle client configuration on the host process pool in memory following WKContext.cpp.Tested
tools/check_conventions.py --base origin/mainpassed;tools/debt_fold.py --checkpassed; unit tests incore/libs/prx/libSceNKWebKit/tests/ContextInjectedBundle.cpptest user data assignment, message posting with optional body, client configuration and null/type argument validation. Not tested on a PS5.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 MarcZX10 on 2026-11-20T19:21:19Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the implementation records injected bundle state in the host process pool, and the acknowledged lack of IPC dispatch is documented.
What I ran
Reviewed head
ee758524ac2cb914bde139ac7d63e7932308de97. No commands or tests were run. ReadContext.cpp,Configuration.hpp,WebKitValueExports.hpp,ContextInjectedBundle.cpp, andwkcontext-injected-bundle.md, plus the prepared description, commits, manifest, and diff.Export.cppandInventoryExports.hppwere excluded as too large for the review folder; their diff hunks were read.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The tests were not run. PS5 behavior and the full contents of
Export.cppandInventoryExports.hppwere not verified; only their changed diff hunks were reviewed.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T19:21:58Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
ee758524ac:tools/check_conventions.pypassed.nkwebkit_contextinjectedbundle_testsfailed to build.Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T23:31:06Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed code records the injected bundle state in memory as described; checks were not run in this review.
What I ran
Reviewed head
1e576fd4f518aeeb641e71471bbf7528d51ab247. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
Get()to the input references would make the assignment coverage stronger (ContextInjectedBundle.cpp:40,ContextInjectedBundle.cpp:48).Sources
Reviewed
Context.cpp,Configuration.hpp,WebKitValueExports.hpp,ContextInjectedBundle.cpp, the debt note, and the relevant export declaration/definition locations. Removed declaration and stub lines were checked indiff.patch; the review bundle marks those two files too large to include infiles/.Not verified
The reported convention/debt checks and unit tests were not run. PS5 behavior was not tested. No other repository files were read beyond the listed sources and targeted searches.
To get this to a good state
Nothing is required. Optional: strengthen the tests to assert that the stored references match the supplied values.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T23:39:57Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
1e576fd4f5:tools/check_conventions.pypassed.nkwebkit_contextinjectedbundle_testsbuilt cleanly.nkwebkit_contextinjectedbundle):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp,core/libs/prx/libSceNKWebKit/src/Configuration.hpp,core/libs/prx/libSceNKWebKit/src/Context.cppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T19:10:07Z.
Review: APPROVED
Reviewed — looks good
The change stores injected bundle state on the process pool and documents that message dispatch to a separate process is not modeled; review was limited to the listed changed files and no tests were run.
What I ran
Reviewed head
15407e045250d7d4f515b2a7c67bec590d665e6dusingrepo_read.pyreader tools. No commands or tests were run. The changed files read wereExport.cpp,InventoryExports.hpp,WebKitValueExports.hpp,Configuration.hpp,Context.cpp,tests/ContextInjectedBundle.cpp, anddocs/dev/debt/changes/wkcontext-injected-bundle.md.Results
Export.cppandInventoryExports.hppread through the pinned readerFindings
Blocking
None.
Non-blocking
None.
Not verified
The author reports convention checks and unit tests passed, but I did not run them. PS5 behavior is not verified. The review folder excluded full-text copies of
Export.cppandInventoryExports.hpp; their relevant changed regions were read through the repository reader.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T04:30:16Z.
Review: COMMENTED
Reviewed — no blocking findings
The implementation is consistent with its stated in-memory model, and no verified blocking defect was found in the changed code that was read.
What I ran
Reviewed head
4c29bb0a731dc1103ed001c6ab906f30d2951dbbusingrepo_read.pyto inspect the prepared diff and targeted source context. No tests or build commands were run.Results
Findings
Blocking
None verified in the files read.
Non-blocking
None.
Not verified
Export.cppandInventoryExports.hppwere excluded from the review bundle and not read. The remaining changed files were read:WebKitValueExports.hpp,Configuration.hpp,Context.cpp,ContextInjectedBundle.cpp, andwkcontext-injected-bundle.md. No physical PS5 behavior or test execution was verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T12:06:40Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected implementation records injected bundle data and message state in the process pool; the complete review is limited because
Export.cppand the fullInventoryExports.hppwere not read.What I ran
Reviewed head
cf5876a1e80e1304ca32d5df0d782fadee2a6ee7. Read the prepared description, commits, manifest, and diff; inspected the changed context implementation, configuration fields, value export declarations, tests, and debt entry throughrepo_read.py. No commands or tests were run.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
None.
Sources
Behavior claims are based on the prepared diff and inspected files at head
cf5876a1e80e1304ca32d5df0d782fadee2a6ee7.Not verified
core/libs/prx/libSceNKWebKit/Export.cppwas not fully read because it is excluded as too large; only its changed hunk indiff.patchwas inspected. The fullcore/libs/prx/libSceNKWebKit/include/InventoryExports.hppwas not read; its diff hunk was inspected. Tests and author-reported prechecks were not run by this review. The manifest lists six included changed files and one excluded changed file; the includedInventoryExports.hppfull text was also not read.To get this to a good state
Nothing is required.
Pull request closed