feat(webbrowserdialog): implement predetermined content and cookie calls #2854

Closed
alfalfa-star wants to merge 3 commits from upstream-pr/2854 into main
alfalfa-star commented 2026-10-10 16:37:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-10T16:37:06Z.


What

Implements three libSceWebBrowserDialog exports that still called NotImplemented_nid_no_patch:

  • sceWebBrowserDialogOpenForPredeterminedContent(param, predetermined) finishes at once, like sceWebBrowserDialogOpen, with the same not-initialized, busy and null-argument checks. It does not read the allow-list.
  • sceWebBrowserDialogSetCookie(param) and sceWebBrowserDialogResetCookie(param) succeed for a non-null block. The dialog loads no page, so there is no cookie store: the cookie is discarded and there is nothing to reset. A null block returns ARG_NULL.

The signatures follow SharpProspero. The error for a null allow-list and the console's size checks on the blocks are unknown. The signatures and unknowns are under "Unknown function info" in TechnicalDebt, and the no-page, no-cookie-store model is under "Functional". PPSA14632 and PPSA12544 import them.

Tested

Linux (Arch, GCC), Release build, on main 57f96fd2:

  • guest_web_browser_dialog: checks the not-initialized and both null-argument errors, the finished state after opening, and both cookie calls with a block and with null. It aborts without this change (exit 134).
  • Full ctest: 698/698 passed (4 skipped for lack of a display).
  • tools/check_conventions.py --base upstream/main 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 in TechnicalDebt
  • 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. Edits the same TechnicalDebt line as #2852 and #2853, so the later ones need a rebase
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4812782742 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2854). Originally posted by [alfalfa-star](https://github.com/alfalfa-star) on 2026-10-10T16:37:06Z. --- ### What Implements three libSceWebBrowserDialog exports that still called `NotImplemented_nid_no_patch`: - `sceWebBrowserDialogOpenForPredeterminedContent(param, predetermined)` finishes at once, like `sceWebBrowserDialogOpen`, with the same not-initialized, busy and null-argument checks. It does not read the allow-list. - `sceWebBrowserDialogSetCookie(param)` and `sceWebBrowserDialogResetCookie(param)` succeed for a non-null block. The dialog loads no page, so there is no cookie store: the cookie is discarded and there is nothing to reset. A null block returns `ARG_NULL`. The signatures follow [SharpProspero](https://github.com/SvenGDK/SharpProspero/blob/main/src/SharpProspero/Interop/Dialog/WebBrowserDialog.cs). The error for a null allow-list and the console's size checks on the blocks are unknown. The signatures and unknowns are under "Unknown function info" in TechnicalDebt, and the no-page, no-cookie-store model is under "Functional". PPSA14632 and PPSA12544 import them. ### Tested Linux (Arch, GCC), Release build, on `main` 57f96fd2: - `guest_web_browser_dialog`: checks the not-initialized and both null-argument errors, the finished state after opening, and both cookie calls with a block and with null. It aborts without this change (exit 134). - Full `ctest`: 698/698 passed (4 skipped for lack of a display). - `tools/check_conventions.py --base upstream/main` passed. ### Checklist - [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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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. Edits the same TechnicalDebt line as #2852 and #2853, so the later ones need a rebase - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-10 16:38:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T16:38:51Z.


Progress report (dbc3b06 → f661e87)

📈 System libraries: 85.53% (+0.09%, +3 implemented functions)

✅ 3 implemented
Library Name
libSceWebBrowserDialog sceWebBrowserDialogOpenForPredeterminedContent
libSceWebBrowserDialog sceWebBrowserDialogResetCookie
libSceWebBrowserDialog sceWebBrowserDialogSetCookie
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6099788377 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2854#issuecomment-6099788377). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T16:38:51Z. --- <!-- progress-report --> ### Progress report (dbc3b06 → f661e87) 📈 **System libraries**: 85.53% (+0.09%, +3 implemented functions) <details> <summary>✅ 3 implemented</summary> | Library | Name | | - | - | | libSceWebBrowserDialog | `sceWebBrowserDialogOpenForPredeterminedContent` | | libSceWebBrowserDialog | `sceWebBrowserDialogResetCookie` | | libSceWebBrowserDialog | `sceWebBrowserDialogSetCookie` | </details>
oneandonlydean commented 2026-10-10 19:18:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T19:18:08Z.


Same as #2852: please add the log line where PPSA14632 or PPSA12544 stops at one of these on main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6101236934 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2854#issuecomment-6101236934). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-10T19:18:08Z. --- Same as #2852: please add the log line where PPSA14632 or PPSA12544 stops at one of these on main.
screamm commented 2026-10-10 21:25:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-10T21:25:16Z.


Windows validation of the current head 31822fde on main 262c0316.

The branch no longer merges cleanly: git merge main conflicts in docs/dev/TechnicalDebt.md (both sides append to the same place). The code and test files merge without conflict, so I built and tested that merged tree with the documentation conflict left unresolved.

Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, BUILD_TESTING=ON, full build including the libs target:

  • guest_web_browser_dialog passes 3/3 (--repeat until-fail:3).
  • ctest -j8 -E "^agc_|video_out" passes 388/388.
  • With main's libSceWebBrowserDialog/Export.cpp and this PR's test, guest_web_browser_dialog fails, so the coverage detects the previous behaviour.

Validation run with Claude Code assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6102338209 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2854#issuecomment-6102338209). Originally posted by [screamm](https://github.com/screamm) on 2026-10-10T21:25:16Z. --- Windows validation of the current head `31822fde` on `main` `262c0316`. The branch no longer merges cleanly: `git merge main` conflicts in `docs/dev/TechnicalDebt.md` (both sides append to the same place). The code and test files merge without conflict, so I built and tested that merged tree with the documentation conflict left unresolved. Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release, `BUILD_TESTING=ON`, full build including the `libs` target: - `guest_web_browser_dialog` passes 3/3 (`--repeat until-fail:3`). - `ctest -j8 -E "^agc_|video_out"` passes 388/388. - With `main`'s `libSceWebBrowserDialog/Export.cpp` and this PR's test, `guest_web_browser_dialog` fails, so the coverage detects the previous behaviour. Validation run with Claude Code assistance.
adriadam10 commented 2026-10-11 00:09:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T00:09:59Z.

Review: CHANGES_REQUESTED


Thanks for the Windows-confirmed test. Two things before this can land:

  • @oneandonlydean asked above for the log line where PPSA14632 or PPSA12544 stops at one of these exports on main. The PR only says the title imports them; an import alone doesn't show a title calls them. Please add the not implemented line (which export, which title) so the success stubs unblock something concrete.
  • The branch conflicts with main in docs/dev/TechnicalDebt.md (the line shared with #2852/#2853). Please rebase once the log line is added.

Signatures match SharpProspero's WebBrowserDialog.cs, and the test fails on main, so no change needed there.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5481283702 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2854#pullrequestreview-5481283702). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T00:09:59Z. **Review:** CHANGES_REQUESTED --- Thanks for the Windows-confirmed test. Two things before this can land: - @oneandonlydean asked above for the log line where PPSA14632 or PPSA12544 stops at one of these exports on `main`. The PR only says the title imports them; an import alone doesn't show a title calls them. Please add the `not implemented` line (which export, which title) so the success stubs unblock something concrete. - The branch conflicts with `main` in `docs/dev/TechnicalDebt.md` (the line shared with #2852/#2853). Please rebase once the log line is added. Signatures match SharpProspero's `WebBrowserDialog.cs`, and the test fails on `main`, so no change needed there.
alfalfa-star commented 2026-10-11 09:45:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-11T09:45:24Z.


No title I can run reaches these exports on current main (90c152e8):

  • LEGO Horizon Adventures (PPSA14632) aborts after about 35 s at color views of several array slices are unsupported (#2102). My local test branch gets past that and other stops; there it played 385 s with scripted input, through New Game and a save, without calling these exports.
  • Kena: Bridge of Spirits (PPSA01802) crashes in game code after about 60 s, with no not implemented line before it.

I'm converting this to a draft until a title stops at it. Then I'll post the title ID and the log line and mark it ready.

Rebased onto main. Both TechnicalDebt conflicts are resolved, including the reworded PPSA12544 line.

Tested: Linux, GCC, Release, RX 9070 XT (RADV): full ctest 813/813 (4 video_out_flip_* skipped) on main 90c152e8 merged with this branch; tools/check_conventions.py passes.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107714729 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2854#issuecomment-6107714729). Originally posted by [alfalfa-star](https://github.com/alfalfa-star) on 2026-10-11T09:45:24Z. --- No title I can run reaches these exports on current `main` (90c152e8): - LEGO Horizon Adventures (PPSA14632) aborts after about 35 s at `color views of several array slices are unsupported` (#2102). My local test branch gets past that and other stops; there it played 385 s with scripted input, through New Game and a save, without calling these exports. - Kena: Bridge of Spirits (PPSA01802) crashes in game code after about 60 s, with no `not implemented` line before it. I'm converting this to a draft until a title stops at it. Then I'll post the title ID and the log line and mark it ready. Rebased onto `main`. Both TechnicalDebt conflicts are resolved, including the reworded PPSA12544 line. **Tested:** Linux, GCC, Release, RX 9070 XT (RADV): full `ctest` 813/813 (4 `video_out_flip_*` skipped) on `main` 90c152e8 merged with this branch; `tools/check_conventions.py` passes. AI-assisted: yes (Claude Code)
oneandonlydean commented 2026-10-14 02:40:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:40:18Z.


Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6159673100 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2854#issuecomment-6159673100). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-14T02:40:18Z. --- Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.

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