feat(libSceNKWebKit): implement WKOpenPanelParameters getters #15159

Merged
nicolasabosch merged 9 commits from upstream-pr/15159 into main 2026-11-09 00:25:14 +00:00
nicolasabosch commented 2026-11-02 19:30:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by nicolasabosch on 2026-11-02T19:30:49Z.


What

Implements WKOpenPanelParametersGetAllowsDirectories, GetAllowsMultipleFiles, CopyAcceptedMIMETypes, CopyAcceptedFileExtensions and CopySelectedFileNames in libSceNKWebKit, following the pinned WKOpenPanelParametersRef.cpp and APIOpenPanelParameters.cpp. The copy functions return a new WKArray of strings.

WKOpenPanelParametersCopyAllowedMIMETypes stays a throwing stub because it needs MIMETypeRegistry::allowedMIMETypes, and WKOpenPanelParametersGetMediaCaptureType because it depends on the ENABLE(MEDIA_CAPTURE) build option, which the pinned source does not settle for this module. WKOpenPanelResultListener is not touched.

The 7439 total on line 30 of docs/dev/debt/libSceNKWebKit.md becomes 7434; the other open libSceNKWebKit PRs edit the same line, so whichever merges second needs that number rebased.

Tested

Windows, MinGW GCC Release build of nkwebkit_base_tests: passes, including a new test of normal, empty, out-of-range, null and wrong-type inputs. python tools/check_conventions.py --base upstream/main passes. public_headers hit its 90 s timeout on this machine and was not run on main, so it is unconfirmed. No title was run.

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

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5126192611 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15159). Originally posted by [nicolasabosch](https://github.com/nicolasabosch) on 2026-11-02T19:30:49Z. --- ### What Implements `WKOpenPanelParametersGetAllowsDirectories`, `GetAllowsMultipleFiles`, `CopyAcceptedMIMETypes`, `CopyAcceptedFileExtensions` and `CopySelectedFileNames` in `libSceNKWebKit`, following the pinned [WKOpenPanelParametersRef.cpp](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/WebKit/UIProcess/API/C/WKOpenPanelParametersRef.cpp) and [APIOpenPanelParameters.cpp](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/WebKit/UIProcess/API/APIOpenPanelParameters.cpp). The copy functions return a new `WKArray` of strings. `WKOpenPanelParametersCopyAllowedMIMETypes` stays a throwing stub because it needs `MIMETypeRegistry::allowedMIMETypes`, and `WKOpenPanelParametersGetMediaCaptureType` because it depends on the `ENABLE(MEDIA_CAPTURE)` build option, which the pinned source does not settle for this module. `WKOpenPanelResultListener` is not touched. The `7439` total on line 30 of `docs/dev/debt/libSceNKWebKit.md` becomes `7434`; the other open `libSceNKWebKit` PRs edit the same line, so whichever merges second needs that number rebased. ### Tested Windows, MinGW GCC Release build of `nkwebkit_base_tests`: passes, including a new test of normal, empty, out-of-range, null and wrong-type inputs. `python tools/check_conventions.py --base upstream/main` passes. `public_headers` hit its 90 s timeout on this machine and was not run on `main`, so it is unconfirmed. No title was run. ### 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 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 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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!15159
No description provided.