feat(libSceNKWebKit): implement PAL::SessionID generators #15911
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15911"
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 gslashm on 2026-11-04T23:18:59Z.
What
Implements three
libSceNKWebKitexports fromSource/WebCore/PAL/pal/SessionID.cpp:33-56at80f77e94c6, with constants fromSessionID.h:38-44:PAL::SessionID::generatePersistentSessionID()PAL::SessionID::generateEphemeralSessionID()PAL::SessionID::enableGenerationProtection()SessionIDholds oneuint64_t(SessionID.h:86) and has implicit copy operations, so it returns inrax. Once protection is enabled the generators throw instead of reproducing theRELEASE_ASSERTcrash; this is in the debt file.ASSERT(isMainThread())is not ported:ASSERTcompiles to((void)0)whenASSERT_ENABLEDis 0 (Assertions.h:340), andPlatformEnable.h:64-70sets that fromNDEBUG; that the console build definesNDEBUGis inferred, not verified. Not compared with a console module.tools/pr_overlap.pylists #13486 under the same exports. That PR is a relinker draft whose merge base predates the 8703 stubs, so its diff re-adds them, all still throwing; it implements none of these. On this head, no open PR adds the same files and no other PR shares an export; the 14 PRs the tool could not merge withmainwere compared separately and none shares an export or a new file, apart from #13486. Line conflicts are the debt count line (docs/dev/debt/libSceNKWebKit.md:36, 53 PRs), the lines the new debt entry occupies (:12-13, #15170, #15171, #15174, #15175, #15178, #15182, #15185) and the neighbouring stubs (Export.cpp:18331-18345,InventoryExports.hpp:1541-1544, #14918, #14919, #14920). Whichever merges later keeps both sides.Tested
Windows 11 Pro, WinLibs GCC 15.2.0. No title and no console module.
nkwebkit_palsessionidchecks the first IDs and increments of both counters, their independence, and that both generators throw after protection is enabled.ctest -R nkwebkit: 13 of 13 pass.ctest -R public_headers: 65 of 65 pass. Whole suite, at the pre-rebase head: 16 of 4067 fail on an idle run, 26 of 4067 on a run alongside another heavy job; untouchedmainfails 18 of 4066. The failures are Windows environment errors (WinError 32and5in temp cleanup,WinError 1314creating symlinks),prx_thread_local_destructorsonlibkernel, which also fails onmain, and once, on the busy run,agc_shader_disk_cache_large_file. Nonkwebkit_*test fails. The rebase ontod63781e9cechanged no NKWebKit file and the focused tests and checks were rerun after it.tools/progress.py: 1312 of 11248, three more thanmain.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)