Skip to content

fix(libSceWebBrowserDialog): write dialog result directly to guest pointer - #22471

Closed
SwetabhSingh17 wants to merge 1 commit into
boykopovar:mainfrom
SwetabhSingh17:fix/libSceWebBrowserDialog-result-guest-pointer
Closed

SwetabhSingh17 wants to merge 1 commit into
boykopovar:mainfrom
SwetabhSingh17:fix/libSceWebBrowserDialog-result-guest-pointer

Conversation

@SwetabhSingh17

Copy link
Copy Markdown
Contributor

What

Avoid evaluating member access &result->result on guest pointer parameter result in sceWebBrowserDialogGetResult, passing result directly to CopyOut. Brings libSceWebBrowserDialog to 0 direct guest pointer accesses (100% clean).

Tested

macOS, clang++ syntax check on core/libs/prx/libSceWebBrowserDialog/Export.cpp and core/libs/tests/GuestWebBrowserDialog.cpp, tools/guest_pointer_audit.py libSceWebBrowserDialog (0 direct guest pointer accesses), tools/check_conventions.py --base origin/main (passed), and tools/pr_overlap.py --branch fix/libSceWebBrowserDialog-result-guest-pointer (no overlap across all open PRs).

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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

@kiwe147

kiwe147 commented Nov 21, 2026

Copy link
Copy Markdown

Tested head 0af4fa0a84, applied with git apply on main fd4aeed483 together with the other 29 PRs of one batch (#17478, #21223, #24030, #24201, #14202, #18889, #19531, #21641, #21773, #22468, #23239, #23255, #23484, #23869, #23992, #24311, #18425, #21195, #21255, #22989, #23507, #23886, #14582, #17878, #19666, #19899, #20138, #21656, #21746). All applied without conflicts and the whole tree built.

Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON. GPUs: NVIDIA GeForce RTX 3080 (driver 621.24) and the AMD Radeon iGPU of the CPU (gfx1036, driver 32.0.21036.18). No validation layer. iGPU run: ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ANYPS5_GPU="AMD Radeon", agc_/video tests only.

tests RTX 3080 iGPU
none: no test of its own in this PR - -

Whole batch: the full ctest -j 12 (6522 tests) on the RTX 3080 has 4 failing tests; the 4 that also fail on main fd4aeed483 are agc_driver_stencil_plane_memory, agc_driver_msaa_dcc_unwatch, agc_storage_write_back_host_retile, and pr_overlap_names, which needs a newer Python than my 3.10. Intermittent in this run (pass when rerun alone, or known flaky): agc_driver_store_over_untracked. The 2125 agc_/video tests on the iGPU have 2 failing: agc_driver_stencil_plane_memory, agc_driver_store_over_untracked (agc_driver_stencil_plane_memory also fails on main).

This is one combined tree, not a run of this PR alone.

AI-assisted: yes (Claude Code)

This was referenced Nov 21, 2026

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — looks good

Nothing blocks this change; the changed call copies the 32-bit result directly to the guest pointer after the existing validation and status checks.

What I ran

Reviewed head 0af4fa0a84bad4336601c7d9ba172697fd1c77f8. I did not run commands or tests; repo_read.py was unavailable through the review tools. I read the prepared description, commit list, manifest, diff, and the changed file plus the result type declaration.

Results

Check Result Note
Code review passed One changed call and its result type inspected
Tests and prechecks not run Only author-reported in the description

Findings

Blocking

None.

Non-blocking

None.

Not verified

Tests, syntax checks, audits, conventions check, and PR overlap check reported by the author were not independently run. No other repository files were read. files.json was unavailable, so excluded-file details were not verified.

To get this to a good state

Nothing is required.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

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.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 24637 core/libs/prx/libSceWebBrowserDialog/Export.cpp L143

@oneandonlydean

Copy link
Copy Markdown
Collaborator

Thanks for looking at this. I'm closing it because result is the first member of WebBrowserDialogResult, so result and &result->result are the same address and main already does this checked copy.

If I have this wrong, or you have a title or console evidence that changes it, say so and I'll reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants