feat(libSceNKWebKit): implement the EmptyFrameLoaderClient error factories #23737
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23737"
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 Dark3581 on 2026-11-19T15:03:43Z.
What
Implements the eight
WebCore::EmptyFrameLoaderClienterror factories in libSceNKWebKit. All were throwing stubs inExport.cpp.Each returns the empty
ResourceErrorof the pinned PS5 WebKit 11.x EmptyClients.cpp: typeCancellationforcancelledError,Nullfor the other seven.The seven
Nullfactories areblockedError,blockedByContentBlockerError,cannotShowURLError,interruptedForPolicyChangeError,cannotShowMIMETypeError,fileDoesNotExistErrorandpluginWillHandleLoadError.Each export's signature matches the source exactly. The arguments are ignored, as in WebKit.
New
src/ResourceErrorAbi.hppis the 80-byte release layout of the pinned ResourceErrorBase.h and curl ResourceError.h:domainfailingURLlocalizedDescriptionerrorCodetypeisSanitizedtlsVerificationErrortlsVerificationErrorDescriptionResourceError(Type)leaves every other member at its default. The emptyfailingURLis the all-zero state thatURL::URL()sets throughURL::invalidate.The debt fragment removes the eight inventory rows and adds a Functional entry.
tools/pr_overlap.py --nameslists no open PR for any of the eight.--branchfailed closed on 32 PRs that conflict withmainand shareExport.cpp/InventoryExports.hpp. I grepped each one's diff from its merge base: none changes these eight functions or adds aResourceErrorlayout. No PR closed by the open-PR limit touches them either.Tested
Windows 10 22H2, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, on
mainb40a0d6dc7plus this commit.ctest -R "^(nkwebkit_|guest_nkwebkit)": 154 of 154 pass, including the newnkwebkit_emptyloadererrors.Typeenum values;typeis nonzero, and it isCancellationforcancelledError.tools/progress.pynow counts all eight as implemented.tools/check_conventions.py --base origin/main,tools/debt_fold.py --checkandtools/env_reference.py --checkpass.No title run: no title on hand reaches these factories.
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-19T15:05:08Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
45d3e617d5:tools/check_conventions.pypassed.nkwebkit_emptyloadererrors_testsbuilt cleanly.nkwebkit_emptyloadererrors):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/src/EmptyLoaderErrors.cppreverted 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 PrivacyOnion on 2026-11-19T17:04:55Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
6f7c4cfa91:tools/check_conventions.pypassed.nkwebkit_emptyloadererrors_testsbuilt cleanly.nkwebkit_emptyloadererrors):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/src/EmptyLoaderErrors.cppreverted 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-19T17:21:17Z.
Review: APPROVED
Reviewed — looks good
Nothing in the inspected changes blocks merging; the ABI return layout remains an acknowledged limitation because it was not compared with a console module.
What I ran
Reviewed head
6f7c4cfa91de38fdd9cd4651791e53f855655d98. No commands or tests were run;repo_read.pywas used to inspect the prepared review bundle and targeted source ranges.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The runtime ABI layout and return-in-memory behavior were not compared with a console module. Tests cited in the description were not run during this review. Read:
description.md,commits.md,manifest.json,diff.patch,EmptyLoaderErrors.cpp,ResourceErrorAbi.hpp,EmptyLoaderErrors.cpp(tests),EmptyLoaderErrorExports.hpp,libSceNKWebKit.hpp,feat-nkwebkit-empty-loader-errors.md, and relevant ranges ofExport.cpp,InventoryExports.hpp, andWtfStringAbi.hpp. Excluded by bundle rule: fullExport.cppandInventoryExports.hpp; only targeted ranges were read.files.jsonwas unavailable; the bundle listing confirmed the changed-file inclusion status.To get this to a good state
Nothing is required.