feat(nkwebkit): implement dispatchDidReachLayoutMilestone #17550

Closed
alvaroelpob wants to merge 6 commits from upstream-pr/17550 into main
alvaroelpob commented 2026-11-08 21:49:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-08T21:49:01Z.


What

Implement the WebCore::EmptyFrameLoaderClient::dispatchDidReachLayoutMilestone callback as the no-op defined by WebKit 11.x.

Tested

Linux: suite.py feat/nkwebkit-layout-milestone at 2198b9c9a5: 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:5215441578 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17550). Originally posted by [alvaroelpob](https://github.com/alvaroelpob) on 2026-11-08T21:49:01Z. --- ### What Implement the WebCore::EmptyFrameLoaderClient::dispatchDidReachLayoutMilestone callback as the no-op defined by WebKit 11.x. ### 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-layout-milestone` at 2198b9c9a5: 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-16 23:40:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T23:40:37Z.

Review: COMMENTED


Reviewed — no blocking findings

The reviewed change adds the advertised no-op export; its console ABI remains unverified, so a formal approval is not justified.

What I ran

Reviewed head 241e83689624004a69f6adcb438d4f0cf11a6321. Inspected the prepared diff and changed code through repo_read.py; no build or tests were run. The description reports 4813/4813 CTest checks and conventions passing on Linux at 4174e7d9d8, which I did not verify.

Results

Check Result Note
Diff and implementation review passed No concrete defect found
Build and tests not run Author-reported results are from another revision

Findings

Blocking

None.

Non-blocking

  • core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp:3295 declares the callback as void with a client pointer and 16-bit milestones, matching the new stub at core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp:60. The debt entry also says the console ABI is unverified. Confirm the target ABI when evidence is available.

Not verified

The changed files read were core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp and core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp. core/libs/prx/libSceNKWebKit/Export.cpp and docs/dev/debt/libSceNKWebKit.md were excluded from the review bundle as too large; targeted ranges in Export.cpp and the diff were inspected. No build, tests, console execution, or ABI verification was performed.

To get this to a good state

Nothing is required. Optional: verify the callback ABI against console evidence when available.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5929918875 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17550#pullrequestreview-5929918875). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T23:40:37Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The reviewed change adds the advertised no-op export; its console ABI remains unverified, so a formal approval is not justified. ## What I ran Reviewed head `241e83689624004a69f6adcb438d4f0cf11a6321`. Inspected the prepared diff and changed code through `repo_read.py`; no build or tests were run. The description reports 4813/4813 CTest checks and conventions passing on Linux at `4174e7d9d8`, which I did not verify. ## Results | Check | Result | Note | |---|---|---| | Diff and implementation review | passed | No concrete defect found | | Build and tests | not run | Author-reported results are from another revision | ## Findings ### Blocking None. ### Non-blocking - `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp:3295` declares the callback as `void` with a client pointer and 16-bit milestones, matching the new stub at `core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp:60`. The debt entry also says the console ABI is unverified. Confirm the target ABI when evidence is available. ## Not verified The changed files read were `core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp` and `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`. `core/libs/prx/libSceNKWebKit/Export.cpp` and `docs/dev/debt/libSceNKWebKit.md` were excluded from the review bundle as too large; targeted ranges in `Export.cpp` and the diff were inspected. No build, tests, console execution, or ABI verification was performed. ## To get this to a good state Nothing is required. Optional: verify the callback ABI against console evidence when available.
MarcZX10 commented 2026-11-20 15:29:37 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change; the review found no verified defect in the no-op callback implementation.

What I ran

Reviewed head 870794c4f8925b64490a9072c937297ac6f59421. No commands or tests were run; the description reports a Linux suite run at 4174e7d9d8, which I did not independently verify.

Results

Check Result Note
Source review passed Callback and declaration inspected
Tests not run Author-reported run is on another revision

Findings

Blocking

None.

Non-blocking

None.

Not verified

The changed lines in Export.cpp and docs/dev/debt/libSceNKWebKit.md were inspected through the diff context, not the full head files. The callback implementation in EmptyClients.cpp and changed declaration in InventoryExports.hpp were read at the pinned head. The rest of those files, console ABI behavior, and the author's reported test run were not verified. repo_read.py was not run; the available review reader tools supplied the targeted source context.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5995142175 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17550#pullrequestreview-5995142175). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T15:29:37Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change; the review found no verified defect in the no-op callback implementation. ## What I ran Reviewed head `870794c4f8925b64490a9072c937297ac6f59421`. No commands or tests were run; the description reports a Linux suite run at `4174e7d9d8`, which I did not independently verify. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Callback and declaration inspected | | Tests | not run | Author-reported run is on another revision | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The changed lines in `Export.cpp` and `docs/dev/debt/libSceNKWebKit.md` were inspected through the diff context, not the full head files. The callback implementation in `EmptyClients.cpp` and changed declaration in `InventoryExports.hpp` were read at the pinned head. The rest of those files, console ABI behavior, and the author's reported test run were not verified. `repo_read.py` was not run; the available review reader tools supplied the targeted source context. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-22 06:44:15 +00:00 (Migrated from github.com)

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

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the implementation matches the described no-op, and the available code supports merging.

What I ran

Reviewed head 2198b9c9a51b4156809f09d58fb0d3adea98a688 using repo_read.py to inspect the prepared diff and targeted repository context. No tests or build commands were run by me. The author reports a Linux suite run with 6573/6574 CTest cases passing initially, one TLS test passing on rerun, and conventions passing.

Read description.md, commits.md, manifest.json, diff.patch, README.md, EmptyClients.cpp, the changed declaration in InventoryExports.hpp, and the surrounding Export.cpp lines. Searched for callback references. The full Export.cpp and InventoryExports.hpp texts were excluded from the review folder; their relevant context and changed declaration were read through the reader. files.json was not available as a review document; README.md and manifest.json identify the included and excluded files.

Results

Check Result Note
Diff and changed lines passed Changed lines inspected
Targeted source context passed Callback and neighboring exports inspected
Tests run by reviewer not run Author-reported results only

Negative control

Not run; this review did not execute tests.

Findings

Blocking

None.

Non-blocking

None.

Sources

The changed declaration uses a void return, explicit client pointer, and 16-bit milestone argument; the matching implementation is an empty function. The diff also removes the previous throwing stub for this callback. See InventoryExports.hpp at the reviewed commit and EmptyClients.cpp at the reviewed commit.

Not verified

I did not run the reported suite or independently confirm console ABI behavior. The full texts of Export.cpp and InventoryExports.hpp were excluded from the review folder; only the targeted Export.cpp context and changed InventoryExports.hpp declaration were read.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6010822192 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17550#pullrequestreview-6010822192). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T06:44:15Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the implementation matches the described no-op, and the available code supports merging. ## What I ran Reviewed head `2198b9c9a51b4156809f09d58fb0d3adea98a688` using `repo_read.py` to inspect the prepared diff and targeted repository context. No tests or build commands were run by me. The author reports a Linux suite run with 6573/6574 CTest cases passing initially, one TLS test passing on rerun, and conventions passing. Read `description.md`, `commits.md`, `manifest.json`, `diff.patch`, `README.md`, `EmptyClients.cpp`, the changed declaration in `InventoryExports.hpp`, and the surrounding `Export.cpp` lines. Searched for callback references. The full `Export.cpp` and `InventoryExports.hpp` texts were excluded from the review folder; their relevant context and changed declaration were read through the reader. `files.json` was not available as a review document; `README.md` and `manifest.json` identify the included and excluded files. ## Results | Check | Result | Note | |---|---|---| | Diff and changed lines | passed | Changed lines inspected | | Targeted source context | passed | Callback and neighboring exports inspected | | Tests run by reviewer | not run | Author-reported results only | ## Negative control Not run; this review did not execute tests. ## Findings ### Blocking None. ### Non-blocking None. ## Sources The changed declaration uses a `void` return, explicit client pointer, and 16-bit milestone argument; the matching implementation is an empty function. The diff also removes the previous throwing stub for this callback. See [InventoryExports.hpp at the reviewed commit](https://github.com/boykopovar/AnyPS5/blob/2198b9c9a51b4156809f09d58fb0d3adea98a688/core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp#L2988) and [EmptyClients.cpp at the reviewed commit](https://github.com/boykopovar/AnyPS5/blob/2198b9c9a51b4156809f09d58fb0d3adea98a688/core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp#L90). ## Not verified I did not run the reported suite or independently confirm console ABI behavior. The full texts of `Export.cpp` and `InventoryExports.hpp` were excluded from the review folder; only the targeted `Export.cpp` context and changed `InventoryExports.hpp` declaration were read. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 16:54:23 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Current main already has the no-op layout milestone callback in NoOpExports.cpp and exercises it in EmptyExports.cpp. This head conflicts with main in the inventory declaration and the former throwing definition. The useful remaining question is whether the export should declare the explicit receiver and 16-bit milestone argument. If that distinction matters to callers, apply it to the existing implementation and test the typed call there.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6174380477 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17550#pullrequestreview-6174380477). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T16:54:23Z. **Review:** COMMENTED --- Current main already has the no-op layout milestone callback in `NoOpExports.cpp` and exercises it in `EmptyExports.cpp`. This head conflicts with main in the inventory declaration and the former throwing definition. The useful remaining question is whether the export should declare the explicit receiver and 16-bit milestone argument. If that distinction matters to callers, apply it to the existing implementation and test the typed call there. 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!17550
No description provided.