feat(libSceNKWebKit): call the changed hook from the six HistoryItem setters #16859
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16859"
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 majnoon40 on 2026-11-07T18:54:48Z.
What
The six
WebCore::HistoryItemsetters that in firmware tail-jump through the function pointer indata export
TL1XjYe1xLo—setURLString,setOriginalURLString,setReferrer,setTitle,setAlternateTitleandsetShouldRestoreScrollPosition— now call it, through the internalhistoryItemChangedHookpointer that defaults to a no-op, as the console's does before its moduleinstalls a handler (BunnyFl's disassembly of the 13.42 module, recorded on #15230). The item is
passed as the argument; the other five setters keep storing and returning. The console's installed
handler, the internal code that installs it and the control-flow-integrity check stay unmodelled,
recorded in
docs/dev/debt/libSceNKWebKit.md.Tested
nkwebkit_historyitempasses on Linux (g++ 14.2; direct harness compilingsrc/HistoryItem.cpp,src/WtfString.cpp,src/Bmalloc.cppandtests/HistoryItem.cpp), including the new hook cases:the default no-op call, each of the six setters calling the hook with the item pointer, and the
five plain setters not calling it; removing any of the six calls fails the suite (mutation-checked).
python3 tools/check_conventions.py --base origin/mainpasses with no findings.Checklist
c38d0772c0; latermainmoves are audio-only and merge clean — a direct follow-up to #15230, replacing #16833 (auto-closed by the open-PR limit while my font PR #16645 still held my single slot); 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 repositoryImported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-07T22:23:54Z.
Review: COMMENTED
Read
026edf5413againstmain.I checked the six setters against
HistoryItem.cppat the pinned PS5-WebKit80f77e94.setAlternateTitle,setURLString,setOriginalURLString,setReferrer,setTitleandsetShouldRestoreScrollPositionare exactly the ones that end innotifyChanged(), which calls thenotifyHistoryItemChangedpointer whose default is an empty function; the other implemented setters don't notify upstream either. The hook runs after the store and gets the item pointer. The new test can't pass onmain, and the existing refcount checks still balance becauseCleargoes back through the setters with the no-op restored. Nothing outside the test writeshistoryItemChangedHookyet, which the debt entry states.Nit:
docs/dev/debt/libSceNKWebKit.md:72still says "notifyChangedis not reproduced", while the new entry says the setters call the hook. "the installednotifyChangedhandler is not reproduced" would make them agree.Not run here; this is from reading the code.
AI-assisted: yes.