feat(libSceNKWebKit): implement WKProtectionSpace getters #15151
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15151"
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 nicolasabosch on 2026-11-02T18:46:16Z.
What
Implements
WKProtectionSpaceCopyHost,WKProtectionSpaceCopyRealm,WKProtectionSpaceGetPort,WKProtectionSpaceGetIsProxy,WKProtectionSpaceGetServerType,WKProtectionSpaceGetReceivesCredentialSecurelyandWKProtectionSpaceGetAuthenticationSchemeinlibSceNKWebKit, following the pinned WKProtectionSpace.cpp, ProtectionSpaceBase.cpp and the enum casts in WKAPICast.h. TheProtectionSpacehost object holds the host, realm, port, server type and authentication scheme; a null or wrong-type reference throws as for the otherWK*objects.WKProtectionSpaceCopyCertificateInfois not in the pinnedWKProtectionSpace.cpp, so it stays a throwing stub in the technical debt table.The
7437total on line 34 ofdocs/dev/debt/libSceNKWebKit.mdbecomes7430. The other openlibSceNKWebKitPRs that edit the same line, #14860, #14865, #14925 and #14999, land after this one and rebase their count on top; there is no landing dependency here.Tested
Windows, MinGW GCC Release build of
nkwebkit_base_tests: passes, including a new test of all eight server types, all nine schemes, unknown and out-of-range values, an empty object, and null and wrong-type references.python tools/check_conventions.py --base upstream/mainpasses.public_headershit its 90 s timeout on this machine and was not run onmain, so it is unconfirmed. No title was run.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-02T19:23:38Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The getter implementations match the pinned WebKit behavior, but four open PRs have confirmed merge conflicts and no landing order is recorded.
What I ran
Reviewed all seven changed files at head
054e4b828386f49071b46b13244005dbd14c5e61, against base/currentmaina4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8. This head merges cleanly against currentmain. Environment: Debian 12, Linux 6.1.0-54-amd64, Python 3.11.2, Git 2.39.5; no local build or compiler was used.The precheck's ABI and test-quality helpers were absent from its isolated snapshot. I ran the ABI audit separately. I confirmed test registration by inspecting the source/test globs in CMake. The overlap helper could not parse the live PR data; the pairwise merge previews below exposed the conflicts directly.
Results
nkwebkit_basepassed; 2,966/2,966 tests passed.main.Types.hpp.Precheck, overlap and hosted output
Precheck check table:
The precheck deliberately does not configure, build, or compile AnyPS5.git diff --check a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8...054e4b828386f49071b46b13244005dbd14c5e61/usr/bin/python3 tools/check_conventions.py --base a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8 --head 054e4b828386f49071b46b13244005dbd14c5e61 --title feat(libSceNKWebKit): implement WKProtectionSpace getters --body /tmp/review-15151-20261102/pr-body.md/usr/bin/python3 tools/pr_abi_audit.py --base a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8 --head 054e4b828386f49071b46b13244005dbd14c5e61 --jsonNo changed Python implementation files.No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.No changed test_*.py files./usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15151 --repo boykopovar/AnyPS5 --output-dir /tmp/review-15151-20261102/stackNot run: C++ tests need exact-head binaries, which require a build; the precheck does not build./usr/bin/python3 /tmp/review-15151-20261102/head-054e4b828386-6e641033/tools/pr_test_quality.py --root /tmp/review-15151-20261102/head-054e4b828386-6e641033 --json core/libs/prx/libSceNKWebKit/Export.cpp core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp core/libs/prx/libSceNKWebKit/src/ProtectionSpace.cpp core/libs/prx/libSceNKWebKit/src/Types.hpp core/libs/prx/libSceNKWebKit/tests/Base.cpp docs/dev/debt/libSceNKWebKit.mdNo changed Python test module in tools/ can be run as a no-build base-source control.ABI audit result excerpt:
Overlap helper output:
Pairwise merge preview excerpts:
Each of the four PRs independently previewed cleanly against
a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8.Hosted Windows log excerpts:
Final hosted status from
gh pr checks:Negative control
Findings
Blocking
Depends on: none, but exact pairwise previews conflict with four still-open PRs: #14925 and #14999 both update thelibSceNKWebKitdebt count line; #14860 and #14865 conflict with the newProtectionSpaceadditions inTypes.hpp. Each candidate merges cleanly into currentmainon its own, so this is a landing-order conflict, not an individual-base conflict. The repository asks authors to agree which overlapping PR lands first and record the dependency. Please coordinate the order with those authors, then update this PR'sDepends online if any of them must land first; if this PR should go first, have the dependent PRs record that order.Non-blocking
None found in the implementation or tests. The latest Windows workflow passed the new base test and its full test suite.
Sources
Not verified
No local build, CTest, negative control, Linux test, or console behavior was run. The author reports that
public_headerstimed out after 90 seconds; I did not rerun it. The successful hosted Windows job compiled the changed library and rannkwebkit_base.To get this to a good state
Agree and document the landing order for #14860, #14865, #14925 and #14999, updating the applicable
Depends onchecklist entries. I will rerun the overlap and pairwise merge checks and review the updated head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T23:52:55Z.
Review: CHANGES_REQUESTED
Re-checked — new head, changes requested
The header refactor clears the earlier code-file conflicts, but the requested pairwise checks still find an unresolved shared debt-count conflict and no agreed landing order.
What I ran
Re-reviewed all seven changed files at head
d434a41b4dd6cf54844c81621fba478de1a45e80against base5cb015caaaaf83f8ee431414ee6a457b5b307d49; the PR merges cleanly into that base. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5. No compiler or project build was used.The base merge preview was clean. The automatic overlap scan could not parse GitHub's response, so I used the four requested exact-head pairwise previews. Their only conflict path is the debt-count line; the earlier
Types.hppand test-file conflicts are gone after the header move.Results
Base.cppis included by the existingtests/*.cppCMake glob.Precheck and unedited command output
Precheck report table:
The isolated precheck snapshot lacks the reviewer-only ABI and test-quality helpers. Running the ABI audit from the workspace produced:
Test-quality helper output:
Manual inspection confirmed
file(GLOB nkWebKitTests CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/tests/*.cpp)incore/libs/prx/libSceNKWebKit/CMakeLists.txt:49, so the heuristic warning is a false positive.Negative control
Not run. The changed C++ tests require a build, and I did not modify the code under test.
Findings
Blocking
Depends on. Please coordinate with those authors and update the applicable checklist entries. If #15151 is intended to land first, have the other PRs record that order; if it follows any of them, list those dependencies here.Non-blocking
Sources
Not verified
No local build, CTest, negative control, Linux runtime, macOS or console behavior was run. The PR description reports a prior Windows test without pinning its SHA; I cannot attribute it to this exact head. The hosted Windows job was pending at the final refresh.
To get this to a good state
Please agree and record the landing order for the four overlapping PRs, then update the stale count sentence. I will rerun the pairwise merges and applicable checks on the resulting head; approval also requires the pending hosted Windows check to finish successfully.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T02:58:17Z.
Review: APPROVED
Re-checked — same head, approved
The PR now documents that it lands before the overlapping count updates, the count matches the reviewed diff, and all applicable hosted checks have passed.
What I ran
Rechecked the PR description and overlap follow-up at head
d434a41b4dd6cf54844c81621fba478de1a45e80, based on5cb015caaaaf83f8ee431414ee6a457b5b307d49; my prior full review covered all seven changed files at this same head. Its individual merge preview is clean against currentmain7feb37ee3e30e10139b483fb4df689d5b5b69ab8. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5. I did not build locally.Results
tests/Base.cpp; heuristic warning is a false positive.Precheck table and raw outputs
The precheck deliberately does not configure, build, or compile AnyPS5.git diff --check 5cb015caaaaf83f8ee431414ee6a457b5b307d49...d434a41b4dd6cf54844c81621fba478de1a45e80/usr/bin/python3 tools/check_conventions.py --base 5cb015caaaaf83f8ee431414ee6a457b5b307d49 --head d434a41b4dd6cf54844c81621fba478de1a45e80 --title feat(libSceNKWebKit): implement WKProtectionSpace getters --body /tmp/anyps5-pr-precheck/15151-20261103-final/pr-body.mdNo changed Python implementation files.No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.No changed test_*.py files.main.No changed Python test module in tools/ can be run as a no-build base-source control.Negative control
Not run in this recheck because the C++ test requires an exact-head build. The PR description reports the Windows Release test, and the exact-head hosted Windows workflow passed; I did not independently reproduce that build locally.
Findings
Blocking
None found in this recheck. The author has publicly documented the intended order with the overlapping count PRs; #15151 is intended to land first and correctly declares no prerequisite.
Non-blocking
The sibling PRs that share the debt-count line still need their counts reapplied after #15151 lands, as stated in the author's order notes.
Sources
Not verified
No local build, CTest, negative control, title run, Linux runtime, or console behavior was verified. The Windows test described in the PR is author-reported; the separate hosted Windows check passed on the exact head.
To get this to a good state
No further change is requested on this PR. I will rerun the same checks if its head changes; the overlapping count PRs should reapply their counts after this PR lands.