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

Closed
alvaroelpob wants to merge 14 commits from upstream-pr/17922 into main
alvaroelpob commented 2026-11-09 22:44:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-09T22:44:23Z.


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 e8873e3c2c: CTest 4813/4813 passed; conventions passed.

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: #14212, #17868
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5232428039 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17922). Originally posted by [alvaroelpob](https://github.com/alvaroelpob) on 2026-11-09T22:44:23Z. --- ### What Implement WebCore::ResourceRequestBase::isConditional by checking the five conditional HTTP headers defined by the pinned WebKit source. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Linux: `suite.py feat/nkwebkit-resource-request-conditional` at e8873e3c2c: CTest 4813/4813 passed; conventions passed. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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: #14212, #17868 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-20 14:26:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T14:26:33Z.

Review: APPROVED


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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5994198514 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17922#pullrequestreview-5994198514). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T14:26:33Z. **Review:** APPROVED --- # 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.
ligmaSec commented 2026-12-03 15:59:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T15:59:47Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6173411155 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17922#pullrequestreview-6173411155). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T15:59:47Z. **Review:** COMMENTED --- 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 commented 2026-12-03 16:19:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T16:19:48Z.

Review: APPROVED


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)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6173778065 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17922#pullrequestreview-6173778065). Originally posted by [Plyxen](https://github.com/Plyxen) on 2026-12-03T16:19:48Z. **Review:** APPROVED --- 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)

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