feat(libSceNKWebKit): implement WKFramePolicyListener decision calls #15178
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15178"
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 adriaespii on 2026-11-02T20:07:19Z.
What
Implement
WKFramePolicyListenerdecision calls inlibSceNKWebKit:WKFramePolicyListenerUse: recordsUsepolicy decision.WKFramePolicyListenerDownload: recordsDownloadpolicy decision.WKFramePolicyListenerIgnore: recordsIgnorepolicy decision.WKFramePolicyListenerUseInNewProcess: recordsUseInNewProcesspolicy decision.WKFramePolicyListenerUseWithPolicies: recordsUseWithPoliciespolicy decision with customWKWebsitePolicies.WKFramePolicyListenerUseInNewProcessWithPolicies: recordsUseInNewProcessWithPoliciesdecision with policies.The
FramePolicyListenerhost object tracks the chosen action and attached website policies; null or wrong-type references throwstd::invalid_argumentviaNKWebKit::Cast.Tested
check_conventions.py --base origin/mainpassed. Added test coverage inBase.cppcovering each policy decision action, website policy attachment, and null reference exception handling.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 MarcZX10 on 2026-11-02T20:22:21Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
These exports only record decisions in unread fields, so they do not resolve WebKit policy callbacks; pairwise previews also conflict with three open WebKit PRs while this PR declares no dependency.
What I ran
Reviewed PR #15178 at head
e237c24e599a15328e269d1fcc90370471a3fed2against base/currentmain096c45570f516de76a43bbe1b97781381c84f55f; its individual merge preview is clean. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. No local C++ build or CTest was run.Results
Precheck results and raw outputs
git diff --check 096c45570f516de76a43bbe1b97781381c84f55f...e237c24e599a15328e269d1fcc90370471a3fed2Raw convention output:
Raw workspace ABI audit summary:
Raw pairwise conflict output:
The precheck’s ABI/test-quality helper failures are snapshot availability failures, not findings from those analyzers.
Negative control
Not run; the added C++ tests require an exact-head build. The source-level consumer search below is independent evidence and is not a test.
Findings
Blocking
FramePolicyListener::actionand optionallypolicies; exact-head search found no production constructor or reader for those fields, while the tests inspect the fields directly. Thus a call records an enum in an object but does not resolve the navigation policy. The corresponding WebKit C API forwards these operations to the listener’suse,downloadorignoremethods, which deliver the result through its completion callback. Please connect the object to a one-shot policy completion callback and test that each API call resolves it with the expected action and policies; otherwise leave these exports unimplemented until that path exists.Configuration.hpp,Base.cppand the WebKit debt file; previews against #15175 conflict inBase.cppand the debt file. This PR saysDepends on: none. Please coordinate the landing order, declare the required dependency or dependencies, and resolve the resulting conflicts in the appropriate follow-up head.Non-blocking
None.
Sources
Depends onNot verified
I did not run a local build, CTest, Linux or console tests, or a negative control. The six hosted jobs are still queued. The external WebKit source is a behavior reference, not proof of PS5-specific behavior.
To get this to a good state
Implement or defer the actual decision callback path, coordinate the conflicting WebKit PR series and update its dependency declaration, then push a new head. I’ll rerun the same no-build checks and review the exact new head; C++ tests and required hosted checks will also need to complete before approval.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-11-07T03:08:46Z.
Review: CHANGES_REQUESTED
Checked the diff, the new
FramePolicyListenertype andTestFramePolicyListener; the test fails without the change (the symbols don't exist). Findings:tests/Base.cppconstructs aFramePolicyListener(no policy-client export creates one or passes it to a guest callback), so a guest can never hold a validWKFramePolicyListenerRefand these six exports are unreachable; the completion handler is wired to nothing. Please add the producer that creates the listener and delivers the decision (or hold this until that export exists), with a test that goes through it.docs/dev/debt/libSceNKWebKit.md:26: the new line is inserted between existing entries with no blank line after it, and it doesn't state what is unverified (signatures,WKFramePolicyListenersemantics when no handler is set, console behaviour). Keep a blank line between entries and list those gaps.main(Export.cpp,InventoryExports.hpp, the debt file) and overlaps #13515 and #14138 on the same files; please rebase and list the PRs underDepends onif they conflict semantically.Welcome to push the update.
Pull request closed