feat(libSceNKWebKit): implement WKPage state accessors #23137
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23137"
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 ghatwary06 on 2026-11-18T19:07:00Z.
What
Implement WKPageIsClosed, WKPageCopyTitle, WKPageCopyActiveURL, WKPageCopyProvisionalURL, WKPageCopyCommittedURL, WKPageGetEstimatedProgress, WKPageCopyApplicationNameForUserAgent, WKPageSetApplicationNameForUserAgent, WKPageCopyCustomUserAgent, WKPageSetCustomUserAgent, WKPageCopyCustomTextEncodingName, WKPageSetCustomTextEncodingName, WKPageSetBackgroundExtendsBeyondPage and WKPageBackgroundExtendsBeyondPage in libSceNKWebKit as host accessors over the
Pagemodel, following the pinned WebKit'sWKPage.handWKPage.cpp. Copy exports return an owned reference, URL getters return null when unset and string getters return an empty string; a null string reference to a setter clears the value, astoWTFStringdoes. As with the otherWKPagestate exports, no export creates aWKPageor loads a document into it yet, so a page reports the defaults until page loading is connected; recorded in the debt fragment.Tested
Linux (GCC 16, Ninja): new
nkwebkit_pagestatetest covering defaults, populated state, setter round trips, null and empty strings, and null and wrong-type objects throwing. All 140nkwebkit_*and theguest_nkwebkit_*tests pass, the new test is clean under LeakSanitizer and AddressSanitizer, andtools/check_conventions.py --base origin/mainandtools/debt_fold.py --checkpass. Not tested on a console, a title, Windows or macOS.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 PrivacyOnion on 2026-11-18T19:17:47Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
e7975b00cb:tools/check_conventions.pypassed.nkwebkit_pagestate_testsbuilt cleanly.nkwebkit_pagestate):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/Api.hpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp,core/libs/prx/libSceNKWebKit/src/Configuration.hpp,core/libs/prx/libSceNKWebKit/src/PageState.cppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-18T19:53:00Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
76f4145b7b:tools/check_conventions.pypassed.nkwebkit_pagestate_testsbuilt cleanly.nkwebkit_pagestate):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/Api.hpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp,core/libs/prx/libSceNKWebKit/src/Configuration.hpp,core/libs/prx/libSceNKWebKit/src/PageState.cppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me