feat(nkwebkit): implement empty submit event callback #17793

Closed
alvaroelpob wants to merge 6 commits from upstream-pr/17793 into main
alvaroelpob commented 2026-11-09 16:21:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-09T16:21:04Z.


What

Implement EmptyFrameLoaderClient::dispatchWillSendSubmitEvent as the no-op defined by the pinned WebKit 11.x source.
On hold: EmptyFrameLoaderClient cannot 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-submit-event at 484f60c040: CTest 6574/6574 passed; conventions passed.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5227188690 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17793). Originally posted by [alvaroelpob](https://github.com/alvaroelpob) on 2026-11-09T16:21:04Z. --- ### What Implement EmptyFrameLoaderClient::dispatchWillSendSubmitEvent as the no-op defined by the pinned WebKit 11.x source. On hold: `EmptyFrameLoaderClient` cannot 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 <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Linux: `suite.py feat/nkwebkit-empty-submit-event` at 484f60c040: CTest 6574/6574 passed; conventions passed. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-20 15:24:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T15:24:15Z.

Review: APPROVED


Reviewed — looks good

The implementation matches the stated no-op callback, and the inspected changed code shows no blocking defect; console ABI verification and test execution were not performed.

What I ran

Reviewed head d11071db91ec6a2c0eb7353194a3c63fd0a9bf16. No commands or tests were run. Read review/description.md, review/commits.md, review/manifest.json, and review/diff.patch; read the changed lines in LegacyExports.hpp and EmptyClients.cpp, plus the relevant Export.cpp context. files.json was not present; the review file listing identifies Export.cpp and docs/dev/debt/libSceNKWebKit.md as excluded because they exceed the review folder limit. The relevant Export.cpp context and matching debt documentation line were inspected through the repository reader.

Results

Check Result Note
Changed implementation passed Empty callback body and void declaration align
Tests not run No test command was run in this review
Console ABI not run Documentation says it is unverified

Findings

Blocking

None.

Non-blocking

None.

Not verified

No build, tests, console execution, or ABI validation was performed. Full files excluded from the review folder were not read in full; only relevant Export.cpp context and the changed debt documentation line were inspected.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5995070574 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17793#pullrequestreview-5995070574). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T15:24:15Z. **Review:** APPROVED --- # Reviewed — looks good The implementation matches the stated no-op callback, and the inspected changed code shows no blocking defect; console ABI verification and test execution were not performed. ## What I ran Reviewed head `d11071db91ec6a2c0eb7353194a3c63fd0a9bf16`. No commands or tests were run. Read `review/description.md`, `review/commits.md`, `review/manifest.json`, and `review/diff.patch`; read the changed lines in `LegacyExports.hpp` and `EmptyClients.cpp`, plus the relevant `Export.cpp` context. `files.json` was not present; the review file listing identifies `Export.cpp` and `docs/dev/debt/libSceNKWebKit.md` as excluded because they exceed the review folder limit. The relevant `Export.cpp` context and matching debt documentation line were inspected through the repository reader. ## Results | Check | Result | Note | |---|---|---| | Changed implementation | passed | Empty callback body and void declaration align | | Tests | not run | No test command was run in this review | | Console ABI | not run | Documentation says it is unverified | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified No build, tests, console execution, or ABI validation was performed. Full files excluded from the review folder were not read in full; only relevant `Export.cpp` context and the changed debt documentation line were inspected. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-22 06:48:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T06:48:00Z.

Review: COMMENTED


Reviewed — no blocking findings

The reviewed code adds the no-op callback export and records it as functional debt; the console calling convention remains unverified.

What I ran

Reviewed head 484f60c040198f24ef5cf57c73ce8f9e3984e828. Read the prepared diff, description, commit list, manifest, and the changed source and debt files through repo_read.py; searched for the symbol and relevant export conventions. No tests or build commands were run. The description reports CTest and conventions passing; this was not independently verified.

Results

Check Result Note
Diff and changed source review passed No concrete defect found
Tests and build not run Author reports passing checks
Console calling convention not run Explicitly unverified

Findings

Blocking

None.

Non-blocking

  • core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp:91 adds a no-op definition for the mangled callback. Its console calling convention is explicitly unverified in the debt note (docs/dev/debt/changes/feat-nkwebkit-empty-submit-event.md:5), so behavior on console remains unconfirmed.

Not verified

  • core/libs/prx/libSceNKWebKit/Export.cpp was excluded from the prepared full-text files because it was too large; its changed hunk is visible in diff.patch, but the full file was not read.
  • No tests, build, or console execution were performed. The test result in description.md is author-reported.
  • Files read: review/description.md, review/commits.md, review/manifest.json, review/diff.patch, core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp, core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp, and docs/dev/debt/changes/feat-nkwebkit-empty-submit-event.md.
  • Excluded from full-text review: core/libs/prx/libSceNKWebKit/Export.cpp.

To get this to a good state

Nothing is required. Confirm the callback calling convention on console when that environment is available.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6010846295 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17793#pullrequestreview-6010846295). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T06:48:00Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The reviewed code adds the no-op callback export and records it as functional debt; the console calling convention remains unverified. ## What I ran Reviewed head `484f60c040198f24ef5cf57c73ce8f9e3984e828`. Read the prepared diff, description, commit list, manifest, and the changed source and debt files through `repo_read.py`; searched for the symbol and relevant export conventions. No tests or build commands were run. The description reports CTest and conventions passing; this was not independently verified. ## Results | Check | Result | Note | |---|---|---| | Diff and changed source review | passed | No concrete defect found | | Tests and build | not run | Author reports passing checks | | Console calling convention | not run | Explicitly unverified | ## Findings ### Blocking None. ### Non-blocking - `core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp:91` adds a no-op definition for the mangled callback. Its console calling convention is explicitly unverified in the debt note (`docs/dev/debt/changes/feat-nkwebkit-empty-submit-event.md:5`), so behavior on console remains unconfirmed. ## Not verified - `core/libs/prx/libSceNKWebKit/Export.cpp` was excluded from the prepared full-text files because it was too large; its changed hunk is visible in `diff.patch`, but the full file was not read. - No tests, build, or console execution were performed. The test result in `description.md` is author-reported. - Files read: `review/description.md`, `review/commits.md`, `review/manifest.json`, `review/diff.patch`, `core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp`, `core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp`, and `docs/dev/debt/changes/feat-nkwebkit-empty-submit-event.md`. - Excluded from full-text review: `core/libs/prx/libSceNKWebKit/Export.cpp`. ## To get this to a good state Nothing is required. Confirm the callback calling convention on console when that environment is available.
ligmaSec commented 2026-12-03 16:54:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T16:54:21Z.

Review: COMMENTED


The exact EmptyClients.cpp compiled on Linux and emitted the same mangled submit-event symbol that this branch removes from the throwing exports. The pinned upstream C++ takes the form state by rvalue reference and leaves it untouched. The caller still owns it. This verifies the replacement at source and object level, with the console ABI still unverified.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6174379974 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17793#pullrequestreview-6174379974). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T16:54:21Z. **Review:** COMMENTED --- The exact `EmptyClients.cpp` compiled on Linux and emitted the same mangled submit-event symbol that this branch removes from the throwing exports. The pinned upstream C++ takes the form state by rvalue reference and leaves it untouched. The caller still owns it. This verifies the replacement at source and object level, with the console ABI still unverified. AI-assisted: yes.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!17793
No description provided.