feat(nkwebkit): implement empty new-window policy callback #17805

Closed
alvaroelpob wants to merge 5 commits from upstream-pr/17805 into main
alvaroelpob commented 2026-11-09 16:50:26 +00:00 (Migrated from github.com)

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


What

Implement EmptyFrameLoaderClient::dispatchDecidePolicyForNewWindowAction as the no-op defined by pinned WebKit 11.x and correct its declaration to void.
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-window-policy-callback at e49592a7c7: CTest 6573/6574 passed; guest_libressl_tls_engine_transport failed once and passed on rerun; 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:5227636302 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17805). Originally posted by [alvaroelpob](https://github.com/alvaroelpob) on 2026-11-09T16:50:26Z. --- ### What Implement EmptyFrameLoaderClient::dispatchDecidePolicyForNewWindowAction as the no-op defined by pinned WebKit 11.x and correct its declaration to void. 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-window-policy-callback` at e49592a7c7: CTest 6573/6574 passed; guest_libressl_tls_engine_transport failed once and passed on rerun; 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:23:28 +00:00 (Migrated from github.com)

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

Review: APPROVED


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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5995059456 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17805#pullrequestreview-5995059456). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T15:23:28Z. **Review:** APPROVED --- # 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.
MarcZX10 commented 2026-11-22 06:45:47 +00:00 (Migrated from github.com)

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

Review: APPROVED


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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6010832055 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17805#pullrequestreview-6010832055). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T06:45:47Z. **Review:** APPROVED --- # 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 commented 2026-12-03 16:54:19 +00:00 (Migrated from github.com)

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

Review: COMMENTED


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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6174379398 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17805#pullrequestreview-6174379398). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T16:54:19Z. **Review:** COMMENTED --- 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.

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!17805
No description provided.