feat(libSceNKWebKit): implement WKContextSetDomainRelaxationForbiddenForURLScheme #18357

Closed
heditrigui wants to merge 3 commits from upstream-pr/18357 into main
heditrigui commented 2026-11-11 11:47:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by heditrigui on 2026-11-11T11:47:52Z.


What

This pull request implements \WKContextSetDomainRelaxationForbiddenForURLScheme\ in \libSceNKWebKit:

  • Conforms to the 2-argument signature in WebKit C API \WKContext.h\ (const void* contextRef, const void* urlSchemeRef).
  • Replaces the throwing placeholder stub in \Export.cpp\ and \InventoryExports.hpp, adds declaration to \include/WebKitValueExports.hpp, and wires registration to \domainRelaxationForbiddenSchemes\ on \NKWebKit::ProcessPool\ in \src/Configuration.hpp\ and \src/ContextURLSchemes.cpp\ (building on top of the scheme registration pattern merged in #18831).
  • Updates technical debt documentation in \docs/dev/debt/libSceNKWebKit.md.

Tested

  • Unit test suite in \core/libs/prx/libSceNKWebKit/tests/ContextURLSchemes.cpp:
    • Verified custom scheme registration on process pool instance (\domainRelaxationForbiddenSchemes)
    • Verified deduplication of repeated scheme registrations
    • Verified error handling (\std::invalid_argument\ thrown on null context or null string reference)
  • Passed repository conventions check (\ ools/check_conventions.py --base upstream/main) with 0 errors
  • Passed public headers audit (\core/libs/tests/test_public_headers.py --audit-only) with 413 libraries and 34,598 exports verified

Checklist

  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5258877174 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18357). Originally posted by [heditrigui](https://github.com/heditrigui) on 2026-11-11T11:47:52Z. --- ### What This pull request implements \WKContextSetDomainRelaxationForbiddenForURLScheme\ in \libSceNKWebKit\: - Conforms to the 2-argument signature in WebKit C API \WKContext.h\ (\(const void* contextRef, const void* urlSchemeRef)\). - Replaces the throwing placeholder stub in \Export.cpp\ and \InventoryExports.hpp\, adds declaration to \include/WebKitValueExports.hpp\, and wires registration to \domainRelaxationForbiddenSchemes\ on \NKWebKit::ProcessPool\ in \src/Configuration.hpp\ and \src/ContextURLSchemes.cpp\ (building on top of the scheme registration pattern merged in #18831). - Updates technical debt documentation in \docs/dev/debt/libSceNKWebKit.md\. ### Tested - Unit test suite in \core/libs/prx/libSceNKWebKit/tests/ContextURLSchemes.cpp\: - Verified custom scheme registration on process pool instance (\domainRelaxationForbiddenSchemes\) - Verified deduplication of repeated scheme registrations - Verified error handling (\std::invalid_argument\ thrown on null context or null string reference) - Passed repository conventions check (\ ools/check_conventions.py --base upstream/main\) with 0 errors - Passed public headers audit (\core/libs/tests/test_public_headers.py --audit-only\) with 413 libraries and 34,598 exports verified ### Checklist - [x] Depends on: none - [x] AI-assisted: yes
PrivacyOnion commented 2026-11-11 15:56:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-11T15:56:11Z.

Review: APPROVED


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

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_base_tests built cleanly.
  • CTest (nkwebkit_base):
    1/1 Test #3659: nkwebkit_base ....................   Passed    0.03 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/Configuration.hpp, core/libs/prx/libSceNKWebKit/src/Context.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • core/libs/prx/libSceNKWebKit/src/Context.cpp: Verified that WKContextRegisterURLSchemeAsEmptyDocument, WKContextRegisterURLSchemeAsSecure, WKContextRegisterURLSchemeAsBypassingContentSecurityPolicy, WKContextRegisterURLSchemeAsCachePartitioned, WKContextRegisterURLSchemeAsCanDisplayOnlyIfCanRequest, and WKContextSetDomainRelaxationForbiddenForURLScheme validate contextRef and urlSchemeRef via NKWebKit::Cast, throwing std::invalid_argument on null or incorrect object types.
    • core/libs/prx/libSceNKWebKit/src/Configuration.hpp: Verified that NKWebKit::ProcessPool defines the 6 URL scheme containers as default-initialized std::vectorstd::string matching visitedLinks conventions.
    • core/libs/prx/libSceNKWebKit/src/Context.cpp: Verified that scheme registration deduplicates entries via std::find before push_back, and that WKContextSetDomainRelaxationForbiddenForURLScheme safely adds when forbidden is true and erases only existing entries when forbidden is false without iterator invalidation or out-of-bounds access.
    • core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp and Export.cpp: Verified that the 6 stub exports were cleanly removed from Export.cpp and InventoryExports.hpp, and declared in WebKitValueExports.hpp with void return type and APS5_VABI calling convention matching WebKit C API specifications.
    • core/libs/prx/libSceNKWebKit/tests/Base.cpp: Verified TestContext exercises all 6 exports, tests registration deduplication, toggles domain relaxation, verifies null pointer exception throwing via checkThrowsContext, and balances object lifetimes with WKRelease.
    • docs/dev/debt/libSceNKWebKit.md: Verified all 6 resolved NIDs (FTDt5KHGsco, DHbAda1fa1k, rAU9SRsnG3E, ad1-t6xKVtA, 6P04fQkPVec, WxgH0vvD708) were removed from the debt table and properly documented in prose.
    • AGENTS.md: Verified zero comments were added to code files, no hardcoded values or special-cases were introduced, and no untracked/extraneous files were added.
  • Note: the AI-assisted checkbox can stay.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5861547432 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18357#pullrequestreview-5861547432). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-11T15:56:11Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `cbe0d71272`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_base_tests` built cleanly. - **CTest** (`nkwebkit_base`): ``` 1/1 Test #3659: nkwebkit_base .................... Passed 0.03 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/Configuration.hpp`, `core/libs/prx/libSceNKWebKit/src/Context.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - core/libs/prx/libSceNKWebKit/src/Context.cpp: Verified that WKContextRegisterURLSchemeAsEmptyDocument, WKContextRegisterURLSchemeAsSecure, WKContextRegisterURLSchemeAsBypassingContentSecurityPolicy, WKContextRegisterURLSchemeAsCachePartitioned, WKContextRegisterURLSchemeAsCanDisplayOnlyIfCanRequest, and WKContextSetDomainRelaxationForbiddenForURLScheme validate contextRef and urlSchemeRef via NKWebKit::Cast, throwing std::invalid_argument on null or incorrect object types. - core/libs/prx/libSceNKWebKit/src/Configuration.hpp: Verified that NKWebKit::ProcessPool defines the 6 URL scheme containers as default-initialized std::vector<std::string> matching visitedLinks conventions. - core/libs/prx/libSceNKWebKit/src/Context.cpp: Verified that scheme registration deduplicates entries via std::find before push_back, and that WKContextSetDomainRelaxationForbiddenForURLScheme safely adds when forbidden is true and erases only existing entries when forbidden is false without iterator invalidation or out-of-bounds access. - core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp and Export.cpp: Verified that the 6 stub exports were cleanly removed from Export.cpp and InventoryExports.hpp, and declared in WebKitValueExports.hpp with void return type and APS5_VABI calling convention matching WebKit C API specifications. - core/libs/prx/libSceNKWebKit/tests/Base.cpp: Verified TestContext exercises all 6 exports, tests registration deduplication, toggles domain relaxation, verifies null pointer exception throwing via checkThrowsContext, and balances object lifetimes with WKRelease. - docs/dev/debt/libSceNKWebKit.md: Verified all 6 resolved NIDs (FTDt5KHGsco, DHbAda1fa1k, rAU9SRsnG3E, ad1-t6xKVtA, 6P04fQkPVec, WxgH0vvD708) were removed from the debt table and properly documented in prose. - AGENTS.md: Verified zero comments were added to code files, no hardcoded values or special-cases were introduced, and no untracked/extraneous files were added. - Note: the AI-assisted checkbox can stay. Looks Good To Me
MarcZX10 commented 2026-11-12 15:07:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T15:07:17Z.

Review: COMMENTED


Reviewed WKContext URL scheme exports — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

  • Head 002c91d50a5f7d72dda7f1f754c8b64082ffa1f7, base main. No merged-preview check and no build.
  • Read the run folder (description, commits, manifest, file list, diff) and the three house-rule sections.
  • Read head context with repo_read.py: the Cast helper and its null handling, the String type, the extern "C" block of WebKitValueExports.hpp, the ProcessPoolConfiguration header, and the test file's includes.
  • Nothing was built, and no test, convention check or header audit was run here.

Results

Check Result Note
Build and TestContext not run Author-reported only
Repository conventions check not run Author-reported only
Public headers audit not run Author-reported only
Null arguments throw passed Read in code, not run

Findings

Blocking

None.

Non-blocking

  1. core/libs/prx/libSceNKWebKit/tests/Base.cpp:2198-2199 and 2219-2220: the description says the dedupe and the add/remove toggle are verified, but the test never reads the scheme state back. Removing the push_back or the erase would still pass.
  2. core/libs/prx/libSceNKWebKit/tests/Base.cpp:2234-2238 and 2242: both throw checks pass nullptr for the context and the scheme, so the context check throws first. A null scheme with a valid context is never exercised, although the description lists null string arguments.
  3. core/libs/prx/libSceNKWebKit/src/Context.cpp:41, 50, 59, 68 and 77: the same find-then-push block appears five times. A small helper would remove the repetition.

Not verified

  • core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp:353: whether WKContextSetDomainRelaxationForbiddenForURLScheme takes a bool upstream. The debt doc links the upstream WKContext.cpp, which I did not open. If the upstream call has two arguments, a guest call would leave forbidden with an undefined value.
  • Whether the export inventory and docs/dev/debt/libSceNKWebKit.md still agree after the six stubs were removed from Export.cpp and InventoryExports.hpp. The author's headers audit was not re-run.
  • Whether anything reads the new scheme vectors in Configuration.hpp. The diff only writes them, and I did not search the whole tree for readers.
  • Files read: no changed file was read in full at head. Export.cpp, InventoryExports.hpp and docs/dev/debt/libSceNKWebKit.md are too large for the folder, so their changes were read from diff.patch only. The other four (WebKitValueExports.hpp, Configuration.hpp, Context.cpp, tests/Base.cpp) were read from their diff hunks plus the head context above.

To get this to a good state

Nothing is required.

Optional: confirm the upstream bool signature (see Not verified).

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5876760056 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18357#pullrequestreview-5876760056). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-12T15:07:17Z. **Review:** COMMENTED --- # Reviewed WKContext URL scheme exports — no blocking findings Nothing blocks this; the points below are optional. ## What I ran - Head `002c91d50a5f7d72dda7f1f754c8b64082ffa1f7`, base `main`. No merged-preview check and no build. - Read the run folder (description, commits, manifest, file list, diff) and the three house-rule sections. - Read head context with `repo_read.py`: the `Cast` helper and its null handling, the `String` type, the `extern "C"` block of `WebKitValueExports.hpp`, the `ProcessPoolConfiguration` header, and the test file's includes. - Nothing was built, and no test, convention check or header audit was run here. ## Results | Check | Result | Note | |---|---|---| | Build and `TestContext` | not run | Author-reported only | | Repository conventions check | not run | Author-reported only | | Public headers audit | not run | Author-reported only | | Null arguments throw | passed | Read in code, not run | ## Findings **Blocking** None. **Non-blocking** 1. `core/libs/prx/libSceNKWebKit/tests/Base.cpp:2198-2199` and `2219-2220`: the description says the dedupe and the add/remove toggle are verified, but the test never reads the scheme state back. Removing the `push_back` or the `erase` would still pass. 2. `core/libs/prx/libSceNKWebKit/tests/Base.cpp:2234-2238` and `2242`: both throw checks pass `nullptr` for the context and the scheme, so the context check throws first. A null scheme with a valid context is never exercised, although the description lists null string arguments. 3. `core/libs/prx/libSceNKWebKit/src/Context.cpp:41`, `50`, `59`, `68` and `77`: the same find-then-push block appears five times. A small helper would remove the repetition. ## Not verified - `core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp:353`: whether `WKContextSetDomainRelaxationForbiddenForURLScheme` takes a `bool` upstream. The debt doc links the upstream `WKContext.cpp`, which I did not open. If the upstream call has two arguments, a guest call would leave `forbidden` with an undefined value. - Whether the export inventory and `docs/dev/debt/libSceNKWebKit.md` still agree after the six stubs were removed from `Export.cpp` and `InventoryExports.hpp`. The author's headers audit was not re-run. - Whether anything reads the new scheme vectors in `Configuration.hpp`. The diff only writes them, and I did not search the whole tree for readers. - Files read: no changed file was read in full at head. `Export.cpp`, `InventoryExports.hpp` and `docs/dev/debt/libSceNKWebKit.md` are too large for the folder, so their changes were read from `diff.patch` only. The other four (`WebKitValueExports.hpp`, `Configuration.hpp`, `Context.cpp`, `tests/Base.cpp`) were read from their diff hunks plus the head context above. ## To get this to a good state Nothing is required. Optional: confirm the upstream `bool` signature (see Not verified).
MarcZX10 commented 2026-11-14 01:49:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T01:49:49Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: make the new registrations update the scheme state consumed by WebKit.

What I ran

Reviewed head 71846788bbe21b6c889f207adaaca20727125176 using the prepared diff and the pinned repo_read.py source reader. No tests or build commands were run.

Results

Check Result Note
Diff and changed code review passed Scheme handlers and consumers inspected
Tests and build not run No execution environment used

Findings

Blocking

  • core/libs/prx/libSceNKWebKit/src/Context.cpp:41: The new API stores schemes in fields on each ProcessPool, but the scheme predicates in Mime.cpp consult separate global vectors (g_emptyDocSchemes, g_secureSchemes, and others), populated through AddScheme. Nothing in the reviewed code transfers these new per-pool registrations to those vectors. As a result, calling the new exports does not change the scheme behavior they claim to register. Wire the handlers to the state their consumers read, or update those consumers to consult the registered process pool state.

Non-blocking

None.

Not verified

The full text of Export.cpp, include/InventoryExports.hpp, and docs/dev/debt/libSceNKWebKit.md was excluded by the review bundle size rule; their relevant hunks were inspected in diff.patch. The new handlers, their state declarations, API declarations, tests, CMake test discovery, and scheme consumer state in Mime.cpp were read. No build or test execution was performed.

To get this to a good state

Connect each registration handler to the scheme state used by WebKit's scheme predicates, then run the targeted NKWebKit tests and relevant build checks.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5900591076 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18357#pullrequestreview-5900591076). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T01:49:49Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: make the new registrations update the scheme state consumed by WebKit. ## What I ran Reviewed head `71846788bbe21b6c889f207adaaca20727125176` using the prepared diff and the pinned `repo_read.py` source reader. No tests or build commands were run. ## Results | Check | Result | Note | | --- | --- | --- | | Diff and changed code review | passed | Scheme handlers and consumers inspected | | Tests and build | not run | No execution environment used | ## Findings ### Blocking - `core/libs/prx/libSceNKWebKit/src/Context.cpp:41`: The new API stores schemes in fields on each `ProcessPool`, but the scheme predicates in `Mime.cpp` consult separate global vectors (`g_emptyDocSchemes`, `g_secureSchemes`, and others), populated through `AddScheme`. Nothing in the reviewed code transfers these new per-pool registrations to those vectors. As a result, calling the new exports does not change the scheme behavior they claim to register. Wire the handlers to the state their consumers read, or update those consumers to consult the registered process pool state. ### Non-blocking None. ## Not verified The full text of `Export.cpp`, `include/InventoryExports.hpp`, and `docs/dev/debt/libSceNKWebKit.md` was excluded by the review bundle size rule; their relevant hunks were inspected in `diff.patch`. The new handlers, their state declarations, API declarations, tests, CMake test discovery, and scheme consumer state in `Mime.cpp` were read. No build or test execution was performed. ## To get this to a good state Connect each registration handler to the scheme state used by WebKit's scheme predicates, then run the targeted NKWebKit tests and relevant build checks.
MarcZX10 commented 2026-11-15 02:46:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T02:46:55Z.

Review: APPROVED


Reviewed — looks good

The URL scheme exports record deduplicated scheme names on each process pool; I reviewed the changed implementations and focused tests at head 353a5d6057b8f2bb6c115c2bc1cb4230c8f5080a.

What I ran

No build or tests were run. I read the prepared description, commits, manifest, and diff, plus the included changed files Context.cpp, Configuration.hpp, WebKitValueExports.hpp, and tests/ContextUrlSchemes.cpp. The excluded files are Export.cpp, InventoryExports.hpp, and docs/dev/debt/libSceNKWebKit.md; their diff hunks were reviewed, but their full text was not read. files.json was not available through the reader. Repository context read: Types.hpp, Mime.cpp, and CMakeLists.txt.

Results

Check Result Note
Diff and focused source review passed No concrete defect found
Build and tests not run No run evidence available
Excluded full file text not run Diff hunks reviewed

Findings

Blocking

None.

Non-blocking

None.

Not verified

The build, tests, behavior on a physical console, and the complete contents of excluded files were not verified. The PR description reports tests and audits as passed; those are author-reported, not runs performed in this review.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5908709983 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18357#pullrequestreview-5908709983). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T02:46:55Z. **Review:** APPROVED --- # Reviewed — looks good The URL scheme exports record deduplicated scheme names on each process pool; I reviewed the changed implementations and focused tests at head `353a5d6057b8f2bb6c115c2bc1cb4230c8f5080a`. ## What I ran No build or tests were run. I read the prepared description, commits, manifest, and diff, plus the included changed files `Context.cpp`, `Configuration.hpp`, `WebKitValueExports.hpp`, and `tests/ContextUrlSchemes.cpp`. The excluded files are `Export.cpp`, `InventoryExports.hpp`, and `docs/dev/debt/libSceNKWebKit.md`; their diff hunks were reviewed, but their full text was not read. `files.json` was not available through the reader. Repository context read: `Types.hpp`, `Mime.cpp`, and `CMakeLists.txt`. ## Results | Check | Result | Note | |---|---|---| | Diff and focused source review | passed | No concrete defect found | | Build and tests | not run | No run evidence available | | Excluded full file text | not run | Diff hunks reviewed | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The build, tests, behavior on a physical console, and the complete contents of excluded files were not verified. The PR description reports tests and audits as passed; those are author-reported, not runs performed in this review. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-15 18:09:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T18:09:27Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: route the new registration into the registry used by WebCore, or document and implement the intended host ProcessPool-only semantics consistently.

What I ran

Reviewed head 8a61899151102ceee569d0e33de354a98439ec0f; no merged-preview check was run. I read the prepared description, commits, manifest, diff, and the full text of the included changed source, header, and test files. I inspected targeted code in Mime.cpp and the excluded Export.cpp and InventoryExports.hpp through repo_read.py. No tests or build commands were run.

Results

Check Result Note
Source review failed New registration does not reach WebCore's scheme registry
Tests not run Author-reported tests were not run in this review
Build and conventions not run Author-reported checks were not run in this review

Findings

Blocking

  • WKContextSetDomainRelaxationForbiddenForURLScheme adds the scheme only to ProcessPool::domainRelaxationForbiddenSchemes; the existing WebCore registry maintains a separate g_domainRelaxationForbiddenSchemes list, and its setter updates that list. Nothing in the code inspected connects the ProcessPool vector to that registry. Consequently, this API call does not affect the behavior governed by WebCore's registry. Route the new API to that registry (with the required context and synchronization semantics) or provide a demonstrated consumer for the ProcessPool field. Evidence: core/libs/prx/libSceNKWebKit/src/ContextURLSchemes.cpp:45.

Non-blocking

None.

Not verified

No test, build, conventions, or public-header audit was run. The full text of Export.cpp, InventoryExports.hpp, and docs/dev/debt/libSceNKWebKit.md was excluded from the review folder; targeted export and inventory paths were inspected through the reader, but the documentation file was not read. Other behavior outside the targeted code was not verified.

To get this to a good state

Connect this API to the registry that controls WebCore domain-relaxation behavior, then run the relevant tests and checks on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5912091437 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18357#pullrequestreview-5912091437). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T18:09:27Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: route the new registration into the registry used by WebCore, or document and implement the intended host ProcessPool-only semantics consistently. ## What I ran Reviewed head `8a61899151102ceee569d0e33de354a98439ec0f`; no merged-preview check was run. I read the prepared description, commits, manifest, diff, and the full text of the included changed source, header, and test files. I inspected targeted code in `Mime.cpp` and the excluded `Export.cpp` and `InventoryExports.hpp` through `repo_read.py`. No tests or build commands were run. ## Results | Check | Result | Note | |---|---|---| | Source review | failed | New registration does not reach WebCore's scheme registry | | Tests | not run | Author-reported tests were not run in this review | | Build and conventions | not run | Author-reported checks were not run in this review | ## Findings ### Blocking - `WKContextSetDomainRelaxationForbiddenForURLScheme` adds the scheme only to `ProcessPool::domainRelaxationForbiddenSchemes`; the existing WebCore registry maintains a separate `g_domainRelaxationForbiddenSchemes` list, and its setter updates that list. Nothing in the code inspected connects the ProcessPool vector to that registry. Consequently, this API call does not affect the behavior governed by WebCore's registry. Route the new API to that registry (with the required context and synchronization semantics) or provide a demonstrated consumer for the ProcessPool field. Evidence: `core/libs/prx/libSceNKWebKit/src/ContextURLSchemes.cpp:45`. ### Non-blocking None. ## Not verified No test, build, conventions, or public-header audit was run. The full text of `Export.cpp`, `InventoryExports.hpp`, and `docs/dev/debt/libSceNKWebKit.md` was excluded from the review folder; targeted export and inventory paths were inspected through the reader, but the documentation file was not read. Other behavior outside the targeted code was not verified. ## To get this to a good state Connect this API to the registry that controls WebCore domain-relaxation behavior, then run the relevant tests and checks on the updated head.
MarcZX10 commented 2026-11-15 18:39:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T18:39:30Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change; the targeted code inspected is consistent with the stated implementation, and the review remains incomplete because three changed files were not read in full.

What I ran

Reviewed head e1b0abf7e5a16c18231b042d7ce1d5f0afec2bf7 using repo_read.py to read the prepared diff, manifest, included files, and targeted repository context. No build or tests were run.

Results

Check Result Note
Diff and targeted source review passed Signature, registration, and registry forwarding inspected
Build and tests not run No commands executed
Full changed-file review not run Three excluded files were only inspected at relevant ranges

Findings

Blocking

None identified in the code inspected.

Non-blocking

None.

Not verified

Read in full: core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp, core/libs/prx/libSceNKWebKit/src/Configuration.hpp, core/libs/prx/libSceNKWebKit/src/ContextURLSchemes.cpp, and core/libs/prx/libSceNKWebKit/tests/ContextURLSchemes.cpp.

Read only targeted ranges: core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, and core/libs/prx/libSceNKWebKit/src/Mime.cpp. The changed documentation file docs/dev/debt/libSceNKWebKit.md was not read from the repository. No build, unit tests, convention check, public headers audit, or console behavior was verified. The description reports these checks passed, but they were not run in this review.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5912224174 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18357#pullrequestreview-5912224174). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-15T18:39:30Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change; the targeted code inspected is consistent with the stated implementation, and the review remains incomplete because three changed files were not read in full. ## What I ran Reviewed head `e1b0abf7e5a16c18231b042d7ce1d5f0afec2bf7` using `repo_read.py` to read the prepared diff, manifest, included files, and targeted repository context. No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | Signature, registration, and registry forwarding inspected | | Build and tests | not run | No commands executed | | Full changed-file review | not run | Three excluded files were only inspected at relevant ranges | ## Findings ### Blocking None identified in the code inspected. ### Non-blocking None. ## Not verified Read in full: `core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp`, `core/libs/prx/libSceNKWebKit/src/Configuration.hpp`, `core/libs/prx/libSceNKWebKit/src/ContextURLSchemes.cpp`, and `core/libs/prx/libSceNKWebKit/tests/ContextURLSchemes.cpp`. Read only targeted ranges: `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, and `core/libs/prx/libSceNKWebKit/src/Mime.cpp`. The changed documentation file `docs/dev/debt/libSceNKWebKit.md` was not read from the repository. No build, unit tests, convention check, public headers audit, or console behavior was verified. The description reports these checks passed, but they were not run in this review. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-16 07:19:27 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — comments

The implementation records the scheme and forwards it to WebCore, but its null-string test does not cover an empty non-null string and the registry call receives a null string for the tested null input.

What I ran

Reviewed head 78e7106ddaf8c54be667601ffa0773b21d3e6630. No commands or tests were run. Read the prepared description, commits, manifest, and diff; read the full included source for WebKitValueExports.hpp, Configuration.hpp, ContextURLSchemes.cpp, and tests/ContextURLSchemes.cpp, plus targeted reader search results for the referenced WebCore and WTF symbols. Export.cpp, InventoryExports.hpp, and docs/dev/debt/libSceNKWebKit.md were excluded from full-text review because they exceeded the review-folder limit.

Results

Check Result Note
Source review passed Core implementation and tests read
Tests and conventions not run Reported as passing in the PR description

Findings

Blocking

None.

Non-blocking

  • ContextURLSchemes.cpp:50 tests only scheme->null, while the null-string test then calls WebCore's registry with wtfScheme.impl == nullptr (ContextURLSchemes.cpp:55). The test does not assert that null is a supported input or that it is harmless. Consider returning after validation for a null string, or reject it, and test the chosen behavior. The PR description reports null-string error handling, but the test currently invokes the API with a null string without expecting an exception.

Not verified

The full text of Export.cpp, InventoryExports.hpp, and docs/dev/debt/libSceNKWebKit.md was not read. Tests, convention checks, public header audit, build, and console behavior were not run. The test claims in the description are author-reported, not independently confirmed. No other files were marked as excluded in the manifest.

To get this to a good state

Nothing is required. Optional: clarify and test the intended null-string behavior before forwarding it to WebCore.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5916317930 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18357#pullrequestreview-5916317930). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T07:19:27Z. **Review:** COMMENTED --- # Reviewed — comments The implementation records the scheme and forwards it to WebCore, but its null-string test does not cover an empty non-null string and the registry call receives a null string for the tested null input. ## What I ran Reviewed head `78e7106ddaf8c54be667601ffa0773b21d3e6630`. No commands or tests were run. Read the prepared description, commits, manifest, and diff; read the full included source for `WebKitValueExports.hpp`, `Configuration.hpp`, `ContextURLSchemes.cpp`, and `tests/ContextURLSchemes.cpp`, plus targeted reader search results for the referenced WebCore and WTF symbols. `Export.cpp`, `InventoryExports.hpp`, and `docs/dev/debt/libSceNKWebKit.md` were excluded from full-text review because they exceeded the review-folder limit. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Core implementation and tests read | | Tests and conventions | not run | Reported as passing in the PR description | ## Findings ### Blocking None. ### Non-blocking - `ContextURLSchemes.cpp:50` tests only `scheme->null`, while the null-string test then calls WebCore's registry with `wtfScheme.impl == nullptr` (`ContextURLSchemes.cpp:55`). The test does not assert that null is a supported input or that it is harmless. Consider returning after validation for a null string, or reject it, and test the chosen behavior. The PR description reports null-string error handling, but the test currently invokes the API with a null string without expecting an exception. ## Not verified The full text of `Export.cpp`, `InventoryExports.hpp`, and `docs/dev/debt/libSceNKWebKit.md` was not read. Tests, convention checks, public header audit, build, and console behavior were not run. The test claims in the description are author-reported, not independently confirmed. No other files were marked as excluded in the manifest. ## To get this to a good state Nothing is required. Optional: clarify and test the intended null-string behavior before forwarding it to WebCore.

Pull request closed

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!18357
No description provided.