feat(libSceNKWebKit): implement WKURLRequest URL and body helpers #14981
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14981"
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 heditrigui on 2026-11-02T07:47:53Z.
What
Implements
WKURLRequestURL and body helpers inlibSceNKWebKit(core/libs/prx/libSceNKWebKit/src/URLRequest.cpp):WKURLRequestCreateWithWKURL: creates aURLRequestobject with the given URL, initializingfirstPartyForCookiesto the URL. Returnsnullptrfor a null URL.WKURLRequestCopyURL: returns a retainedWKURLcopy of the request's target URL.WKURLRequestCopyFirstPartyForCookies: returns a retainedWKURLcopy of the first-party cookie URL.WKURLRequestCopyHTTPMethod: returns a retainedWKStringrepresenting the HTTP method (defaults to"GET").WKURLRequestCopySettingHTTPBody: copies the existing request with its URL, cookie policy, and HTTP method, and attaches a copy of the supplied body data (or clears the body ifnullptr).WKURLRequestSetDefaultTimeoutInterval: configures the default timeout interval for requests in seconds.Removes the placeholder throwing stubs from
InventoryExports.hppandExport.cppand adds proper C API declarations toWebKitValueExports.hpp.Tested
core/libs/prx/libSceNKWebKit/tests/Base.cpp(TestURLRequestResponse):WKURLRequestGetTypeID() == 23.WKURLRequestCreateWithWKURL(nullptr) == nullptr.WKGetTypeID(request) == 23.WKURLRequestCopyURLand string comparison.WKURLRequestCopyFirstPartyForCookiesand string comparison.WKURLRequestCopyHTTPMethoddefaults to"GET".WKURLRequestCopySettingHTTPBodywith body bytes and body clearing.WKURLRequestSetDefaultTimeoutInterval(30.0).WKRelease.python tools/check_conventions.py --base upstream/main --head HEAD(all conventions checks passed; 0 errors).python core/libs/tests/test_public_headers.py --audit-only(399 libraries, 26,813 exports verified; 0 errors).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)