feat(libSceNKWebKit): implement the ISO box field accessors #20296
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20296"
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-15T00:31:10Z.
What
Implements 21 field accessors of the WebCore ISO BMFF boxes, following the pinned PS5 11.x WebKit headers:
ISOBox:size,boxType,extendedTypeISOFullBox:version,flagsISOTrackEncryptionBox(tenc):defaultCryptByteBlock,defaultSkipByteBlock,defaultIsProtected,defaultPerSampleIVSize,defaultKID,defaultConstantIVISOProtectionSystemSpecificHeaderBox(pssh):systemID,keyIDs,dataISOWebVTTCue:presentationTime,duration,sourceID,id,originalStartTime,settings,cueTextLayouts are in
src/IsoBoxAbi.hppwithstatic_asserts. The offsets were measured withoffsetofon the pinned headers compiled for Linux against a JSCOnly build of the same tree; they agree with the getters already on main (ISOOriginalFormatBox::dataFormatat 0x28,ISOSchemeTypeBox::schemeType/schemeVersionat 0x30/0x34). Getters that return aVectorby value make a guest-heap copy with capacity equal to size, as WTF's copy constructor does at the pinned revision;keyIDscopies each key ID. Reference getters return the field. A null object throws.Not included: constructors, destructors,
parse,peekBox,readandpeekSystemID. The boxes are dispatched through the module's own vtables and parse aJSC::DataView, neither of which this library provides (as for the filter operations).ISOBox::minimumBoxSizeandISOWebVTTCue::boxTypeNameare left to #19771.Debt: a fragment,
docs/dev/debt/changes/feat-nkwebkit-iso-box-accessors.md, adds the entry and removes the 7 inventory rows; the inventory counts are historical and stay as they are. #18802 and #19704 touch neighbouring lines inExport.cppandlibSceNKWebKit.hpp; #20291 changes the same inventory count, so whichever merges second adjusts it.Tested
Linux Mint 22.3:
nkwebkit_isoboxaccessorstest: every getter's value, the returned references, independent deep copies (each key ID included), empty vectors and null objects.ctest -R nkwebkit: 87 tests passed.progress.py --module libSceNKWebKit: 3072 to 3093 implemented.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-15T00:45:09Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
1763b23cdd:tools/check_conventions.pypassed;git diff --checkclean.nkwebkit_isoboxaccessors_testsbuilt cleanly.nkwebkit_isoboxaccessors):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.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T03:10:09Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
86542f69cb:tools/check_conventions.pypassed;git diff --checkclean.nkwebkit_isoboxaccessors_testsbuilt cleanly.nkwebkit_isoboxaccessors):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.hppreverted 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-16T15:38:28Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the findings below are optional.
What I ran
Reviewed head
9f1838673f8b25a66a86d3e87005eb1db379a743using the prepared diff andrepo_read.py. No commands or tests were run by me.Results
Findings
Blocking
None.
Non-blocking
keyIDs; also consider checking the copiedsystemIDanddatacontents after mutating their returned copies.Not verified
Export.cppandInventoryExports.hppwere excluded from the review folder as too large; their relevant removals are visible indiff.patch, but their full head contents were not read.LegacyExports.hppwas included in the bundle but not read. No test or build was run, and console behavior and ABI compatibility against a console module were not verified.description.md,commits.md,manifest.json,diff.patch,CMakeLists.txt,IsoBoxExports.hpp,IsoBoxAbi.hpp,IsoBoxAccessors.cpp,IsoBoxAccessors.cpp(test),WtfVector.hpp,WtfStringAbi.hpp, andMediaTypes.hpp. Excluded/not read:Export.cpp,InventoryExports.hpp,LegacyExports.hpp, andfiles.json(not available through the reader).To get this to a good state
Nothing is required. Optional: expand null and deep-copy coverage as described above.