feat(libSceNKWebKit): implement WebCore::SecurityOriginData equality #24550
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/24550"
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 amer760 on 2026-11-20T19:26:22Z.
What
Implements
WebCore::operator==(const SecurityOriginData&, const SecurityOriginData&), following SecurityOriginData.cpp andstd::variantequality over the existing tuple/opaque layout inSecurityOriginAbi.hpp: the same object is equal, different alternatives are not, tuples compare protocol, host (WTF::equal) and the optional port, opaque origins compare both identifiers, two valueless values are equal, and an invalid index throws. The export is in its own file because several open PRs editSecurityOrigin.cpp.Tested
Windows 11, MSYS2 UCRT64 GCC 16.2.0, Release. New
nkwebkit_securityorigindataequalitytest covers equal and differing protocols, hosts, case, ports (engaged or not), null versus empty strings, opaque identifiers, mixed alternatives, valueless values, invalid indices and null arguments, in both argument orders. All 172nkwebkitctest tests pass.python3 tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.pyneedsgh, which is not installed here; instead every open PR head was merged withgit merge-treeagainst this branch: the only new conflicts are adjacent removed stubs with #24161 and #24165.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T19:38:28Z.
Review: APPROVED
Reviewed — looks good
The implementation and its focused tests are consistent with the stated equality behavior at head
ff7350335eddfbff4ed70a6dc22dacc940a6e818; I found no verified blocking defect.What I ran
Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
SecurityOriginDataEqualityExports.hpp,libSceNKWebKit.hpp,SecurityOriginDataEquality.cpp,tests/SecurityOriginDataEquality.cpp, anddocs/dev/debt/changes/feat-nkwebkit-security-origin-data-equality.md.Export.cppandinclude/InventoryExports.hppwere excluded from the review folder as too large. Their removed declarations are visible in the supplied diff; their full text was not read.To get this to a good state
Nothing is required.