feat(nkwebkit): implement ResourceRequestBase::clearHTTPContentType #17933
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17933"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-09T23:46:08Z.
What
Implement WebCore ResourceRequestBase::clearHTTPContentType from pinned WebKit source: remove the Content-Type header and invalidate the cached platform request. Add focused tests for removal, cache invalidation, and invalid synchronization state.
Source: WebKit ResourceRequestBase.cpp.
Tested
Linux:
suite.py feat/nkwebkit-resource-request-clear-http-content-typeatbfec233242: CTest 5717/5723 passed; conventions passed. Failing on main too: agc_driver_global_atomic_csub, agc_driver_stencil_copy_draw, agc_driver_coherent_atomic_loads_enabled, agc_driver_recorder, agc_draw_input_mirrors, agc_draw_input_reuse.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T14:25:48Z.
Review: APPROVED
Reviewed — looks good
The reviewed change at
bfec233242504fd11ee7a5d886a77d04498447e5implementsclearHTTPContentTypeby removing the typed Content-Type header and invalidating the platform request cache; the focused test covers removal, preservation of another header, and invalidation when the header is absent.What I ran
No commands or tests were run during this review. The PR description reports a Linux suite run at this head; that result is author-reported, not independently verified.
Results
Findings
Blocking
None.
Non-blocking
None.
Sources
The implementation checks the request and requires
resourceRequestUpdatedbefore changing the header, matching the surrounding mutator pattern. It then calls the typedHTTPHeaderMap::removeand clearsplatformRequestUpdated. ResourceRequest.cpp at this headThe added test verifies removal, retention of Accept, and cache invalidation on both present and absent Content-Type cases. ResourceRequestContentType.cpp at this head
Not verified
The full text of
core/libs/prx/libSceNKWebKit/Export.cppandcore/libs/prx/libSceNKWebKit/include/InventoryExports.hppwas excluded as too large; only their relevant diff hunks were reviewed. No test commands were run. PS5 module behavior was not verified. Other changed files read:core/libs/prx/libSceNKWebKit/include/ResourceRequestExports.hpp,core/libs/prx/libSceNKWebKit/src/ResourceRequest.cpp,core/libs/prx/libSceNKWebKit/tests/ResourceRequestContentType.cpp, anddocs/dev/debt/changes/feat-nkwebkit-resource-request-clear-http-content-type.md.To get this to a good state
Nothing is required.