Repository navigation
feat(nkwebkit): implement empty new-window policy callback - #17805
alvaroelpob wants to merge 5 commits into
Conversation
Progress report (76de27b → e49592a)📈 System libraries: 45.42% (+0.0025%, +1 implemented function) ✅ 1 implemented
⚪ 1 behaviourally empty (constant return or throw)
Changed libraries (implemented exports)
|
|
Exports with a name or library/NID already present in
|
|
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. |
050ac04 to
1a992b3
Compare
|
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.
Reviewed — looks good
The callback implementation and corrected declaration are consistent with the stated no-op behavior; the change is limited to that symbol and its debt documentation.
What I ran
Reviewed head 8b472111c8cb451bff3b6ed5976abfc8f28e7802 using the prepared diff and repo_read.py reader. No tests or build commands were run. The author reports CTest and conventions passed at a different commit, 1a992b34c7.
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed code | passed | Callback and declaration inspected |
| Tests | not run | Author-reported results are from an earlier commit |
| Full changed-file review | not run | Two files were excluded by size |
Findings
Blocking
None.
Non-blocking
None.
Not verified
Read core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp around the changed declaration and all of core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp. The prepared diff was reviewed for core/libs/prx/libSceNKWebKit/Export.cpp and docs/dev/debt/libSceNKWebKit.md, but their full texts were excluded by size and not read. Console ABI behavior and tests on this exact head were not verified.
To get this to a good state
Nothing is required.
…ForNewWindowAction call-only test
…rNewWindowAction in a debt fragment
8b47211 to
e49592a
Compare
|
Rebased onto main (
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the implementation and debt entry support the stated no-op policy callback behavior.
What I ran
Reviewed head e49592a7c74a38dbc35bb887ebbf69d61b1875f3. Read the prepared description, commits, manifest and diff, plus the added implementation, changed declaration and relevant symbol references through repo_read.py. No commands or tests were run; the Linux test results in the PR description are author-reported.
Results
| Check | Result | Note |
|---|---|---|
| Diff and targeted code review | passed | Behavior and declaration reviewed |
| Test suite | not run | Reported results are from the author |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full text of Export.cpp was excluded because it was too large; its diff hunk was reviewed. review/files.json was unavailable through the reader, so the reviewed-file inventory could not be confirmed. The remaining portion of LegacyExports.hpp, console ABI behavior, and the author-reported test run were not independently verified. Read: description.md, commits.md, manifest.json, diff.patch, EmptyClients.cpp, and lines 512–530 of LegacyExports.hpp. Excluded: full Export.cpp.
To get this to a good state
Nothing is required.
ligmaSec
left a comment
There was a problem hiding this comment.
Current main already defines the new-window policy callback in NoOpExports.cpp and calls it in EmptyExports.cpp. Git merges this head cleanly, but compiling and linking the two merged objects fails with a duplicate dispatchDecidePolicyForNewWindowAction definition. Keep one definition if this branch still carries a change you need.
AI-assisted: yes.
What
Implement EmptyFrameLoaderClient::dispatchDecidePolicyForNewWindowAction as the no-op defined by pinned WebKit 11.x and correct its declaration to void.
On hold:
EmptyFrameLoaderClientcannot be constructed yet (its four constructors throw and the module has no vtable for it), so no caller reaches this member until the client can be created.Tested
Linux:
suite.py feat/nkwebkit-empty-window-policy-callbackat e49592a: CTest 6573/6574 passed; guest_libressl_tls_engine_transport failed once and passed on rerun; conventions passed.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)