Skip to content

feat(nkwebkit): implement ResourceRequestBase::isConditional - #17922

Open
alvaroelpob wants to merge 14 commits into
boykopovar:mainfrom
alvaroelpob:feat/nkwebkit-resource-request-conditional
Open

alvaroelpob wants to merge 14 commits into
boykopovar:mainfrom
alvaroelpob:feat/nkwebkit-resource-request-conditional

Conversation

@alvaroelpob

@alvaroelpob alvaroelpob commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

What

Implement WebCore::ResourceRequestBase::isConditional by checking the five conditional HTTP headers defined by the pinned WebKit source.

Tested

Linux: suite.py feat/nkwebkit-resource-request-conditional at e8873e3: CTest 4813/4813 passed; conventions passed.

Checklist

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Progress report (01b7264 → 915b186)

📈 System libraries: 44.52% (+0.0025%, +1 implemented function)

✅ 1 implemented
Library Name
libSceNKWebKit _ZNK7WebCore19ResourceRequestBase13isConditionalEv

Changed libraries (implemented exports)

Library Before After Change
libSceNKWebKit 3814/11321 (33.69%) 3815/11321 (33.70%) +0.01%

@JJenkx

JJenkx commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Windows check of head 23d49c8a87, merged onto main adce651bbd (3ca9fa3ed0, clean merge).

Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.

  • guest_nkwebkit_dates, guest_nkwebkit_numbers, guest_nkwebkit_urls, nkwebkit_wtftext_allocation pass in 3 of 3 runs, none skipped.

AI-assisted: yes.

@alvaroelpob
alvaroelpob marked this pull request as ready for review November 9, 2026 22:55
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Some 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.

Pull request Shared files not compared
PR 13515 core/libs/prx/libSceNKWebKit/Export.cpp
PR 14138 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 14259 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 18395 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 22674 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 22937 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 23110 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 23752 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 24868 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 24901 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 24980 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 25140 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 25160 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 25548 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 25549 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 25565 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 26111 core/libs/prx/libSceNKWebKit/Export.cpp
PR 26380 core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 26431 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 26432 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
PR 26740 core/libs/prx/libSceNKWebKit/Export.cpp
core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp

@alvaroelpob
alvaroelpob force-pushed the feat/nkwebkit-resource-request-conditional branch from c2c0a5f to e8873e3 Compare November 11, 2026 01:11
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 11, 2026
@alvaroelpob

Copy link
Copy Markdown
Contributor Author

Rebased onto main.

  • e45acab: dropped the stale-request case. It tested a throw that comes from our update gap, not upstream behaviour.
  • 576c5f7, e8873e3: the debt entry is corrected. The pinned PlayStation build uses the Curl backend, whose doUpdateResourceRequest() is empty (curl/ResourceRequest.h:71), so upstream only sets the flag. Here the accessors throw while m_resourceRequestUpdated is false. The gap is stated first and the inventory is recounted.

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Nov 11, 2026
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 13, 2026
m
# Conflicts:
#	core/libs/prx/libSceNKWebKit/Export.cpp
#	core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
#	core/libs/prx/libSceNKWebKit/src/ResourceRequest.cpp
Resolve the NKWebKit stub conflicts (keep main's removals and this
branch's isConditional removal), restore main's debt file and move this
change into a debt fragment that drops the isConditional inventory row.
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 19, 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

The implementation and focused tests cover all five conditional headers; I did not run the reported test suite, and PS5 module behavior is not verified.

What I ran

Reviewed head 915b1866218d6beaad3f5367ef86188372ea9b6f using the prepared diff and repo_read.py for targeted source context. No commands or tests were run. The PR description reports Linux CTest 4813/4813 passed at e8873e3c2c; that result was not independently verified.

Results

Check Result Note
Diff and targeted source review passed Implementation and test inspected
Reported Linux suite not run Author-reported only
PS5 module behavior not run Explicitly unverified in debt note

Findings

Blocking

None.

Non-blocking

None.

Not verified

The changed Export.cpp and InventoryExports.hpp were excluded from full-text files because they were too large; their relevant diff hunks were inspected. The test suite was not run, and the implementation’s ABI/layout and behavior against a PS5 module were not verified. Full text was read for ResourceRequestExports.hpp, ResourceRequest.cpp, and tests/ResourceRequest.cpp; the added debt note was inspected in the diff. No excluded-by-rule files were listed in the supplied manifest.

To get this to a good state

Nothing is required.

@ycbuzi

ycbuzi commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Tested 915b186621 merged into main, with the whole ctest suite on each machine below. Nothing fails that does not also fail on main on the same machine.

  • Windows Server 2022 (GitHub-hosted runner), full build, WinLibs GCC 15.2.0: 99% tests passed, 2 tests failed out of 7482; 99% tests passed, 3 tests failed out of 7482. 2 of the failing tests fail on main too. run
  • Windows Server 2025 (GitHub-hosted runner), full build, WinLibs GCC 15.2.0: 100% tests passed, 0 tests failed out of 7482; 100% tests passed, 0 tests failed out of 7482. run

AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports.

@ligmaSec ligmaSec left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I built and ran the branch's ResourceRequest fixture on Linux against the existing runtime libraries. It passed the conditional-request checks, including recognition of conditional headers and an ordinary request with none.

AI-assisted: yes.

@Plyxen Plyxen 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.

I read the diff at 915b186621. Windows 11 with GCC 15.2 and Linux (Ubuntu 24.04 in WSL2, GCC 13.3), applied onto main at c1593e4e1dd together with other open PRs (so not an isolated build).

  • nkwebkit_resourcerequest: pass on both.
  • No control: on main the export takes no arguments and throws.

Not checked: a title.

AI-assisted: yes (Claude Code)

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants