fix(libSceWebBrowserDialog): transition to finished on dialog close #7479
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7479"
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 ErenYeager1836 on 2026-10-18T09:01:13Z.
What
Transition
g_statustoCOMMON_DIALOG_STATUS_FINISHEDinsceWebBrowserDialogClosewhen called from an initialized or running dialog. PreviouslysceWebBrowserDialogClosereturned 0 without updatingg_status, leaving the dialog in the initialized state and preventingsceWebBrowserDialogGetResultfrom returning the dialog result (COMMON_DIALOG_RESULT_USER_CANCELED). Also extendGuestWebBrowserDialogto verify the state transition and result query when closing from initialized state.Tested
GuestWebBrowserDialogpassing.python tools/check_conventions.py --base upstream/main.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-18T09:11:59Z.
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.mdL5Some 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.cppImported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-18T12:05:51Z.
Tested on Windows 11, WinLibs GCC 15.2.0 (MinGW), Release, this PR applied onto
main3e3e8b905:guest_web_browser_dialogpasses, and fails onmainwith only the test change (exit0xc0000409).The same question as on #7478 applies here.
Openalready finishes at once, so the only case that changes isClosewith noOpenbefore it. For that case MsgDialog.native, SaveDataDialog.native and ErrorDialog return NOT_RUNNING or INVALID_STATE, following shadPS4'ssceMsgDialogClose. Please cite a source, or note the choice as unverified in the module's debt entry.AI-assisted: yes (Claude Code); results above were run on this machine.
Imported from boykopovar/AnyPS5. Originally posted by ErenYeager1836 on 2026-10-18T12:19:53Z.
Thanks for the review, @wachi35676! Added a note in docs/dev/debt/libSceWebBrowserDialog.md documenting that transitioning to FINISHED on Close before Open follows the Signin/NetCtlAp/PlayerSelection convention and remains unverified on real hardware. Testing was verified under MinGW-w64 GCC (WinLibs).
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T22:32:47Z.
Thanks for the fix.
Closenow moves the dialog to finished, assceSigninDialogClosedoes, and the test fails without the change.Added on your branch:
docs/dev/debt/libSceWebBrowserDialog.mdand restored the existing Silent stubs line to its original text (backticks included); only the newsceWebBrowserDialogCloseline stays, with backticks.Close-before-Open stays listed as unverified in the debt entry; merged.