feat(libSceWebBrowserDialog): implement sceWebBrowserDialogOpenForPredeterminedContent #5904
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5904"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-14T15:12:07Z.
What
Implements
sceWebBrowserDialogOpenForPredeterminedContentinlibSceWebBrowserDialog.prx:NotImplemented_nid_no_patch(__func__)stub with the common dialog lifecycle transition matchingsceWebBrowserDialogOpen.COMMON_DIALOG_ERROR_NOT_INITIALIZED(0x80B80003) if uninitialized, orCOMMON_DIALOG_ERROR_BUSY(0x80B80007) if already running.COMMON_DIALOG_ERROR_ARG_NULL(0x80B8000D).COMMON_DIALOG_STATUS_FINISHEDand returns 0 (COMMON_DIALOG_OK).GuestWebBrowserDialog.cppto verify uninitialized rejection, null argument rejection, successful state advancement to finished, and user cancelled result reporting.docs/dev/debt/libSceWebBrowserDialog.md.Target context: Minecraft Bedrock (PPSA17221, #5744). The title imports
sceWebBrowserDialogOpenForPredeterminedContentfromlibSceWebBrowserDialog.prx.Tested
GuestWebBrowserDialog.cpptest suite passes with full lifecycle coverage.python tools/check_conventions.py --base origin/mainpasses with 0 findings and 0 errors.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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T15:12:56Z.
Progress report (
c842491→7f03455)📈 System libraries: 88.86% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceWebBrowserDialogOpenForPredeterminedContentImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T21:48:50Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/debt/libSceWebBrowserDialog.mddocs/dev/debt/libSceWebBrowserDialog.mddocs/dev/debt/libSceWebBrowserDialog.mdSome comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/tests/GuestWebBrowserDialog.cppcore/libs/prx/libSceWebBrowserDialog/Export.cppdocs/dev/debt/libSceWebBrowserDialog.mdImported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-15T13:33:35Z.
@oneandonlydean @adriadam10 Rebased clean on latest origin/main (
8dc92ae29) with all CI checks passing green. Implements sceWebBrowserDialogOpenForPredeterminedContent for dialog transitions (PPSA17221). Ready for review when convenient, thanks!Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-15T15:33:58Z.
A second title that stops on this function: Metal Gear Solid 4 (PPSA18194, Master Collection 01.004.003). Its Unity launcher calls it from the manual cover screen, the one with an "Open Online Manual" button hint.
Linux (Ubuntu 24.04, GCC 13.3, Release, RTX 4070 Ti, NVIDIA 595.99), relinked with
--to-intel --executable mgs4/mgs4.elf, our fixed pad sequence, on a second launch so the launcher already has its save data:mainff23657f3: 2 of 2 runs stop at 30–31 s withsceWebBrowserDialogOpenForPredeterminedContent not implemented.mainff23657f3+ this PR (eac580a54): 2 of 2 get past it. At about 42 s the launcher reachesExitAndStartNewProject Path = /app0/mgs4/mgs4.elf, wheremain's LoadExec ends the process (#6237).mainb4a4fcac0+ this PR + #6237, with a throwaway print in the dialog exports: the launcher callsInitialize→OpenForPredeterminedContent(non-null param, first word0x30) →GetResult→Terminatetwice, then startsmgs4.elf. The game shows the KONAMI logo and plays its TV channel intro at about 60 FPS until the 240 s limit.So finishing at once with the user-canceled result is enough for this launcher. #6092 makes the same change without the null check. I only ran this PR's head.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T19:12:47Z.
Review: COMMENTED
Linux run: head
eac580a54merged ontomain44df21632(clean merge). Adds a Linux run to the Windows one in the description.Machine: Ubuntu 26.04, Intel i7-8700, GCC 15.2, full build, non-GPU tests (Release,
BUILD_TESTING=ON).guest_web_browser_dialog: passes with the PR. With only the test change onmainit aborts with "sceWebBrowserDialogOpenForPredeterminedContent not implemented".ctest -E "^agc"): no regressions; the only failures arefile_writer_binaryandfile_writer_text, which fail onmainon this machine too.Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-16T15:05:27Z.
@oneandonlydean @adriadam10 Cleanly rebased on latest main (
e0e3ced1e) with all checks passing green. Ready for review/merge when convenient!Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T18:54:23Z.
Re-checked on current
main: build and ctest (33 tests in scope) green, andguest_web_browser_dialogfails without the change. The state/error ordering matches the existingsceWebBrowserDialogOpen.Added one commit on top: the technical debt line was cut off mid-sentence and didn't say that the real export takes a second argument (the allow-list of up to twenty addresses, per SharpProspero
docs/dialogs.md). It is not read here, so no address filtering is modelled; the line now says so.Merging once CI is green.