feat(libSceNKWebKit): implement WebCore::CredentialBase and SecurityOrigin::isLocalHostOrLoopbackIPAddress #15212

Merged
simnJS merged 7 commits from upstream-pr/15212 into main 2026-11-07 04:45:52 +00:00
simnJS commented 2026-11-02 20:48:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by simnJS on 2026-11-02T20:48:15Z.


What

Implements 11 libSceNKWebKit exports: the ten of WebCore::CredentialBase (constructors, compare, hasPassword, persistence, user, password, isEmpty) and WebCore::SecurityOrigin::isLocalHostOrLoopbackIPAddress.

They follow Source/WebCore/platform/network/CredentialBase.h and .cpp and Source/WebCore/page/SecurityOrigin.cpp of the PS5 11.x WebKit snapshot neonmodder123/PS5-WebKit-11.x at 80f77e9, the snapshot #13992 uses. The object layout comes from those sources and is not verified against the console module; the debt file records it.

Tested

Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release: nkwebkit_credentialbase and nkwebkit_securityorigin pass. Only these tests were run, not the full suite. Not run on Linux or on a title.

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: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5127188253 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15212). Originally posted by [simnJS](https://github.com/simnJS) on 2026-11-02T20:48:15Z. --- ### What Implements 11 `libSceNKWebKit` exports: the ten of `WebCore::CredentialBase` (constructors, `compare`, `hasPassword`, `persistence`, `user`, `password`, `isEmpty`) and `WebCore::SecurityOrigin::isLocalHostOrLoopbackIPAddress`. They follow `Source/WebCore/platform/network/CredentialBase.h` and `.cpp` and `Source/WebCore/page/SecurityOrigin.cpp` of the PS5 11.x WebKit snapshot neonmodder123/PS5-WebKit-11.x at 80f77e9, the snapshot #13992 uses. The object layout comes from those sources and is not verified against the console module; the debt file records it. ### Tested Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release: `nkwebkit_credentialbase` and `nkwebkit_securityorigin` pass. Only these tests were run, not the full suite. Not run on Linux or on a title. ### 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: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-02 20:53:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T20:53:03Z.

Review: COMMENTED


Reviewed — no blocking findings

At head 6221c5a54959739438324ef3a2e390a75f6b4e03, the implementations match the pinned WebKit behavior I checked; I’m withholding approval while the six hosted checks remain queued.

What I ran

Reviewed all 11 changed files at head 6221c5a54959739438324ef3a2e390a75f6b4e03, against base 9090972b7e91fd266819cbd77a8b058e177b5682. The head merges cleanly with that base. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. I did not build or compile.

git diff --check 9090972b7e91fd266819cbd77a8b058e177b5682...6221c5a54959739438324ef3a2e390a75f6b4e03
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15212
python3 tools/pr_abi_audit.py --base 9090972b7e91fd266819cbd77a8b058e177b5682 --head 6221c5a54959739438324ef3a2e390a75f6b4e03 --json
python3 tools/pr_test_quality.py --root /marc/AnyPS5 --json core/libs/prx/libSceNKWebKit/tests/CredentialBase.cpp core/libs/prx/libSceNKWebKit/tests/SecurityOrigin.cpp
git show 6221c5a54959739438324ef3a2e390a75f6b4e03:core/libs/prx/libSceNKWebKit/CMakeLists.txt
gh pr checks 15212 --repo boykopovar/AnyPS5

Results

Check Result Note
Diff and conventions passed Exact-head checks passed.
Export declarations and definitions passed Audit reported zero findings.
Test registration passed Both new tests are included by the existing CMake source glob.
Base merge preview passed The exact head merges cleanly into the PR base.
Hosted checks not run Six applicable checks are queued.
C++ build and CTest not run They require building the exact head.
Commands and check output

The precheck’s relevant table is reproduced below without edits:

Check Status Command / reason
build_and_compile not_applicable The precheck deliberately does not configure, build, or compile AnyPS5.
diff_check passed git diff --check 9090972b7e91fd266819cbd77a8b058e177b5682...6221c5a54959739438324ef3a2e390a75f6b4e03
conventions_and_pr_template passed /usr/bin/python3 tools/check_conventions.py --base 9090972b7e91fd266819cbd77a8b058e177b5682 --head 6221c5a54959739438324ef3a2e390a75f6b4e03 --title feat(libSceNKWebKit): implement WebCore::CredentialBase and SecurityOrigin::isLocalHostOrLoopbackIPAddress --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15212-6221c5a54959/pr-body.md
changed_export_abi_audit failed /usr/bin/python3 tools/pr_abi_audit.py --base 9090972b7e91fd266819cbd77a8b058e177b5682 --head 6221c5a54959739438324ef3a2e390a75f6b4e03 --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.
python_test_registration not_applicable No changed test_*.py files.
live_dependency_and_mergeability_check passed /usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15212 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15212-6221c5a54959/stack
build_dependent_cpp_tests not_applicable Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.
test_quality_heuristics failed /usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15212-6221c5a54959/head-6221c5a54959-35af211e/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15212-6221c5a54959/head-6221c5a54959-35af211e --json core/libs/prx/libSceNKWebKit/Export.cpp core/libs/prx/libSceNKWebKit/include/CredentialBaseExports.hpp core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp core/libs/prx/libSceNKWebKit/include/SecurityOriginExports.hpp core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp core/libs/prx/libSceNKWebKit/src/CredentialBase.cpp core/libs/prx/libSceNKWebKit/src/CredentialBaseAbi.hpp core/libs/prx/libSceNKWebKit/src/SecurityOrigin.cpp core/libs/prx/libSceNKWebKit/tests/CredentialBase.cpp core/libs/prx/libSceNKWebKit/tests/SecurityOrigin.cpp docs/dev/debt/libSceNKWebKit.md
negative_controls not_applicable No changed Python test module in tools/ can be run as a no-build base-source control.
All conventions checks passed.
status=passed; findings=0
{
  "findings": [
    {
      "path": "core/libs/prx/libSceNKWebKit/tests/CredentialBase.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    },
    {
      "path": "core/libs/prx/libSceNKWebKit/tests/SecurityOrigin.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    }
  ],
  "negative_control_candidates": [],
  "limits": [
    "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
    "A test that passes against base is not by itself proof that the PR test is inadequate.",
    "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
  ]
}
conventions	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41522541949/job/125541946438
eligibility	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41522542300/job/125541945449
intake	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41522541988/job/125541955701
labels	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41522541991/job/125541945496
library-portability	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41522542276/job/125541945002
report	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41522542299/job/125541945383

The precheck could not find its ABI and test-quality helper scripts in the isolated PR snapshot. I ran the ABI audit from the workspace separately; it passed. The test-quality warnings are false positives: the library uses file(GLOB ... tests/*.cpp) and registers the globbed tests in CMake.

Negative control

Assertion Change to code under test Did the new test fail?
Credential construction/accessors and local-host classification None; these C++ tests need exact-head binaries, which require a build. Not run.

Findings

Blocking

None found in the reviewed source.

Non-blocking

None.

Sources

Not verified

I did not build or run CTest, the two new C++ suites, or PS5 console behavior. All six hosted checks were queued at the final refresh. The ABI audit is lexical and does not prove target calling convention or runtime binary layout.

To get this to a good state

No code change is requested. Let the queued hosted checks finish; if the head changes, I will rerun the precheck and relevant checks on the new head before revisiting approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5743169319 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15212#pullrequestreview-5743169319). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-02T20:53:03Z. **Review:** COMMENTED --- # Reviewed — no blocking findings At head `6221c5a54959739438324ef3a2e390a75f6b4e03`, the implementations match the pinned WebKit behavior I checked; I’m withholding approval while the six hosted checks remain queued. ## What I ran Reviewed all 11 changed files at head `6221c5a54959739438324ef3a2e390a75f6b4e03`, against base `9090972b7e91fd266819cbd77a8b058e177b5682`. The head merges cleanly with that base. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. I did not build or compile. ```sh git diff --check 9090972b7e91fd266819cbd77a8b058e177b5682...6221c5a54959739438324ef3a2e390a75f6b4e03 python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15212 python3 tools/pr_abi_audit.py --base 9090972b7e91fd266819cbd77a8b058e177b5682 --head 6221c5a54959739438324ef3a2e390a75f6b4e03 --json python3 tools/pr_test_quality.py --root /marc/AnyPS5 --json core/libs/prx/libSceNKWebKit/tests/CredentialBase.cpp core/libs/prx/libSceNKWebKit/tests/SecurityOrigin.cpp git show 6221c5a54959739438324ef3a2e390a75f6b4e03:core/libs/prx/libSceNKWebKit/CMakeLists.txt gh pr checks 15212 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | Exact-head checks passed. | | Export declarations and definitions | passed | Audit reported zero findings. | | Test registration | passed | Both new tests are included by the existing CMake source glob. | | Base merge preview | passed | The exact head merges cleanly into the PR base. | | Hosted checks | not run | Six applicable checks are queued. | | C++ build and CTest | not run | They require building the exact head. | <details><summary>Commands and check output</summary> The precheck’s relevant table is reproduced below without edits: | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check 9090972b7e91fd266819cbd77a8b058e177b5682...6221c5a54959739438324ef3a2e390a75f6b4e03` | | conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base 9090972b7e91fd266819cbd77a8b058e177b5682 --head 6221c5a54959739438324ef3a2e390a75f6b4e03 --title feat(libSceNKWebKit): implement WebCore::CredentialBase and SecurityOrigin::isLocalHostOrLoopbackIPAddress --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15212-6221c5a54959/pr-body.md` | | changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base 9090972b7e91fd266819cbd77a8b058e177b5682 --head 6221c5a54959739438324ef3a2e390a75f6b4e03 --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15212 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15212-6221c5a54959/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15212-6221c5a54959/head-6221c5a54959-35af211e/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15212-6221c5a54959/head-6221c5a54959-35af211e --json core/libs/prx/libSceNKWebKit/Export.cpp core/libs/prx/libSceNKWebKit/include/CredentialBaseExports.hpp core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp core/libs/prx/libSceNKWebKit/include/SecurityOriginExports.hpp core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp core/libs/prx/libSceNKWebKit/src/CredentialBase.cpp core/libs/prx/libSceNKWebKit/src/CredentialBaseAbi.hpp core/libs/prx/libSceNKWebKit/src/SecurityOrigin.cpp core/libs/prx/libSceNKWebKit/tests/CredentialBase.cpp core/libs/prx/libSceNKWebKit/tests/SecurityOrigin.cpp docs/dev/debt/libSceNKWebKit.md` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | ```text All conventions checks passed. ``` ```text status=passed; findings=0 ``` ```json { "findings": [ { "path": "core/libs/prx/libSceNKWebKit/tests/CredentialBase.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage." }, { "path": "core/libs/prx/libSceNKWebKit/tests/SecurityOrigin.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage." } ], "negative_control_candidates": [], "limits": [ "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.", "A test that passes against base is not by itself proof that the PR test is inadequate.", "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error." ] } ``` ```text conventions pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41522541949/job/125541946438 eligibility pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41522542300/job/125541945449 intake pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41522541988/job/125541955701 labels pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41522541991/job/125541945496 library-portability pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41522542276/job/125541945002 report pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41522542299/job/125541945383 ``` The precheck could not find its ABI and test-quality helper scripts in the isolated PR snapshot. I ran the ABI audit from the workspace separately; it passed. The test-quality warnings are false positives: the library uses `file(GLOB ... tests/*.cpp)` and registers the globbed tests in CMake. </details> ## Negative control | Assertion | Change to code under test | Did the new test fail? | |---|---|---| | Credential construction/accessors and local-host classification | None; these C++ tests need exact-head binaries, which require a build. | Not run. | ## Findings ### Blocking None found in the reviewed source. ### Non-blocking None. ## Sources - [CredentialBase implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/6221c5a54959739438324ef3a2e390a75f6b4e03/core/libs/prx/libSceNKWebKit/src/CredentialBase.cpp) - [SecurityOrigin implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/6221c5a54959739438324ef3a2e390a75f6b4e03/core/libs/prx/libSceNKWebKit/src/SecurityOrigin.cpp) - [Pinned WebKit CredentialBase behavior](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/WebCore/platform/network/CredentialBase.cpp) - [Pinned WebKit SecurityOrigin behavior](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/WebCore/page/SecurityOrigin.cpp#L86-L105) ## Not verified I did not build or run CTest, the two new C++ suites, or PS5 console behavior. All six hosted checks were queued at the final refresh. The ABI audit is lexical and does not prove target calling convention or runtime binary layout. ## To get this to a good state No code change is requested. Let the queued hosted checks finish; if the head changes, I will rerun the precheck and relevant checks on the new head before revisiting approval.
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!15212
No description provided.