feat(libSceNKWebKit): implement WKNavigationAction and WKNavigationResponse queries #15177
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15177"
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:04:45Z.
What
Implement
WKNavigationActionandWKNavigationResponsequeries inlibSceNKWebKit:WKNavigationActionShouldPerformDownload: returns boolean indicating whether the navigation should perform a download.WKNavigationResponseCanShowMIMEType: returns boolean indicating whether the response MIME type can be displayed.The
NavigationActionandNavigationResponsehost objects store the respective flags in memory; null or wrong-type references throwstd::invalid_argumentviaNKWebKit::Cast.Tested
check_conventions.py --base origin/mainpassed. Added test coverage inBase.cppcovering getter return values, state mutations, 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:24:47Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The getters have no production-created data source: their flags default false and are only set in tests; the PR also conflicts with three open WebKit PRs while declaring no dependency.
What I ran
Reviewed PR #15177 at head
183bb08cd12e6d6ccf6c56a0db36bcd8d29e4a9cagainst 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.Raw conventions output:
Raw 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 new C++ tests require an exact-head build. They directly set the private flags and then read them, so they do not provide runtime producer coverage.
Findings
Blocking
false; the exact-head search finds no production object construction or field writer, and the only assignments totrueare inBase.cpp. The tests therefore show that the getters read manually modified fields, not that the navigation callback supplies the values. In WebKit’s API, a navigation-response object is passed into the decision callback and its MIME capability determines whether the policy listener uses, downloads or ignores the response. Please add or declare a dependency on the production object-population path and test values supplied through that path; if it is out of scope, leave these exports unimplemented until it exists.Configuration.hpp,Base.cppand the WebKit debt file; the preview against #15175 conflicts inInventoryExports.hpp,Base.cppand the WebKit debt file. This PR saysDepends on: none. Please coordinate the landing order, declare it as required by the repository overlap rule, and resolve the conflicts on the appropriate updated head.Non-blocking
None.
Sources
Depends onNot verified
I did not run a local build, CTest, Linux or console tests, or a negative control. Three hosted checks remain pending. The external WebKit caller is a behavior reference, not proof of PS5-specific behavior.
To get this to a good state
Add or identify the production path that creates and populates these objects, coordinate the conflicting PR order and update the dependency declaration, then push a new head. I’ll rerun the no-build checks and inspect the exact new head; C++ tests and all required hosted checks must pass before approval.
Pull request closed