Repository navigation
feat(libSceNKWebKit): implement WKPreferences QTKitEnabled accessors - #24238
heditrigui wants to merge 1 commit into
Conversation
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 8327efa9cd:
- Conventions:
tools/check_conventions.pyfailed.(pull request): error: [pr-template] Fill in the pull request template: answer AI-assisted with yes or no (pull request): error: [pr-template] Fill in the pull request template: fill Depends on with #N or none 2 findings, 2 errors; GitHub shows at most 10 error annotations, the job summary lists all - Build:
nkwebkit_constants_tests,nkwebkit_noops_tests,nkwebkit_preferences_testsbuilt cleanly. - CTest (
nkwebkit_constants,nkwebkit_noops,nkwebkit_preferences):1/3 Test #4758: nkwebkit_noops ................... Passed 0.26 sec 2/3 Test #4771: nkwebkit_preferences ............. Passed 0.48 sec 3/3 Test #4698: nkwebkit_constants ............... Passed 0.24 sec 100% tests passed, 0 tests failed out of 3
Requesting changes for the points above.
|
@PrivacyOnion Thank you for the review! I have updated the PR description checklist with \Depends on: none\ and \AI-assisted: yes\ per the repository template. |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
The preference accessors and their generic boolean tests are consistent with the stated behavior at head 8327efa9cde7bd090410dee1527c278336094630; I did not run programmatic checks, and InventoryExports.hpp was excluded from review.
What I ran
Read the prepared diff and targeted repository context through repo_read.py. No tests or builds were run.
Results
| Check | Result | Note |
|---|---|---|
| Targeted code review | passed | Accessors use the registered boolean preference |
| Tests and builds | not run | No programmatic checks performed |
| Excluded file review | not run | InventoryExports.hpp was too large for the review folder |
Findings
Blocking
None identified in the code reviewed.
Non-blocking
None.
Not verified
InventoryExports.hpp was excluded by the prepared review artifacts and could not be read through the reader. The changed declarations removed from that file therefore were not verified. No tests, builds, console behavior, or author-reported checks were independently verified. The full text of files marked included in the manifest was not retrieved from the review folder; targeted repository ranges were read for behavior and tests.
To get this to a good state
Nothing is required.
|
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.
|
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The reviewed changes consistently add the QTKitEnabled preference accessors and register the preference with a false default; no blocking defect was found in the inspected code.
What I ran
Reviewed head 0440b4caa9b0c06a4a16709682db76b7ee5eccff using repo_read.py to inspect the prepared diff and targeted source ranges. No commands or tests were run; the checks listed in the PR description are author-reported.
Results
| Check | Result | Note |
|---|---|---|
| Diff and targeted source review | passed | Accessors and default agree |
| Automated checks | not run | Results reported by author only |
Findings
Blocking
None.
Non-blocking
None.
Not verified
Automated checks and console behavior were not run. InventoryExports.hpp was excluded from the review bundle because it was too large; its changed hunk was inspected through the reader. All changed files listed in the manifest were reviewed via the diff or targeted source ranges; the full contents of large files were not read.
To get this to a good state
Nothing is required.
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 0440b4caa9:
- Conventions:
tools/check_conventions.pypassed. - Build:
nkwebkit_constants_tests,nkwebkit_noops_tests,nkwebkit_preferences_testsbuilt cleanly. - CTest (
nkwebkit_constants,nkwebkit_noops,nkwebkit_preferences):1/3 Test #4851: nkwebkit_noops ................... Passed 0.03 sec 2/3 Test #4865: nkwebkit_preferences ............. Passed 0.06 sec 3/3 Test #4782: nkwebkit_constants ............... Passed 0.03 sec 100% tests passed, 0 tests failed out of 3 - Negative control: with
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/NoOpExports.hpp,core/libs/prx/libSceNKWebKit/src/ConstantExports.cpp,core/libs/prx/libSceNKWebKit/src/NoOpExports.cpp,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:
- core/libs/prx/libSceNKWebKit/src/Preferences.cpp: verified PreferencesFromRef correctly validates preferencesRef against null/invalid references and throws std::invalid_argument per NKWebKit conventions.
- core/libs/prx/libSceNKWebKit/src/Preferences.cpp: verified Definitions() registration matches historical WebKit default (false, FeatureKind::Boolean) and consistent key string 'QTKitEnabled'.
- core/libs/prx/libSceNKWebKit/src/Preferences.hpp: verified export signatures WKPreferencesGetQTKitEnabled(const void*) -> bool and WKPreferencesSetQTKitEnabled(const void*, bool) match calling convention APS5_VABI and upstream WebKit C API.
- core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp & NoOpExports.hpp: verified clean removal of outdated stub declarations and removal of obsolete stub assertions in tests/Constants.cpp and tests/NoOps.cpp.
- core/libs/prx/libSceNKWebKit/tests/Preferences.cpp: verified booleanCases table entry systematically covers default false, setter/getter roundtrip, copy propagation via WKPreferencesCreateCopy, and null reference rejection.
- docs/dev/debt/changes/feat-nkwebkit-preferences-qtkit.md: verified debt fragment syntax and accurate description matching AGENTS.md rules.
Looks Good To Me
|
Tested
AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports. |
3d20965 to
c388dcc
Compare
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against c388dccaa8:
- Conventions:
tools/check_conventions.pypassed. - Build:
nkwebkit_constants_tests,nkwebkit_noops_tests,nkwebkit_preferences_testsbuilt cleanly. - CTest (
nkwebkit_constants,nkwebkit_noops,nkwebkit_preferences):1/3 Test #4883: nkwebkit_constants ............... Passed 0.01 sec 2/3 Test #4993: nkwebkit_noops ................... Passed 0.01 sec 3/3 Test #5013: nkwebkit_preferences ............. Passed 0.01 sec 100% tests passed, 0 tests failed out of 3 - Negative control: with
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/NoOpExports.hpp,core/libs/prx/libSceNKWebKit/src/ConstantExports.cpp,core/libs/prx/libSceNKWebKit/src/NoOpExports.cpp,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:
- core/libs/prx/libSceNKWebKit/src/Preferences.cpp: Verified WKPreferencesGetQTKitEnabled and WKPreferencesSetQTKitEnabled forward to PreferencesFromRef(preferencesRef, func)->GetBool(u"QTKitEnabled") and Set(u"QTKitEnabled", flag), throwing std::invalid_argument on null/invalid references consistent with all NKWebKit preference accessors.
- core/libs/prx/libSceNKWebKit/src/Preferences.cpp: Verified Definitions() registers u"QTKitEnabled" with default false and FeatureKind::Boolean matching historical WebKit configuration.
- core/libs/prx/libSceNKWebKit/src/Preferences.hpp: Verified signatures WKPreferencesGetQTKitEnabled(const void*) -> bool and WKPreferencesSetQTKitEnabled(const void*, bool) match calling convention APS5_VABI and WebKit C API conventions.
- core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp & NoOpExports.hpp: Verified clean removal of outdated stub declarations, and corresponding constant/noop assertions removed from tests/Constants.cpp and tests/NoOps.cpp.
- core/libs/prx/libSceNKWebKit/tests/Preferences.cpp: Verified booleanCases table addition systematically tests default false, setter/getter roundtrip, copy propagation via WKPreferencesCreateCopy, and null reference rejection.
- docs/dev/debt/changes/feat-nkwebkit-preferences-qtkit.md: Verified valid technical debt fragment syntax and description per AGENTS.md.
Looks Good To Me
|
I reviewed head
Lines in Runs.
On the merge, Existing runs.
Negative control. I kept the declarations, the Mutations. Each runs once against
The row survives removal because Probe. It is a new function in
Suggestion. Two checks from the probe in Suggestion. Removing the stubs leaves three blank lines in a row in Suggestion. The debt fragment says the default matches historical WebKit configuration but names no source. Here, several accessors that WebKit keeps only for compatibility ignore the reference and return a constant, for example Host:
AI-assisted: yes |
c388dcc to
3db83d3
Compare
3db83d3 to
e85124e
Compare
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this; the points below are optional.
What I ran
Reviewed head e85124ee78cd46fc38e578bbc8dffdd512b1f4ae from the prepared diff and targeted source reads using repo_read.py. No build or test commands were run; the description reports convention, debt-fold, overlap, and whitespace checks, but these were not independently run.
Results
| Check | Result | Note |
|---|---|---|
| Source review | passed | Accessors follow existing preference patterns |
| Build and tests | not run | Not run during this review |
| Author-reported checks | not run | Not independently verified |
Findings
Blocking
None.
Non-blocking
None.
Not verified
Physical-console behavior and the author-reported checks were not verified. Reviewed all changed files listed in the manifest: core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/NoOpExports.hpp, core/libs/prx/libSceNKWebKit/src/ConstantExports.cpp, core/libs/prx/libSceNKWebKit/src/NoOpExports.cpp, core/libs/prx/libSceNKWebKit/src/Preferences.cpp, core/libs/prx/libSceNKWebKit/src/Preferences.hpp, core/libs/prx/libSceNKWebKit/tests/Constants.cpp, core/libs/prx/libSceNKWebKit/tests/NoOps.cpp, core/libs/prx/libSceNKWebKit/tests/Preferences.cpp, and docs/dev/debt/changes/feat-nkwebkit-preferences-qtkit.md. No changed files were excluded in the manifest.
To get this to a good state
Nothing is required.
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against e85124ee78:
- Conventions:
tools/check_conventions.pypassed. - Build:
nkwebkit_constants_tests,nkwebkit_noops_tests,nkwebkit_preferences_testsbuilt cleanly. - CTest (
nkwebkit_constants,nkwebkit_noops,nkwebkit_preferences):1/3 Test #5364: nkwebkit_noops ................... Passed 0.04 sec 2/3 Test #5388: nkwebkit_preferences ............. Passed 0.06 sec 3/3 Test #5230: nkwebkit_constants ............... Passed 0.04 sec 100% tests passed, 0 tests failed out of 3 - Negative control: with
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/NoOpExports.hpp,core/libs/prx/libSceNKWebKit/src/ConstantExports.cpp,core/libs/prx/libSceNKWebKit/src/NoOpExports.cpp,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 WKPreferencesSetQTKitEnabled and WKPreferencesGetQTKitEnabled in core/libs/prx/libSceNKWebKit/src/Preferences.cpp:2079-2086 handle null and invalid references via PreferencesFromRef throw pattern
- Verified QTKitEnabled preference registration in Definitions() in core/libs/prx/libSceNKWebKit/src/Preferences.cpp:308 with default false and FeatureKind::Boolean
- Verified declarations match exact linkage and APS5_VABI signatures in core/libs/prx/libSceNKWebKit/src/Preferences.hpp:214,429 and removed stubs from InventoryExports.hpp and NoOpExports.hpp
- Verified table-driven unit test coverage in core/libs/prx/libSceNKWebKit/tests/Preferences.cpp:168 for default value, roundtrip mutation, copy propagation, and invalid reference rejection
- Verified documentation of debt fragment in docs/dev/debt/changes/feat-nkwebkit-preferences-qtkit.md conforms to repository debt tracking requirements
Looks Good To Me
# Conflicts: # core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
e85124e to
41d336f
Compare
|
No actionable comments were generated in the recent review. Walkthrough
Change: Feature Merge Risk:
|
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 41d336f52f:
- Conventions:
tools/check_conventions.pypassed. - Build:
nkwebkit_constants_tests,nkwebkit_noops_tests,nkwebkit_preferences_testsbuilt cleanly. - CTest (
nkwebkit_constants,nkwebkit_noops,nkwebkit_preferences):1/3 Test #5453: nkwebkit_noops ................... Passed 0.01 sec 2/3 Test #5477: nkwebkit_preferences ............. Passed 0.02 sec 3/3 Test #5315: nkwebkit_constants ............... Passed 0.01 sec 100% tests passed, 0 tests failed out of 3 - Negative control: with
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/NoOpExports.hpp,core/libs/prx/libSceNKWebKit/src/ConstantExports.cpp,core/libs/prx/libSceNKWebKit/src/NoOpExports.cpp,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 WKPreferencesGetQTKitEnabled and WKPreferencesSetQTKitEnabled in core/libs/prx/libSceNKWebKit/src/Preferences.cpp:2079-2086 handle null and invalid references via PreferencesFromRef throw pattern
- Verified QTKitEnabled preference registration in Definitions() in core/libs/prx/libSceNKWebKit/src/Preferences.cpp:308 with default false and FeatureKind::Boolean
- Verified declarations match exact linkage and APS5_VABI signatures in core/libs/prx/libSceNKWebKit/src/Preferences.hpp:214,429 and removed stubs from InventoryExports.hpp and NoOpExports.hpp
- Verified table-driven unit test coverage in core/libs/prx/libSceNKWebKit/tests/Preferences.cpp:168 for default value, roundtrip mutation, copy propagation, and invalid reference rejection
- Verified documentation of debt fragment in docs/dev/debt/changes/feat-nkwebkit-preferences-qtkit.md conforms to repository debt tracking requirements
Looks Good To Me
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing in the inspected implementation blocks merge; the preference accessors follow the existing pattern, and the test suite includes the new default, round-trip, copy, and invalid-reference cases.
What I ran
Reviewed head 41d336f52f37cc29c7fbf28f9f0411fc2080e133. No commands or tests were run; the review interface provided read-only access. I read all ten changed files listed as reviewed in manifest.json, focusing on changed lines and relevant surrounding code. No files were excluded.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | Accessors and tests inspected |
| Automated checks | not run | Read-only review interface |
| Console behavior | not run | No console available |
Findings
Blocking
None.
Non-blocking
None.
Not verified
Build and automated test results were not independently verified. Console behavior was not tested. The PR description reports convention, debt-fold, whitespace, and overlap checks, but those were not run during this review.
To get this to a good state
Nothing is required.
ligmaSec
left a comment
There was a problem hiding this comment.
Built the branch’s changed sources and ran Preferences and NoOps and Constants on Linux against the existing runtime libraries. The test run passed and covered the QTKit preference accessors alongside the existing no-op and constant checks.
AI-assisted: yes.
Plyxen
left a comment
There was a problem hiding this comment.
I read the diff at 41d336f52f. Windows 11 with GCC 15.2 and Linux (Ubuntu 24.04 in WSL2, GCC 13.3), applied onto main at c1593e4e1dd together with other open PRs (so not an isolated build).
nkwebkit_preferences,nkwebkit_constantsandnkwebkit_noops: pass on both.- No control: on
mainthe two exports take no arguments.
Not checked: the values against a console.
AI-assisted: yes (Claude Code)
|
I'm closing this under a standing team decision on libSceNKWebKit: no title can reach these exports yet. On main, If page or view creation lands, or you can show a title that calls these functions, reopen it and it will be reviewed on merit. |
What
Implements
WKPreferencesGetQTKitEnabledandWKPreferencesSetQTKitEnabledinlibSceNKWebKit:NKWebKit::Preferences(QTKitEnabled).QTKitEnabledwith default valuefalseinDefinitions()matching historical WebKit configuration.InventoryExports.hppandNoOpExports.hpp, and constant assertions fromtests/Constants.cppandtests/NoOps.cpp.tests/Preferences.cppvalidating defaultfalse, setter/getter roundtrip, copy propagation, and invalid reference argument rejection.docs/dev/debt/changes/feat-nkwebkit-preferences-qtkit.md.Tested
tools/pr_overlap.py --names WKPreferencesGetQTKitEnabled WKPreferencesSetQTKitEnabledconfirmed 0 open PR overlaps across 2,039 open PRs.tools/check_conventions.pypassed with 0 errors.tools/debt_fold.py --checkpassed cleanly.git diff --checkpassed with 0 whitespace or formatting issues.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)Summary by CodeRabbit