feat(libSceNKWebKit): implement WKApplicationCacheManager cache operations #16937
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16937"
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 adriaespii on 2026-11-07T23:56:40Z.
What
Implement
WKApplicationCacheManagercache operations (WKApplicationCacheManagerDeleteAllEntries,WKApplicationCacheManagerDeleteEntriesForOrigin,WKApplicationCacheManagerGetApplicationCacheOrigins).Tested
Unit tests in
core/libs/prx/libSceNKWebKit/tests/ApplicationCacheManager.cpp, conventions verified withtools/check_conventions.py.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 adriadam10 on 2026-11-11T23:51:45Z.
Review: CHANGES_REQUESTED
Agreeing with the review above. The pinned PS5 WebKit (
80f77e94c6,Source/WebKit/UIProcess/API/C/WKApplicationCacheManager.cpp) has empty bodies for all three exports, and this PR changes that:WKApplicationCacheManagerGetApplicationCacheOriginsnever calls its callback in the source; here it calls it with an empty array, and that array is never released (ToRefhands out a reference nothing frees).WKApplicationCacheManagerDeleteEntriesForOriginandWKApplicationCacheManagerDeleteAllEntriesignore their arguments in the source; here the first throwsinvalid_argumentfor non-origin objects and both validate the manager ref.ApplicationCacheManager::origins, so the list logic is unreachable in practice.Please make the three exports match the pinned source (empty bodies, no origin list, no new
SecurityOriginmove intoTypes.hppunless something else needs it), update the test to pin that, and drop the Silent stubs entry. If you think the console binary differs from the source, say so in the debt entry with the evidence.The branch also conflicts with
mainnow (docs/dev/debt/libSceNKWebKit.md); it needs a merge ofmain.