Repository navigation
feat(libSceNKWebKit): implement AccessibilityObjectModel, AriaReflection, ITPDatabase, NSURLSessionWebSocket, and TextAlignPositioned preference accessors - #18352
Conversation
…ion, ITPDatabase, NSURLSessionWebSocket, and TextAlignPositioned preference accessors
Progress report (3f7fb01 → bd5edfd)📈 System libraries: 37.08% (+0.02%, +11 implemented functions) ✅ 11 implemented
Changed libraries (implemented exports)
|
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.
AI-assisted: yes. |
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against bd5edfd8c2:
- Conventions:
tools/check_conventions.pypassed;git diff --checkclean. - Build:
libSceNKWebKit,nkwebkit_preferences_testsbuilt cleanly. - CTest (
nkwebkit_preferences):1/1 Test #3689: nkwebkit_preferences ............. Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 - Negative control: with
core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp,core/libs/prx/libSceNKWebKit/src/Preferences.cpp,core/libs/prx/libSceNKWebKit/src/Preferences.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass. - Code reading:
- Verified null pointer validation: PreferencesFromRef in core/libs/prx/libSceNKWebKit/src/Preferences.cpp enforces nullptr checks and throws std::invalid_argument for all 11 getters and setters, tested in tests/Preferences.cpp.
- Verified preference definitions and default values in Definitions() in core/libs/prx/libSceNKWebKit/src/Preferences.cpp: AccessibilityObjectModelEnabled (false, Testable), ApplicationChromeModeEnabled (false, Boolean), AriaReflectionEnabled (false, Testable), IsITPDatabaseEnabled (false, Boolean), IsNSURLSessionWebSocketEnabled (false, Boolean), and UseLegacyTextAlignPositionedElementBehavior (false, Boolean).
- Verified export signatures, C linkage (extern "C"), and APS5_VABI calling conventions in core/libs/prx/libSceNKWebKit/src/Preferences.hpp and Preferences.cpp, including the exact WebKit getter symbol WKPreferencesUseLegacyTextAlignPositionedElementBehavior.
- Verified clean removal of all 11 placeholder stubs from core/libs/prx/libSceNKWebKit/Export.cpp and LegacyExports.hpp without leaving any duplicate symbols or orphaned stubs.
- Verified strict AGENTS.md compliance: zero comments in code, no hardcoded title special-cases, no unauthorized file additions, and clean adherence to Conventional Commits.
- Verified unit test suite in core/libs/prx/libSceNKWebKit/tests/Preferences.cpp: covers initial defaults, boolean round trips, preference copy isolation, and null reference handling for both getters and setters.
- Note: the AI-assisted checkbox can stay.
Looks Good To Me
|
Tested
AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports. |
MarcZX10
left a comment
There was a problem hiding this comment.
feat(libSceNKWebKit): implement 11 WKPreferences exports — no blocking findings
The eleven throwing stubs are replaced by real accessors with the same names, and the removed stubs, the new declarations and the new tests agree with each other. Nothing blocks this; the points below are optional.
What I ran
Head bd5edfd8c2512be949684405d2bf38134cd217bb, base main. Read-only review: nothing was built or run.
repo_read.py search WKPreferencesSetAriaReflectionEnabled
repo_read.py search PreferencesFromRef core/libs/prx/libSceNKWebKit/src
repo_read.py search RequireThrows core/libs/prx/libSceNKWebKit/tests
repo_read.py search booleanCases core/libs/prx/libSceNKWebKit/tests/Preferences.cpp
repo_read.py search invalid_argument core/libs/prx/libSceNKWebKit/src
repo_read.py search WKPreferencesGetAriaReflectionEnabled core/libs/prx/libSceNKWebKit
repo_read.py cat core/libs/prx/libSceNKWebKit/src/Preferences.cpp 536 548
repo_read.py cat core/libs/prx/libSceNKWebKit/tests/Preferences.cpp 1 40
repo_read.py cat core/libs/prx/libSceNKWebKit/tests/Preferences.cpp 470 500
Results
| Check | Result | Note |
|---|---|---|
| Stubs removed | passed | 11 in the source, 11 declarations |
| Declarations match definitions | passed | Same signatures, from the diff |
| No old AriaReflection names left | passed | Only the new definition, declaration, test |
| Throw helper in tests | passed | Defined and used with the exception type |
| Conventions check | not run | Tools cannot run here |
| Public headers audit | not run | Tools cannot run here |
| Unit tests | not run | Nothing built |
Findings
Blocking
None.
Non-blocking
-
core/libs/prx/libSceNKWebKit/src/Preferences.cpp:44: theAriaReflectionEnabledentry is indented 16 spaces; its neighbours use 8.{u"AriaReflectionEnabled", {false, FeatureKind::Testable}}, -
core/libs/prx/libSceNKWebKit/tests/Preferences.cpp:483:ApplicationChromeModeEnabledis set totruebut never read back, because this PR adds no getter. The test therefore only checks that the call does not throw. The description says "Verified ... null pointer validation" for this setter, which is accurate, but the value itself is not verified.
Not verified
core/libs/prx/libSceNKWebKit/Export.cppis too large for the review folder and was not read at head. I saw its 11 removals in the diff, and I searched at head only for the AriaReflection names. The absence of the other ten names from that file was not checked.core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp(2390 lines) was read only through its diff hunks.core/libs/prx/libSceNKWebKit/src/Preferences.cppwas read through its diff hunks and lines 536–548 at head. The setter and getter bodies, and theCasthelper's null check, were not read. The description's claim that a null pointer throwsstd::invalid_argumentis not verified.- The toggle sequence (false → true → false → true) is not verified. The loop over
booleanCasesstarts atcore/libs/prx/libSceNKWebKit/tests/Preferences.cpp:205, and its body was not read. - The
FeatureKindchoices (Testable or Boolean) were not compared with howFeatureKindis consumed. - The conventions check, the public headers audit and the unit test run claimed in the description were not run.
Files read: description.md, commits.md, manifest.json, files.json and diff.patch in full. Preferences.cpp, Preferences.hpp, LegacyExports.hpp and tests/Preferences.cpp were read through their diff hunks plus the reader ranges above. Export.cpp was not read at head. Excluded by rule: none.
To get this to a good state
Nothing is required. The two optional points are listed under Findings.
What
This pull request implements 11 \WKPreferences\ getter and setter exports in \libSceNKWebKit:
Replaces 11 throwing placeholder stubs in \Export.cpp\ and \include/LegacyExports.hpp, adds definitions with WebKit default values (\AccessibilityObjectModelEnabled: false, \ApplicationChromeModeEnabled: false, \AriaReflectionEnabled: false, \IsITPDatabaseEnabled: false, \IsNSURLSessionWebSocketEnabled: false, \UseLegacyTextAlignPositionedElementBehavior: false) in \Definitions(), adds function prototypes to \src/Preferences.hpp, and adds unit tests to \ ests/Preferences.cpp.
Tested
Checklist