feat(libSceNKWebKit): implement WKRegistrableDomainCreate #24873

Merged
jagrat04 merged 1 commit from upstream-pr/24873 into main 2026-11-28 04:33:29 +00:00
jagrat04 commented 2026-11-21 08:37:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-11-21T08:37:37Z.


What

Implement WebKit PlayStation C API WKRegistrableDomainCreate in libSceNKWebKit:

  • WKRegistrableDomainCreate (NID BjwTHxBa4gc): extracts the host from a WKURL and resolves the registrable domain using WebCore::topPrivatelyControlledDomain / public suffix list following upstream WKRegistrableDomainPlayStation.cpp and RegistrableDomain.h. Returns "nullOrigin" for URLs without a host (such as about:blank or file: URLs).

Tested

tools/check_conventions.py --base origin/main passed; tools/debt_fold.py --check passed; tests/RegistrableDomain.cpp tests resolving domain names across standard domains, multi-part public suffixes (.co.uk), IPv4 addresses, localhost, about:blank, file:, uppercase URLs, enforcing WKStringGetTypeID return type, rejecting null URLs, and validating object type constraints with RequireInvalidArgument. Not tested on a PS5.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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

Summary by CodeRabbit

  • New Features
    • Added support for identifying a URL’s registrable domain, such as example.com for shop.example.com.
    • When a URL has no host, the result is nullOrigin; when no registrable domain is available, the host is returned instead.
  • Known Limitations
    • Non-ASCII hostnames are not supported and may cause an error.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5426062232 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24873). Originally posted by [jagrat04](https://github.com/jagrat04) on 2026-11-21T08:37:37Z. --- ### What Implement WebKit PlayStation C API `WKRegistrableDomainCreate` in `libSceNKWebKit`: - `WKRegistrableDomainCreate` (NID `BjwTHxBa4gc`): extracts the host from a `WKURL` and resolves the registrable domain using `WebCore::topPrivatelyControlledDomain` / public suffix list following upstream `WKRegistrableDomainPlayStation.cpp` and `RegistrableDomain.h`. Returns `"nullOrigin"` for URLs without a host (such as `about:blank` or `file:` URLs). ### Tested `tools/check_conventions.py --base origin/main` passed; `tools/debt_fold.py --check` passed; `tests/RegistrableDomain.cpp` tests resolving domain names across standard domains, multi-part public suffixes (`.co.uk`), IPv4 addresses, localhost, `about:blank`, `file:`, uppercase URLs, enforcing `WKStringGetTypeID` return type, rejecting null URLs, and validating object type constraints with `RequireInvalidArgument`. Not tested on a PS5. ### 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) and the licence notice of code adapted from upstream (see AGENTS.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 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Added support for identifying a URL’s registrable domain, such as `example.com` for `shop.example.com`. * When a URL has no host, the result is `nullOrigin`; when no registrable domain is available, the host is returned instead. * **Known Limitations** * Non-ASCII hostnames are not supported and may cause an error. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
PrivacyOnion commented 2026-11-21 08:40:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-21T08:40:31Z.

Review: CHANGES_REQUESTED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against d2d28b05b5:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_registrabledomain_tests built cleanly.
  • CTest (nkwebkit_registrabledomain):
    1/1 Test #4832: nkwebkit_registrabledomain .......Subprocess aborted***Exception:   0.13 sec
    0% tests passed, 1 tests failed out of 1
    
    The following tests FAILED:
    

Requesting changes for the points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004196156 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24873#pullrequestreview-6004196156). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-21T08:40:31Z. **Review:** CHANGES_REQUESTED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `d2d28b05b5`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_registrabledomain_tests` built cleanly. - **CTest** (`nkwebkit_registrabledomain`): ``` 1/1 Test #4832: nkwebkit_registrabledomain .......Subprocess aborted***Exception: 0.13 sec 0% tests passed, 1 tests failed out of 1 ``` ``` The following tests FAILED: ``` Requesting changes for the points above.
PrivacyOnion commented 2026-11-21 09:21:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-21T09:21:00Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against e284649314:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_registrabledomain_tests built cleanly.
  • CTest (nkwebkit_registrabledomain):
    1/1 Test #4833: nkwebkit_registrabledomain .......   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with 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/URL.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified core/libs/prx/libSceNKWebKit/src/URL.cpp: WKRegistrableDomainCreate uses NKWebKit::CastNKWebKit::URL(urlRef, func) to validate guest pointers, throwing std::invalid_argument on null or wrong-typed handles as verified by unit tests.
    • Verified core/libs/prx/libSceNKWebKit/src/URL.cpp: the temporary string lifetime defect was resolved by binding the result of CanonicalizeURL to a local std::string variable before slicing with ExtractHost.
    • Verified core/libs/prx/libSceNKWebKit/src/URL.cpp: URLs without a host (e.g. file: and about:blank) safely return 'nullOrigin', matching upstream WebKit PlayStation behavior.
    • Verified core/libs/prx/libSceNKWebKit/src/URL.cpp: both 8-bit (Latin-1/ASCII) and 16-bit (UTF-16) StringImpl representations returned from WebCore::topPrivatelyControlledDomain are properly handled and converted to NKWebKit::String.
    • Verified Export.cpp, InventoryExports.hpp, and docs/dev/debt/changes/wkregistrabledomain-create.md: the NotImplemented stub was cleanly removed, the export declared in WebKitValueExports.hpp, and technical debt updated per AGENTS.md.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004355743 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24873#pullrequestreview-6004355743). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-21T09:21:00Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `e284649314`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_registrabledomain_tests` built cleanly. - **CTest** (`nkwebkit_registrabledomain`): ``` 1/1 Test #4833: nkwebkit_registrabledomain ....... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `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/URL.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified core/libs/prx/libSceNKWebKit/src/URL.cpp: WKRegistrableDomainCreate uses NKWebKit::Cast<NKWebKit::URL>(urlRef, __func__) to validate guest pointers, throwing std::invalid_argument on null or wrong-typed handles as verified by unit tests. - Verified core/libs/prx/libSceNKWebKit/src/URL.cpp: the temporary string lifetime defect was resolved by binding the result of CanonicalizeURL to a local std::string variable before slicing with ExtractHost. - Verified core/libs/prx/libSceNKWebKit/src/URL.cpp: URLs without a host (e.g. file: and about:blank) safely return 'nullOrigin', matching upstream WebKit PlayStation behavior. - Verified core/libs/prx/libSceNKWebKit/src/URL.cpp: both 8-bit (Latin-1/ASCII) and 16-bit (UTF-16) StringImpl representations returned from WebCore::topPrivatelyControlledDomain are properly handled and converted to NKWebKit::String. - Verified Export.cpp, InventoryExports.hpp, and docs/dev/debt/changes/wkregistrabledomain-create.md: the NotImplemented stub was cleanly removed, the export declared in WebKitValueExports.hpp, and technical debt updated per AGENTS.md. Looks Good To Me
MarcZX10 commented 2026-11-21 09:21:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T09:21:25Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: pass the URL host to WebCore as a valid WTF string before resolving its registrable domain.

What I ran

Reviewed head e28464931446ecb87027359fe26d1781f2d0a937. I inspected the prepared diff and targeted source using the repo_read.py reader; I did not run tests or other commands.

Results

Check Result Note
Source review failed Host conversion is unsafe
Tests not run No test execution
PS5 behavior not run Author also reports this was not tested

Findings

Blocking

  • core/libs/prx/libSceNKWebKit/src/URL.cpp:315: host is a UTF-8 byte sequence, but it is passed to WTF's 8-bit StringImpl::create with the byte count. That constructor treats bytes as Latin-1, so internationalized hostnames are passed to topPrivatelyControlledDomain as different text; the returned domain can therefore be wrong. Decode the host to the representation expected by the WebCore API before calling it, and cover an internationalized hostname.

Non-blocking

None.

Sources

Not verified

  • Tests, build, and PS5 behavior were not run.
  • Read: core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp, core/libs/prx/libSceNKWebKit/src/URL.cpp, core/libs/prx/libSceNKWebKit/src/Types.hpp, core/libs/prx/libSceNKWebKit/include/PublicSuffixExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, and the prepared description, commits, manifest, and diff.
  • Excluded by the prepared manifest: core/libs/prx/libSceNKWebKit/Export.cpp and core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp full texts. Their diff hunks were read. review/files.json was unavailable.

To get this to a good state

Convert the extracted host to the correct WTF string representation before resolving the domain, then run the added registrable-domain test including an internationalized hostname.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004357041 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24873#pullrequestreview-6004357041). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T09:21:25Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: pass the URL host to WebCore as a valid WTF string before resolving its registrable domain. ## What I ran Reviewed head `e28464931446ecb87027359fe26d1781f2d0a937`. I inspected the prepared diff and targeted source using the `repo_read.py` reader; I did not run tests or other commands. ## Results | Check | Result | Note | |---|---|---| | Source review | failed | Host conversion is unsafe | | Tests | not run | No test execution | | PS5 behavior | not run | Author also reports this was not tested | ## Findings ### Blocking - `core/libs/prx/libSceNKWebKit/src/URL.cpp:315`: `host` is a UTF-8 byte sequence, but it is passed to WTF's 8-bit `StringImpl::create` with the byte count. That constructor treats bytes as Latin-1, so internationalized hostnames are passed to `topPrivatelyControlledDomain` as different text; the returned domain can therefore be wrong. Decode the host to the representation expected by the WebCore API before calling it, and cover an internationalized hostname. ### Non-blocking None. ## Sources - [URL.cpp at reviewed head](https://github.com/boykopovar/AnyPS5/blob/e28464931446ecb87027359fe26d1781f2d0a937/core/libs/prx/libSceNKWebKit/src/URL.cpp) ## Not verified - Tests, build, and PS5 behavior were not run. - Read: `core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp`, `core/libs/prx/libSceNKWebKit/src/URL.cpp`, `core/libs/prx/libSceNKWebKit/src/Types.hpp`, `core/libs/prx/libSceNKWebKit/include/PublicSuffixExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, and the prepared description, commits, manifest, and diff. - Excluded by the prepared manifest: `core/libs/prx/libSceNKWebKit/Export.cpp` and `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp` full texts. Their diff hunks were read. `review/files.json` was unavailable. ## To get this to a good state Convert the extracted host to the correct WTF string representation before resolving the domain, then run the added registrable-domain test including an internationalized hostname.
PrivacyOnion commented 2026-11-21 09:37:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-21T09:37:06Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against e4d2d272a4:

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_registrabledomain_tests built cleanly.
  • CTest (nkwebkit_registrabledomain):
    1/1 Test #4837: nkwebkit_registrabledomain .......   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with 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/URL.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified core/libs/prx/libSceNKWebKit/src/URL.cpp: WKRegistrableDomainCreate validates urlRef with NKWebKit::CastNKWebKit::URL, correctly raising std::invalid_argument on nullptr and mismatched handle types.
    • Verified core/libs/prx/libSceNKWebKit/src/URL.cpp: URLs without network hosts (e.g. file: and about:blank) properly return MakeWKString("nullOrigin"), matching PlayStation WebKit behavior.
    • Verified core/libs/prx/libSceNKWebKit/src/URL.cpp: extracted UTF-8 hostnames are decoded into UTF-16 code units with NKWebKit::DecodeUtf8 before passing into WebCore::topPrivatelyControlledDomain, properly handling internationalized domain names.
    • Verified core/libs/prx/libSceNKWebKit/src/URL.cpp: both 8-bit Latin-1 (widened to char16_t) and 16-bit UTF-16 StringImpl buffers returned by WebCore are safely handled and wrapped into NKWebKit::String.
    • Verified core/libs/prx/libSceNKWebKit/Export.cpp and docs/dev/debt/changes/wkregistrabledomain-create.md: the NotImplemented stub was cleanly removed, the export prototype added to WebKitValueExports.hpp, and debt tracking updated per AGENTS.md conventions.
    • Verified core/libs/prx/libSceNKWebKit/tests/RegistrableDomain.cpp: test suite comprehensively validates standard domains, .co.uk multi-level suffixes, IP addresses, localhost, uppercase URLs, IDN UTF-8 domains, and invalid handle exceptions.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004429031 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24873#pullrequestreview-6004429031). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-21T09:37:06Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `e4d2d272a4`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_registrabledomain_tests` built cleanly. - **CTest** (`nkwebkit_registrabledomain`): ``` 1/1 Test #4837: nkwebkit_registrabledomain ....... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `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/URL.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified core/libs/prx/libSceNKWebKit/src/URL.cpp: WKRegistrableDomainCreate validates urlRef with NKWebKit::Cast<NKWebKit::URL>, correctly raising std::invalid_argument on nullptr and mismatched handle types. - Verified core/libs/prx/libSceNKWebKit/src/URL.cpp: URLs without network hosts (e.g. file: and about:blank) properly return MakeWKString("nullOrigin"), matching PlayStation WebKit behavior. - Verified core/libs/prx/libSceNKWebKit/src/URL.cpp: extracted UTF-8 hostnames are decoded into UTF-16 code units with NKWebKit::DecodeUtf8 before passing into WebCore::topPrivatelyControlledDomain, properly handling internationalized domain names. - Verified core/libs/prx/libSceNKWebKit/src/URL.cpp: both 8-bit Latin-1 (widened to char16_t) and 16-bit UTF-16 StringImpl buffers returned by WebCore are safely handled and wrapped into NKWebKit::String. - Verified core/libs/prx/libSceNKWebKit/Export.cpp and docs/dev/debt/changes/wkregistrabledomain-create.md: the NotImplemented stub was cleanly removed, the export prototype added to WebKitValueExports.hpp, and debt tracking updated per AGENTS.md conventions. - Verified core/libs/prx/libSceNKWebKit/tests/RegistrableDomain.cpp: test suite comprehensively validates standard domains, .co.uk multi-level suffixes, IP addresses, localhost, uppercase URLs, IDN UTF-8 domains, and invalid handle exceptions. Looks Good To Me
MarcZX10 commented 2026-11-21 09:48:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T09:48:37Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the reviewed implementation and tests support merging.

What I ran

Reviewed head e4d2d272a40f96131314d2780b15dd62e57c50ae. Read the prepared diff and changed code; no commands or tests were run. The PR description reports convention and debt checks passed and notes no PS5 testing; these were not run by this review.

Results

Check Result Note
Source review passed Implementation and added tests inspected
Automated checks not run Author-reported checks only
PS5 behavior not run No console run confirmed

Findings

Blocking

None.

Non-blocking

None.

Not verified

The full text of Export.cpp and InventoryExports.hpp was excluded from the review bundle and not read through the repository reader. Their relevant diff hunks were reviewed. Automated checks and PS5 behavior were not verified. Other than those exclusions, all changed files were read.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004469128 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24873#pullrequestreview-6004469128). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T09:48:37Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the reviewed implementation and tests support merging. ## What I ran Reviewed head `e4d2d272a40f96131314d2780b15dd62e57c50ae`. Read the prepared diff and changed code; no commands or tests were run. The PR description reports convention and debt checks passed and notes no PS5 testing; these were not run by this review. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Implementation and added tests inspected | | Automated checks | not run | Author-reported checks only | | PS5 behavior | not run | No console run confirmed | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The full text of `Export.cpp` and `InventoryExports.hpp` was excluded from the review bundle and not read through the repository reader. Their relevant diff hunks were reviewed. Automated checks and PS5 behavior were not verified. Other than those exclusions, all changed files were read. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-22 19:27:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T19:27:40Z.

Review: COMMENTED


Reviewed — no blocking findings

The implementation appears sound from the source inspected at head e96b990e62121c07a939fb8f9a7b8dfa12bc5a4d; no checks were run during this review, so approval is not justified.

What I ran

No commands or tests were run. I inspected the prepared diff and relevant source using the review reader.

Results

Check Result Note
Source review passed Core implementation and related helpers inspected
Tests not run No local execution available
Console behavior not run Author reports PS5 testing was not performed

Findings

Blocking

None identified in the code inspected.

Non-blocking

None.

Not verified

  • The full text of core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp and unchanged portions of core/libs/prx/libSceNKWebKit/Export.cpp were not read; both were excluded from the review folder as too large. Directory listing confirmed the file paths.
  • No build, tests, convention checks, debt checks, or PS5 runtime checks were run. The description reports convention/debt checks and a new test, but those results were not independently verified.
  • Changed files read: core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp, core/libs/prx/libSceNKWebKit/src/URL.cpp, core/libs/prx/libSceNKWebKit/tests/RegistrableDomain.cpp, and docs/dev/debt/changes/wkregistrabledomain-create.md (the last file was present in the manifest but its full text was not separately read). Changed files reviewed: these four plus core/libs/prx/libSceNKWebKit/Export.cpp and core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp via the diff.

To get this to a good state

Nothing is required. Optional: run the reported checks and test on this head, and confirm the PS5 behavior.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6014027849 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24873#pullrequestreview-6014027849). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T19:27:40Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The implementation appears sound from the source inspected at head `e96b990e62121c07a939fb8f9a7b8dfa12bc5a4d`; no checks were run during this review, so approval is not justified. ## What I ran No commands or tests were run. I inspected the prepared diff and relevant source using the review reader. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Core implementation and related helpers inspected | | Tests | not run | No local execution available | | Console behavior | not run | Author reports PS5 testing was not performed | ## Findings ### Blocking None identified in the code inspected. ### Non-blocking None. ## Not verified - The full text of `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp` and unchanged portions of `core/libs/prx/libSceNKWebKit/Export.cpp` were not read; both were excluded from the review folder as too large. Directory listing confirmed the file paths. - No build, tests, convention checks, debt checks, or PS5 runtime checks were run. The description reports convention/debt checks and a new test, but those results were not independently verified. - Changed files read: `core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp`, `core/libs/prx/libSceNKWebKit/src/URL.cpp`, `core/libs/prx/libSceNKWebKit/tests/RegistrableDomain.cpp`, and `docs/dev/debt/changes/wkregistrabledomain-create.md` (the last file was present in the manifest but its full text was not separately read). Changed files reviewed: these four plus `core/libs/prx/libSceNKWebKit/Export.cpp` and `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp` via the diff. ## To get this to a good state Nothing is required. Optional: run the reported checks and test on this head, and confirm the PS5 behavior.
MarcZX10 commented 2026-11-25 00:16:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T00:16:13Z.

Review: COMMENTED


Reviewed — comments

Changes are needed to resolve one compatibility concern before this review can support a formal decision; the modified legacy export declaration was removed while the implementation is now declared in a different header.

What I ran

Reviewed head 4f72fad6ecc748c0d3d80a4b7874830974d244d6 using the prepared diff and repo_read.py. No commands, tests, or prechecks were run. The PR description reports convention and debt checks as passed and says it was not tested on a PS5; these were not independently verified.

Results

Check Result Note
Diff and changed-file review not run Inspected prepared diff and available changed files
Tests and prechecks not run No execution environment available

Findings

Blocking

None verified.

Non-blocking

  • core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp removes the WKRegistrableDomainCreate declaration, while the replacement declaration is added to WebKitValueExports.hpp (core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp:492). The function implementation is in URL.cpp. Since the large generated export and dispatch files could not be reviewed in full, I could not confirm whether the declaration move is correct for consumers of the inventory header. Please confirm the intended header/API ownership and retain or update the declaration there if that header remains part of the public export surface.

Not verified

  • Full text of core/libs/prx/libSceNKWebKit/Export.cpp and core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp was excluded as too large; only the nearby export implementation range and the beginning of the inventory header were read.
  • Did not run tests, convention checks, debt checks, builds, or PS5 validation.
  • Read: review/description.md, review/commits.md, review/manifest.json, review/diff.patch, core/libs/prx/libSceNKWebKit/src/URL.cpp, core/libs/prx/libSceNKWebKit/tests/RegistrableDomain.cpp, core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp (relevant declaration range), core/libs/prx/libSceNKWebKit/include/PublicSuffixExports.hpp, core/libs/prx/libSceNKWebKit/src/Types.hpp (relevant definitions), core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp (relevant definitions), and docs/dev/debt/changes/wkregistrabledomain-create.md.
  • Excluded by the prepared review: full Export.cpp and InventoryExports.hpp. review/files.json was not available from the reader.

To get this to a good state

Nothing is required for merge based on a verified defect. Optional: confirm the export declaration’s intended header ownership and test the changed behavior on the supported build target.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6049565161 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24873#pullrequestreview-6049565161). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T00:16:13Z. **Review:** COMMENTED --- # Reviewed — comments Changes are needed to resolve one compatibility concern before this review can support a formal decision; the modified legacy export declaration was removed while the implementation is now declared in a different header. ## What I ran Reviewed head `4f72fad6ecc748c0d3d80a4b7874830974d244d6` using the prepared diff and `repo_read.py`. No commands, tests, or prechecks were run. The PR description reports convention and debt checks as passed and says it was not tested on a PS5; these were not independently verified. ## Results | Check | Result | Note | |---|---|---| | Diff and changed-file review | not run | Inspected prepared diff and available changed files | | Tests and prechecks | not run | No execution environment available | ## Findings ### Blocking None verified. ### Non-blocking - `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp` removes the `WKRegistrableDomainCreate` declaration, while the replacement declaration is added to `WebKitValueExports.hpp` (`core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp:492`). The function implementation is in `URL.cpp`. Since the large generated export and dispatch files could not be reviewed in full, I could not confirm whether the declaration move is correct for consumers of the inventory header. Please confirm the intended header/API ownership and retain or update the declaration there if that header remains part of the public export surface. ## Not verified - Full text of `core/libs/prx/libSceNKWebKit/Export.cpp` and `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp` was excluded as too large; only the nearby export implementation range and the beginning of the inventory header were read. - Did not run tests, convention checks, debt checks, builds, or PS5 validation. - Read: `review/description.md`, `review/commits.md`, `review/manifest.json`, `review/diff.patch`, `core/libs/prx/libSceNKWebKit/src/URL.cpp`, `core/libs/prx/libSceNKWebKit/tests/RegistrableDomain.cpp`, `core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp` (relevant declaration range), `core/libs/prx/libSceNKWebKit/include/PublicSuffixExports.hpp`, `core/libs/prx/libSceNKWebKit/src/Types.hpp` (relevant definitions), `core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp` (relevant definitions), and `docs/dev/debt/changes/wkregistrabledomain-create.md`. - Excluded by the prepared review: full `Export.cpp` and `InventoryExports.hpp`. `review/files.json` was not available from the reader. ## To get this to a good state Nothing is required for merge based on a verified defect. Optional: confirm the export declaration’s intended header ownership and test the changed behavior on the supported build target.
MarcZX10 commented 2026-11-26 12:20:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T12:20:07Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; I found no verified defect in the implementation, and the available evidence supports merging.

What I ran

Reviewed head 5fd563f30baaeb1848594b015868b514eefd019a. I read the prepared description, commits, manifest, and diff, plus the full text of each included changed file and targeted source ranges for the suffix lookup and string conversion. I used the repository reader search and read tools; no tests or builds were run. The description reports convention and debt checks as passed, but I did not run them.

Results

Check Result Note
Diff and changed code review passed Reviewed included changed files
Tests and build not run Not run in this review
Author-reported checks not run Reported in the PR description

Findings

Blocking

None.

Non-blocking

None.

Not verified

  • core/libs/prx/libSceNKWebKit/Export.cpp was excluded from the review bundle because it is too large; its changed lines only remove the old stub in diff.patch, and I did not read the full file at head.
  • PS5 behavior was not tested. The PR description also notes this.
  • Tests/build and the reported convention and debt checks were not run by me.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6074019482 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24873#pullrequestreview-6074019482). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-26T12:20:07Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; I found no verified defect in the implementation, and the available evidence supports merging. ## What I ran Reviewed head `5fd563f30baaeb1848594b015868b514eefd019a`. I read the prepared description, commits, manifest, and diff, plus the full text of each included changed file and targeted source ranges for the suffix lookup and string conversion. I used the repository reader search and read tools; no tests or builds were run. The description reports convention and debt checks as passed, but I did not run them. ## Results | Check | Result | Note | |---|---|---| | Diff and changed code review | passed | Reviewed included changed files | | Tests and build | not run | Not run in this review | | Author-reported checks | not run | Reported in the PR description | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified - `core/libs/prx/libSceNKWebKit/Export.cpp` was excluded from the review bundle because it is too large; its changed lines only remove the old stub in `diff.patch`, and I did not read the full file at head. - PS5 behavior was not tested. The PR description also notes this. - Tests/build and the reported convention and debt checks were not run by me. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-26 13:09:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T13:09:33Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change; the available source supports the implemented behavior, but I could not verify the complete changed export file or run the checks.

What I ran

Reviewed head b4195672d603cb27530713dbc099faeed04417a1. No commands or tests were run; source was inspected with the review reader. Read the description, commits, diff, manifest, review-folder README, WebKitValueExports.hpp, URL.cpp, RegistrableDomain.cpp, the debt note, PublicSuffix.cpp, CustomHeaderFields.cpp, WtfString.cpp, Types.hpp, and the relevant CMakeLists.txt range. Export.cpp was excluded from the review folder and checked only by targeted search; InventoryExports.hpp was listed but its full text was not read.

Results

Check Result Note
Source review passed Implementation and relevant resolver read
Tests and conventions not run No execution environment available
Export source not run Targeted search only

Findings

Blocking

None identified in the source inspected.

Non-blocking

None.

Not verified

The full contents of Export.cpp and InventoryExports.hpp were not read. Export.cpp was searched for WKRegistrableDomainCreate and had no matches, consistent with the diff removing the prior stub; the full file remains unverified. No build, test, convention, or debt-fold checks were run. PS5 behavior was not tested.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6074680219 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24873#pullrequestreview-6074680219). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-26T13:09:33Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change; the available source supports the implemented behavior, but I could not verify the complete changed export file or run the checks. ## What I ran Reviewed head `b4195672d603cb27530713dbc099faeed04417a1`. No commands or tests were run; source was inspected with the review reader. Read the description, commits, diff, manifest, review-folder README, `WebKitValueExports.hpp`, `URL.cpp`, `RegistrableDomain.cpp`, the debt note, `PublicSuffix.cpp`, `CustomHeaderFields.cpp`, `WtfString.cpp`, `Types.hpp`, and the relevant `CMakeLists.txt` range. `Export.cpp` was excluded from the review folder and checked only by targeted search; `InventoryExports.hpp` was listed but its full text was not read. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Implementation and relevant resolver read | | Tests and conventions | not run | No execution environment available | | Export source | not run | Targeted search only | ## Findings ### Blocking None identified in the source inspected. ### Non-blocking None. ## Not verified The full contents of `Export.cpp` and `InventoryExports.hpp` were not read. `Export.cpp` was searched for `WKRegistrableDomainCreate` and had no matches, consistent with the diff removing the prior stub; the full file remains unverified. No build, test, convention, or debt-fold checks were run. PS5 behavior was not tested. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-27 07:44:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T07:44:22Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the inspected implementation and tests support merging.

What I ran

Reviewed head 4adbc1cc570befcb8a91f0ca1b5124b28100c308. I read the prepared description, commit summary, manifest, diff, and the changed implementation, declaration, test, and debt note. I also read the existing public suffix implementation and its tests, the WTF string conversion implementation, and the related custom header caller. No test commands were run; repo_read.py was used to inspect pinned source.

Results

Check Result Note
Diff and changed code review passed Inspected relevant changes and context
Automated tests not run Author reports tests; not independently verified
PS5 behavior not run Description says no console test

Findings

Blocking

None.

Non-blocking

None.

Not verified

The full text of core/libs/prx/libSceNKWebKit/Export.cpp and core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp was not read; their changed lines remove the previous stub export and inventory declaration. Automated checks and runtime behavior on PS5 were not verified. The description's claims that convention and debt checks passed are author-reported, not runs performed for this review.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6084949976 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24873#pullrequestreview-6084949976). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-27T07:44:22Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the inspected implementation and tests support merging. ## What I ran Reviewed head `4adbc1cc570befcb8a91f0ca1b5124b28100c308`. I read the prepared description, commit summary, manifest, diff, and the changed implementation, declaration, test, and debt note. I also read the existing public suffix implementation and its tests, the WTF string conversion implementation, and the related custom header caller. No test commands were run; `repo_read.py` was used to inspect pinned source. ## Results | Check | Result | Note | |---|---|---| | Diff and changed code review | passed | Inspected relevant changes and context | | Automated tests | not run | Author reports tests; not independently verified | | PS5 behavior | not run | Description says no console test | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The full text of `core/libs/prx/libSceNKWebKit/Export.cpp` and `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp` was not read; their changed lines remove the previous stub export and inventory declaration. Automated checks and runtime behavior on PS5 were not verified. The description's claims that convention and debt checks passed are author-reported, not runs performed for this review. ## To get this to a good state Nothing is required.
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!24873
No description provided.