feat(libSceNKWebKit): return 0 from 13 exports as firmware 13.42 does #16316
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16316"
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 BunnyFl on 2026-11-06T07:21:43Z.
What
Thirteen
libSceNKWebKitexports threw. In firmware 13.42 each one returns 0, and this change does the same:WKBundleFrameHandlesPageScaleGesture-0ETdbxl-KgWKBundleNavigationActionCopyDownloadAttribute25mS80V8okgWKBundleNavigationActionCopyFormElement5EIJscg02gsWKBundleNavigationActionCopyHitTestResultkRoezIaLVtkWKBundleNavigationActionGetEventModifierstyF8jxT9csoWKBundleNavigationActionGetEventMouseButtonTuYK6TAg+UYWKBundleNavigationActionGetNavigationTypetnvxzeWju10WKBundleNavigationActionGetShouldOpenExternalURLsEz-Pj0QWgScWKBundleNavigationActionGetShouldTryAppLinksx2Bw3o33jBYWKBundlePageIsUsingDarkAppearancexBZFJROAY60WKFrameCanShowMIMETypeK5V0IcHAoOEWKPageGetPaginationLineGridEnabledvHCGXG+KeDAWKProtectionSpaceCopyCertificateInfoFdhooB4MqkEThey move from the throwing placeholders in
Export.cpptosrc/ConstantExports.cppand follow that file: the no-parameterintprototypes ininclude/InventoryExports.hppstay as they are, so only the 32-bit return is claimed. For reference, WebKit's C API headers at702f0e31dbdeclare six of thembool, four as returning aconst struct Opaque*ref (WKStringRef,WKBundleNodeHandleRef,WKBundleHitTestResultRef,WKCertificateInfoRef),GetEventModifiersandGetNavigationTypeasuint32_ttypedefs andGetEventMouseButtonas anint32_ttypedef; the module's WebKit revision is not identified, so those types are not used here.docs/dev/debt/libSceNKWebKit.md: the 13 rows leave the throwing inventory of "Additional callable exports" and its count goes from 6304 to 6291 on currentmain84f4ad4f06(counted from the branch's tree:mainhas 8805NotImplemented_nid_no_patchcalls inExport.cppfor its 6304, the merged branch 8792), and a new entry under Functional records the 13.42 measurement. The existing "Constant-return exports" entry is about 11.00 and stays as it is.Source
Firmware 13.42
system_ex/common_ex/lib/libSceNKWebKit.sprx(sha256e63acdc164592330a287cf6914c265336b27a357098a449c1609f8f82e104409), read from disassembly, not run on a console. The module's dynamic symbol table points all 13 NIDs above at one address,0x5b90, and each NID recomputes from its name withtools/nid_names.pycompute_nid. The body, with theint3padding on both sides:The body at
0x5b90reads no argument and stores nothing: a null or invalid argument is never dereferenced, here or in firmware.Tested
Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
5cb75ddc12(main84f4ad4f06merged in):main84f4ad4f06said 6304, and both rules give 6291: the mergedExport.cppholds 8792NotImplemented_nid_no_patchcalls (8792 - 2501), and the merged inventory table has 6298 data rows, the count plus 7. Onmain84f4ad4f06the same rules give 6304 (8805 - 2501). 6291 is thirteen belowmain, one for each export this pull request implements.nkwebkit|nk_webkittests rebuilt at this head and thelibSceNKWebKitlibrary target built. Two test executablesmainadded while this branch sat,nkwebkit_contextsettings_testsandnkwebkit_mockmediadevices_tests, were resolved from the tree and built as part of that set.tools/check_conventions.py --base upstream/mainon the committed head5cb75ddc12: all checks pass.review-tools/sig_users.py HEAD --build: noAPS5_VABIdeclaration changes its signature on this branch.tools/pr_overlap.py --branch feat/nkwebkit-13-42-constant-returns --jobs 8at this head, against 1,954 open pull requests: 85 share files or exports with the branch. Of the ones it could compare, six have a conflicting line, every one of them the inventory count sentence (docs/dev/debt/libSceNKWebKit.mdline 103 onmain84f4ad4f06): #15891, #16453, #16853, #16890, #16901 and #17726; whichever lands first makes the others recount that one sentence. None of them shares an export or a new file. The run failed closed (exit 2) on 64 pull requests that conflict withmainthemselves and compared none of them. All 64 were then checked by hand at this head: every added and removed line of each diff searched for the thirteen export names and their thirteen NIDs. None of the twenty-six appears in any of them, and every diff was fetched (none refused by GitHub). Our own #16386 is in that hand-checked set this time rather than in the conflicting-line table, because it conflicts withmainitself; it still edits the same count sentence, so whichever of the two lands first makes the other recount.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
a2033f9786(maina26b7827e1merged in):mainsaid 6311, and both rules give 6298:Export.cppholds 8799NotImplemented_nid_no_patchcalls (8799 - 2501) and the inventory table has 6305 rows, the count plus 7. Onmaina26b7827e1the same rules give 6311 (8812 - 2501; 6318 rows). 6298 is thirteen belowmain, one for each export this PR implements.nkwebkit|nk_webkittests rebuilt at this head and thelibSceNKWebKitlibrary target built.tools/check_conventions.py --base upstream/mainon the committed heada2033f9786: all checks pass.review-tools/sig_users.py HEAD --build: noAPS5_VABIdeclaration changes its signature on this branch.tools/pr_overlap.py --branch feat/nkwebkit-13-42-constant-returns --jobs 8at this head, against 1,942 open pull requests: 86 share files or exports with the branch. Six of the ones it could compare have a conflicting line, all of them the inventory count line: #16853, #16890, #16901, #17726, #17727 and our own #16386. The run failed closed (exit 2) on 65 pull requests that conflict withmainthemselves and compared none of them. All 65 were then checked by hand at this head: every added and removed line of each diff searched for the thirteen export names and their thirteen NIDs. None of the twenty-six appears in any of them, and every diff was fetched (none refused by GitHub).Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
4100c142d8(main31e773092bmerged in):mainsaid 6315, and both rules give 6302.Export.cppholds 8803NotImplemented_nid_no_patchcalls (8803 - 2501), and the inventory table has 6309 rows, the count plus 7. Onmain31e773092bthe same two rules give 6315 (8816 - 2501; 6322 rows). 6302 is thirteen belowmain, one for each export this PR implements.nkwebkit|nk_webkittests rebuilt at this head and thelibSceNKWebKitlibrary target built.tools/check_conventions.py --base upstream/mainon the committed head4100c142d8: all checks pass.review-tools/sig_users.py HEAD --build: noAPS5_VABIdeclaration changes its signature on this branch.tools/pr_overlap.py --branch feat/nkwebkit-13-42-constant-returns --jobs 8at this head, against 1,949 open pull requests: 86 share files or exports with the branch. Four of the ones it could compare have a conflicting line, all of them the inventory count line (line 101 ofdocs/dev/debt/libSceNKWebKit.mdin the comparison base): #16853, #16890, #16901 and our own #16386; whichever of them lands first makes the others recount that one sentence. The run failed closed (exit 2) on 69 pull requests that conflict withmainthemselves. Those 69 were not compared line by line and their diffs were not re-searched at this head: for them, overlap is not verified.maininto this branch today. That one count line is edited by dozens of open pull requests - 86 open pull requests share this library's files at this head - and after each of today's merges the branch was back toCONFLICTINGwithin the hour. The resolution is the same each time; only the derived number moves.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
badf65616f(maina55d18f626merged in):mainmoved again within the hour, so this is a second merge of the same kind: the only conflict was the inventory count sentence, which atbadf65616fisdocs/dev/debt/libSceNKWebKit.md:97(line 96 onmaina55d18f626), whichmainhad lowered to 6334.maina55d18f626has 8835NotImplemented_nid_no_patchcalls inExport.cppfor its 6334, the same offset of 2501; the merged tree has 8822: 8822 - 2501 = 6321, 13 belowmainfor this branch's 13 exports. The merged inventory table has 6328 rows, the count plus 7, as onmain(6341 rows for 6334).Export.cpp,src/ConstantExports.cppandtests/Constants.cppmerged without a conflict, andgit merge-tree --write-treeagainstupstream/maina55d18f626is clean.mainare the same as at5ce8b6d4cfapart from the count; the negative control was not repeated.nkwebkit_*andguest_nkwebkit_*tests andpublic_headers. ThelibSceNKWebKitlibrary target builds too.tools/check_conventions.py --base upstream/mainon the committed headbadf65616f: all checks pass. NoAPS5_VABIdeclaration changes its signature on this branch (review-tools/sig_users.py HEAD --build).tools/pr_overlap.py --branch feat/nkwebkit-13-42-constant-returns --jobs 8atbadf65616f, against 1,975 open pull requests: 88 share files with the branch; 6 have conflicting lines (#16386, #16642, #16643, #16853, #16890, #16901), every one of them only on the inventory count sentence (docs/dev/debt/libSceNKWebKit.mdline 96 onmain), and none shares an export or a new file. #16386 is the other BunnyFl libSceNKWebKit pull request, so whichever of the two lands first, the other recounts that sentence. The run failed closed (exit 2) on 70 that conflict withmainthemselves; I searched the added and removed lines of 69 of those diffs for the 13 export names and found none, and for #15807, whose whole diff GitHub refuses (HTTP 406, over 20,000 lines), the patches of its twolibSceNKWebKitfiles (its files) name none of the 13 either.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
5ce8b6d4cf(main8e34d2642dmerged in):docs/dev/debt/libSceNKWebKit.mdonly, on the inventory count sentence, whichmainhad lowered to 6339.main8e34d2642dhas 8840NotImplemented_nid_no_patchcalls inExport.cppfor its 6339, the same offset of 2501; the merged tree has 8827 calls: 8827 - 2501 = 6326, 13 belowmainfor this branch's 13 exports. The merged inventory table has 6333 rows, which is the count plus 7, the same offset the rows have onmain(6346 rows for 6339) and at the merge base (6366 for 6359).Export.cpp,src/ConstantExports.cppandtests/Constants.cppmerged without a conflict.mainare the same as at3f8df691aaapart from the count; the negative control was not repeated.nkwebkit_*andguest_nkwebkit_*tests andpublic_headers. ThelibSceNKWebKitlibrary target builds too.tools/check_conventions.py --base upstream/mainon the committed head5ce8b6d4cf: all checks pass. NoAPS5_VABIdeclaration changes its signature on this branch (review-tools/sig_users.py HEAD --build).git merge-tree --write-treeagainstupstream/main8e34d2642dis clean.tools/pr_overlap.py --branch feat/nkwebkit-13-42-constant-returns --jobs 8at5ce8b6d4cf, against 1,975 open pull requests: 88 share files with the branch and none shares an export or a new file. All 88 conflict withmainthemselves, so the run failed closed (exit 2) and compared none of them line by line; two (#16142, #16166) also changesrc/ConstantExports.cppandtests/Constants.cpp. I searched the added and removed lines of 87 of those diffs for the 13 export names and found none. GitHub refuses #15807's whole diff (HTTP 406, over 20,000 lines), so for it I searched the patches of its twolibSceNKWebKitfiles (CMakeLists.txt, 3 added lines, and the debt file, 1), which name none of the 13 either. Whichever lands second recounts the sentence.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
3f8df691aa(main22ae9a397dmerged in):docs/dev/debt/libSceNKWebKit.mdonly, on the inventory count sentence, whichmainhad lowered to 6359.main22ae9a397dhas 8860NotImplemented_nid_no_patchcalls inExport.cppfor its 6359, an offset of 2501; the merged tree has 8847 calls: 8847 − 2501 = 6346, 13 belowmainfor this branch's 13 exports.Export.cppmerged without a conflict.mainare the same as at0b07f22388apart from the count; the negative control below was not repeated.nkwebkit_*andguest_nkwebkit_*tests andpublic_headers. ThelibSceNKWebKitlibrary target builds too.tools/check_conventions.py --base upstream/mainon the committed head3f8df691aa: all checks pass. NoAPS5_VABIdeclaration changes its signature on this branch (review-tools/sig_users.py HEAD --build).git merge-tree --write-treeagainstmain286b14d2f7is clean.tools/pr_overlap.py --branch feat/nkwebkit-13-42-constant-returns --jobs 8at3f8df691aa, against 1,994 open pull requests: 15 have conflicting lines, all on the inventory count sentence (line 93 ofdocs/dev/debt/libSceNKWebKit.mdonmain), and none shares an export or a new file. The run failed closed (exit 2) on 55 that conflict withmainand were not compared line by line; three of them (#16127, #16142, #16166) also changesrc/ConstantExports.cppandtests/Constants.cpp. I searched the added and removed lines of those 55 for the 13 export names and found none. For #15807 GitHub refuses the whole diff, and the search covered its twolibSceNKWebKitfiles only. Whichever lands second recounts the sentence.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
0b07f22388(main3aa0ac20dfmerged in at361f3cd3fb, thenWKFrameGetCertificateInfodropped). The blocks after this one describe earlier heads, when the PR had 14 exports.docs/dev/debt/libSceNKWebKit.mdonly, on the inventory count sentence, whichmainhad lowered to 6362;mainalso corrected a commit hash in that sentence's aerolib link, which is kept.main3aa0ac20dfhas 8863NotImplemented_nid_no_patchcalls inExport.cppfor its 6362, so the offset is still 2501. WithWKFrameGetCertificateInfoback to throwing, the branch's tree has 8850 calls: 8850 − 2501 = 6349, 13 belowmainfor this branch's 13 exports, whose 13 rows it removes.WKFrameGetCertificateInfo(L1HtA3ROv5k) was one of the 14 and is left out now. #16509 implements it too. Here it keepsmain's throwing stub and table row, and the test no longer checks it.nkwebkit_constantspasses, 1 of 1, withlibSceNKWebKitand its test executable rebuilt. The rest of thenkwebkit_*suite was not re-run at this head.main'sExport.cppandsrc/ConstantExports.cppput back and this branch's test kept,nkwebkit_constantsaborts withWKBundleFrameHandlesPageScaleGesture not implemented(1 of 1 failed); with the branch's files restored it passes again.tools/check_conventions.py --base upstream/mainon the committed head0b07f22388: all checks pass. NoAPS5_VABIdeclaration changes its signature on this branch (review-tools/sig_users.py HEAD --build).tools/pr_overlap.py --branch feat/nkwebkit-13-42-constant-returns --jobs 8at0b07f22388, against 1,759 open pull requests: 20 have conflicting lines and none shares an export or a new file. 19 conflict on the inventory count sentence (line 91 ofdocs/dev/debt/libSceNKWebKit.mdonmain, #15175 and #16522 also on line 90); #15182 also conflicts incore/libs/prx/libSceNKWebKit/Export.cpp(lines 11494-11501 onmain) and on lines 398-399 of the debt file. The run failed closed (exit 2) on 55 that conflict withmainand were not compared line by line; four of them (#16123, #16127, #16142, #16166) also changesrc/ConstantExports.cppandtests/Constants.cpp. Whichever lands second recounts the sentence.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
e14ff4fa4b(mainef9dc27c65merged in):docs/dev/debt/libSceNKWebKit.mdonly, on the inventory count sentence, whichmainhad lowered to 6368.mainef9dc27c65has 8869NotImplemented_nid_no_patchcalls inExport.cppfor its 6368, so the offset is still 2501; the merged tree has 8855 calls: 8855 − 2501 = 6354, 14 belowmainfor this branch's 14 exports, whose 14 rows it removes.Export.cppmerged without a conflict, and the branch's added and removed lines againstmainare the same as at27be04c03capart from the count, so the negative control below was not repeated.nkwebkit_*andguest_nkwebkit_*tests (main's newnkwebkit_parsedcontentrangeincluded) andpublic_headers. ThelibSceNKWebKitlibrary target builds too.git merge-tree --write-tree upstream/main HEADis clean, and noAPS5_VABIdeclaration changes its signature on this branch.tools/check_conventions.py --base upstream/mainon the committed heade14ff4fa4b: all checks pass.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
27be04c03c(main6b733c4ef2merged in):docs/dev/debt/libSceNKWebKit.mdonly, on the inventory count sentence, whichmainhad lowered to 6373 with #15230. #15230 removed 28NotImplemented_nid_no_patchcalls fromExport.cppbut 27 inventory rows, sinceWebCore::HistoryItem::formDatahad no row, somain's 8874 calls now sit 2501 above its 6373 instead of 2502. This branch's 14 exports are all rows of the inventory table (the 14 rows it removes fromdocs/dev/debt/libSceNKWebKit.md), and the merged tree has 8860 calls: 8860 − 2501 = 6359.Export.cppmerged without a conflict, and the branch's added and removed lines againstmainare the same as atf2eee5d1e6apart from the count, so the negative control below was not repeated.nkwebkit_*andguest_nkwebkit_*tests (main's newnkwebkit_historyitemincluded) andpublic_headers. ThelibSceNKWebKitlibrary target builds too.tools/check_conventions.py --base upstream/mainon the committed head27be04c03c: all checks pass.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
f2eee5d1e6(main6c1efc7c59merged in):docs/dev/debt/libSceNKWebKit.mdonly, on the inventory count sentence, whichmainhad lowered to 6400. The count is taken from the merged tree as above:main6c1efc7c59has 8902NotImplemented_nid_no_patchcalls inExport.cppfor its 6400, the merged tree 8888, so 6386.Export.cppmerged without a conflict. The branch's added and removed lines againstmainare the same as at3125dcf7d6apart from the count, so the negative control below was not repeated.nkwebkit_*andguest_nkwebkit_*tests (main's newnkwebkit_webcoreviewportincluded) andpublic_headers. ThelibSceNKWebKitlibrary target builds too.tools/check_conventions.py --base upstream/mainon the committed headf2eee5d1e6: all checks pass.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
3125dcf7d6(main502288c2cfmerged in):docs/dev/debt/libSceNKWebKit.mdonly:mainadded its "WebCore text dumps" entry next to the inventory count sentence (kept) and lowered the count to 6405. The count is taken from the merged tree as above:main502288c2cfhas 8907NotImplemented_nid_no_patchcalls inExport.cppfor its 6405, the merged tree 8893, so 6391.Export.cppmerged without a conflict. The branch's added and removed lines againstmainare the same as at06b1386f83apart from the count, so the negative control below was not repeated.nkwebkit_*andguest_nkwebkit_*tests (main's newnkwebkit_credentialbase,nkwebkit_resourcerequest,nkwebkit_securityorigin,nkwebkit_webcoredumpandnkwebkit_webcoreparsersincluded) andpublic_headers. ThelibSceNKWebKitlibrary target builds too.tools/check_conventions.py --base upstream/mainon the committed head3125dcf7d6: all checks pass.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
06b1386f83(main23bc7c7625merged in):docs/dev/debt/libSceNKWebKit.mdonly, on the inventory count sentence, whichmainhad lowered to 6491. The count is taken from the merged tree as above:main23bc7c7625has 8993NotImplemented_nid_no_patchcalls inExport.cppfor its 6491, the merged tree 8979, so 6477. The branch's added and removed lines againstmainare the same as at6b0a643815apart from the count, so the negative control below was not repeated.nkwebkit_*andguest_nkwebkit_*tests (main's newnkwebkit_httpheadermapincluded) andpublic_headers. ThelibSceNKWebKitlibrary target builds too.tools/check_conventions.py --base upstream/mainon the committed head06b1386f83: all checks pass.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
6b0a643815(maincdefa2cf7cmerged in):Export.cppanddocs/dev/debt/libSceNKWebKit.md: #15151 implemented sevenWKProtectionSpace*getters whose stubs and table rows sat next to this branch'sWKProtectionSpaceCopyCertificateInfo, so both sides' removals are kept, and the inventory count is taken from the merged tree as above: 6487. The mergedExport.cppismain's with this branch's 14 stub blocks removed, and the branch's added and removed lines againstmainare the same 14 exports as before.nkwebkit_*andguest_nkwebkit_*tests andpublic_headers. The declarations do not change.tools/check_conventions.py --base upstream/mainon the committed head6b0a643815: all checks pass.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
2fcdc0dcf6(maincdf371df68merged in):docs/dev/debt/libSceNKWebKit.mdonly:mainadded itsWTF::BitVectorentry where this branch adds its 13.42 entry (both kept), and lowered the inventory count to 6537. The count is taken from the merged tree as above: 6523.nkwebkit_*andguest_nkwebkit_*tests andpublic_headers. The declarations do not change.mainare the same as at374489fc91apart from the count, so the negative control below was not repeated.tools/check_conventions.py --base upstream/mainon the committed head2fcdc0dcf6: all checks pass.Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head
374489fc91(main5f2e6336edmerged in):nkwebkit_*andguest_nkwebkit_*tests (main's newnkwebkit_noopsincluded) andpublic_headers. The declarations do not change.tests/Constants.cpp(nkwebkit_constants) checks that each of the 14 returns 0.main'sExport.cppandsrc/ConstantExports.cppput back and this branch's test kept,nkwebkit_constantsaborts withWKBundleFrameHandlesPageScaleGesture not implemented(1 of 1 failed).tools/check_conventions.py --base upstream/mainon the committed head: all checks pass.tools/pr_overlap.py --branch feat/nkwebkit-13-42-constant-returns, run at the previous head3be511242b, against 1,869 open pull requests: 92 share files with the branch, and the run failed closed. It lists 8 with line conflicts and 73 more in its "Some comparisons could not be completed" table, which it does not compare line by line. I grepped the added and removed lines of the 80 distinct pull requests it lists for the 14 names, and none of them names any of the 14. The compared rows are alldocs/dev/debt/libSceNKWebKit.md: the inventory count sentence on line 59 (#13930, #13947, #15225, #15241, #15326, #15843, #16016), and for #13930 also lines 696-698 of the inventory table, where this branch removes theWKProtectionSpaceCopyCertificateInforow and #13930 edits the rows next to it. Whichever lands second recounts that sentence. #13486 lists the 14 under Same exports, but its diff is three relinker files (core/relinker/CMakeLists.txt,ImportModule.hpp,ImportModuleTests.cpp), so that row did not come from its changes.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)🤖 Generated with Claude Code