feat(libSceNKWebKit): implement WKHitTestResult property getters #15171
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15171"
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-02T19:51:23Z.
What
Implement
WKHitTestResultproperty getters inlibSceNKWebKit:WKHitTestResultCopyAbsoluteImageURL: returns the image URL.WKHitTestResultCopyAbsoluteLinkURL: returns the link URL.WKHitTestResultCopyAbsoluteMediaURL: returns the media URL.WKHitTestResultCopyAbsolutePDFURL: returns the PDF URL.WKHitTestResultCopyLinkLabel: returns the link label string.WKHitTestResultCopyLinkTitle: returns the link title string.WKHitTestResultCopyLookupText: returns the lookup text string.WKHitTestResultGetElementBoundingBox: returns the element's bounding rectangle.WKHitTestResultIsContentEditable: returns whether the hit element is editable.The
HitTestResulthost object holds these fields in memory; null or wrong-type references throwstd::invalid_argumentviaNKWebKit::Cast.Tested
check_conventions.py --base origin/mainpassed. Added test coverage inBase.cppcovering URL copying, label, title, text snippet, bounding box rect coordinates, boolean editable query, 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:00:38Z.
Review: COMMENTED
Reviewed — no blocking findings
Source inspection found no blocking defect; however, the four URL-copy tests only assert non-null results, and the hosted Windows job is still pending.
What I ran
Reviewed all seven changed files at head
bb23e636aedbd13c77a353d937773a20120e6a14, against PR base784ab0968325144612249cf14cb281997f08c745. The individual merge preview is clean against currentmain096c45570f516de76a43bbe1b97781381c84f55f. Environment: Debian 12 x86-64, Python 3.11.2, GCC 12.2.0. No local build or CTest was run.Results
HitTestResultPR.Commands and unedited output
The CMake inspection showed
src/*.cppandtests/*.cppare both globbed;WKURLCopyStringprovides a way to verify copied URL contents:Negative control
No mutation or negative control was run locally because the new C++ tests require a build. The PR does not report a negative-control run.
Findings
Blocking
None found in the source review of this exact head.
Non-blocking
WKHitTestResultCopyAbsolute*URLtest currently checks only that the returned reference is non-null. A wrong or empty URL would also pass. Please compareWKURLCopyStringon each returned object with its distinct expected URL.Sources
Not verified
I did not run a local build, CTest, a negative control, console behavior, or PS5 ABI execution. The hosted Windows build is still pending. The overlap helper did not complete, so the targeted title search is not a full duplicate check.
To get this to a good state
No blocking code change is requested. Please let the Windows job finish and consider asserting the returned URL strings. I will recheck the exact head and hosted checks before approval, and rerun the same no-build checks if the head changes.