feat(libSceWebBrowserDialog): implement sceWebBrowserDialogSetCookie #1002

Closed
Saalik wants to merge 1 commit from upstream-pr/1002 into main
Saalik commented 2026-10-06 22:41:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Saalik on 2026-10-06T22:41:52Z.


What

Implements sceWebBrowserDialogSetCookie, the last unimplemented export of libSceWebBrowserDialog, replacing the NID-only stub:

  • the signature changes from no arguments to one pointer param, from SharpProspero's sceWebBrowserDialogSetCookie(WebBrowserDialogSetCookieParam*) binding in WebBrowserDialog.cs
  • guards follow the rest of the library: COMMON_DIALOG_ERROR_NOT_INITIALIZED before sceWebBrowserDialogInitialize, COMMON_DIALOG_ERROR_ARG_NULL for a null param
  • the param is accepted and discarded, as no browser session exists to store the cookie — the same silent-stub shape as the other dialogs, now listed in TechnicalDebt.md
  • TechnicalDebt.md also drops WebBrowserDialog from the unknown-signature entry, since the signature is now sourced

Tested

  • extended guest_web_browser_dialog: SetCookie before Initialize returns NOT_INITIALIZED; a null param after Initialize returns ARG_NULL; a param is accepted after Initialize and after Open (any initialized state); builds and passes on Linux
  • Not tested on a title

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
  • AI-assisted: yes

Written with AI assistance (Cline). The SharpProspero layout was fetched and verified against the linked source; the semantics follow the other silent dialogs and the disclosure lives in TechnicalDebt.md.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4765451308 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1002). Originally posted by [Saalik](https://github.com/Saalik) on 2026-10-06T22:41:52Z. --- ### What Implements `sceWebBrowserDialogSetCookie`, the last unimplemented export of `libSceWebBrowserDialog`, replacing the NID-only stub: - the signature changes from no arguments to one pointer param, from SharpProspero's `sceWebBrowserDialogSetCookie(WebBrowserDialogSetCookieParam*)` binding in [WebBrowserDialog.cs](https://github.com/SvenGDK/SharpProspero/blob/main/src/SharpProspero/Interop/Dialog/WebBrowserDialog.cs) - guards follow the rest of the library: `COMMON_DIALOG_ERROR_NOT_INITIALIZED` before `sceWebBrowserDialogInitialize`, `COMMON_DIALOG_ERROR_ARG_NULL` for a null param - the param is accepted and discarded, as no browser session exists to store the cookie — the same silent-stub shape as the other dialogs, now listed in TechnicalDebt.md - TechnicalDebt.md also drops WebBrowserDialog from the unknown-signature entry, since the signature is now sourced ### Tested - extended `guest_web_browser_dialog`: SetCookie before Initialize returns `NOT_INITIALIZED`; a null param after Initialize returns `ARG_NULL`; a param is accepted after Initialize and after Open (any initialized state); builds and passes on Linux - Not tested on a title ### 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 - [x] AI-assisted: yes --- Written with AI assistance (Cline). The SharpProspero layout was fetched and verified against the linked source; the semantics follow the other silent dialogs and the disclosure lives in TechnicalDebt.md.

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