feat(libSceNKWebKit): implement Inspector::ContentSearchUtilities::findStylesheetSourceMapURL #24868

Open
XFlawless1 wants to merge 2 commits from upstream-pr/24868 into main
XFlawless1 commented 2026-11-21 08:13:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XFlawless1 on 2026-11-21T08:13:43Z.


What

Implements Inspector::ContentSearchUtilities::findStylesheetSourceMapURL(const String&), which was a throwing stub.

The pinned ContentSearchUtilities.cpp L178-L205 compiles one fixed Yarr pattern and returns its first capture:

/\*[#@][\040\t]sourceMappingURL=[\040\t]*([^\s'"]*)[\040\t]*\*/

This library has no Yarr, so the export scans for that pattern directly and keeps Yarr's results:

Pattern part Behaviour
match position the leftmost start that matches; a start that fails (for example bad value */) moves on to the next comment
[#@][\040\t] # or the deprecated @, then exactly one space or tab
([^\s'"]*) greedy, then [\040\t]*\*/ the longest run of value code units that is followed by optional spaces or tabs and */, so /*# sourceMappingURL=a*/b*/ gives a*/b, as backtracking does
\s the set from the pinned create_regex_tables: \t–\r, space, U+00A0, U+1680, U+2000–U+200A, U+2028, U+2029, U+202F, U+205F, U+3000, U+FEFF. U+180E, U+0085 and lone surrogates are value characters
Multiline flag no effect: the pattern has no ^ or $

The result is content.substring(start, length) through this library's StringImpl::substring, so it keeps the content's 8-bit or 16-bit width, and an empty value gives the empty string rather than a null one. Null or empty content gives a null string, as the source's early return does. A null String* throws.

The new files are named StylesheetSourceMap* rather than ContentSearchUtilities* because #24214 adds include/ContentSearchUtilitiesExports.hpp.

Tested

Windows 11, MinGW GCC 15.2, Release.

  • nkwebkit_stylesheetsourcemap passes: # and @ markers; tabs and spaces around the value; a data: URL value; the greedy a*/b*/c case; the first of two comments; a failed comment followed by a matching one; /* inside an earlier /*; a newline before */; an empty value returning the shared empty string; two spaces, no space or a wrong marker after /*; lower-case name; single and double quotes; unterminated comments; //# comments; every \s code unit in 8-bit (\v, \f, U+00A0) and 16-bit (U+1680 … U+FEFF) content stopping the value; U+180E, U+200B, U+0085, a lone surrogate and U+FFFF kept in the value; 16-bit content giving a 16-bit result; a new string (refcount one) that is not the content's; the content's refcount unchanged; null and empty content; a null pointer.
  • Negative control: making the value match lazily instead of greedily, rebuilt and run, fails the test at the a*/b*/c check.
  • After a full build, the 430 tests matching nkwebkit|export|inventory|stub|nid|debt|convention|registration give 429 passes (180 nkwebkit_*, test_registration, conventions_pr_template); agc_driver_stencil_ref_export is skipped, unrelated.
  • python tools/check_conventions.py --base origin/main and python tools/debt_fold.py --check pass.

Not tested on a console.

Overlap (python tools/pr_overlap.py --names and --branch feat/nkwebkit-stylesheet-source-map-url):

  • No open PR implements findStylesheetSourceMapURL. #24322, the refactor that splits the large libraries, moves the stub without implementing it.
  • #24214 implements ContentSearchUtilities::textPositionFromOffset. Its stub sits next to this one in Export.cpp and InventoryExports.hpp, so whichever merges second gets a textual conflict there; the resolution keeps both deletions. The new files and the libSceNKWebKit.hpp include line do not collide (checked with git merge-tree).
  • The tool reports no conflicting files or shared exports. It could not compare 36 open PRs that already conflict with main and share Export.cpp, InventoryExports.hpp or libSceNKWebKit.hpp; the --names search covers every open PR's changes and finds findStylesheetSourceMapURL only in #24322.

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

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added stylesheet source-map URL detection for both # and @ comment markers. The detector recognizes URLs in stylesheet comments, allowing tools that use this capability to identify the associated source map. It returns an empty result when the stylesheet is empty or contains no matching source-map comment.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5425876682 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24868). Originally posted by [XFlawless1](https://github.com/XFlawless1) on 2026-11-21T08:13:43Z. --- ### What Implements `Inspector::ContentSearchUtilities::findStylesheetSourceMapURL(const String&)`, which was a throwing stub. The pinned [ContentSearchUtilities.cpp L178-L205](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/JavaScriptCore/inspector/ContentSearchUtilities.cpp#L178-L205) compiles one fixed Yarr pattern and returns its first capture: ``` /\*[#@][\040\t]sourceMappingURL=[\040\t]*([^\s'"]*)[\040\t]*\*/ ``` This library has no Yarr, so the export scans for that pattern directly and keeps Yarr's results: | Pattern part | Behaviour | |---|---| | match position | the leftmost start that matches; a start that fails (for example `bad value */`) moves on to the next comment | | `[#@][\040\t]` | `#` or the deprecated `@`, then exactly one space or tab | | `([^\s'"]*)` greedy, then `[\040\t]*\*/` | the longest run of value code units that is followed by optional spaces or tabs and `*/`, so `/*# sourceMappingURL=a*/b*/` gives `a*/b`, as backtracking does | | `\s` | the set from the pinned [`create_regex_tables`](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/JavaScriptCore/yarr/create_regex_tables#L35): `\t`–`\r`, space, U+00A0, U+1680, U+2000–U+200A, U+2028, U+2029, U+202F, U+205F, U+3000, U+FEFF. U+180E, U+0085 and lone surrogates are value characters | | `Multiline` flag | no effect: the pattern has no `^` or `$` | The result is `content.substring(start, length)` through this library's `StringImpl::substring`, so it keeps the content's 8-bit or 16-bit width, and an empty value gives the empty string rather than a null one. Null or empty content gives a null string, as the source's early return does. A null `String*` throws. The new files are named `StylesheetSourceMap*` rather than `ContentSearchUtilities*` because #24214 adds `include/ContentSearchUtilitiesExports.hpp`. ### Tested Windows 11, MinGW GCC 15.2, Release. - `nkwebkit_stylesheetsourcemap` passes: `#` and `@` markers; tabs and spaces around the value; a `data:` URL value; the greedy `a*/b*/c` case; the first of two comments; a failed comment followed by a matching one; `/*` inside an earlier `/*`; a newline before `*/`; an empty value returning the shared empty string; two spaces, no space or a wrong marker after `/*`; lower-case name; single and double quotes; unterminated comments; `//#` comments; every `\s` code unit in 8-bit (`\v`, `\f`, U+00A0) and 16-bit (U+1680 … U+FEFF) content stopping the value; U+180E, U+200B, U+0085, a lone surrogate and U+FFFF kept in the value; 16-bit content giving a 16-bit result; a new string (refcount one) that is not the content's; the content's refcount unchanged; null and empty content; a null pointer. - Negative control: making the value match lazily instead of greedily, rebuilt and run, fails the test at the `a*/b*/c` check. - After a full build, the 430 tests matching `nkwebkit|export|inventory|stub|nid|debt|convention|registration` give 429 passes (180 `nkwebkit_*`, `test_registration`, `conventions_pr_template`); `agc_driver_stencil_ref_export` is skipped, unrelated. - `python tools/check_conventions.py --base origin/main` and `python tools/debt_fold.py --check` pass. Not tested on a console. **Overlap** (`python tools/pr_overlap.py --names` and `--branch feat/nkwebkit-stylesheet-source-map-url`): - No open PR implements `findStylesheetSourceMapURL`. #24322, the refactor that splits the large libraries, moves the stub without implementing it. - #24214 implements `ContentSearchUtilities::textPositionFromOffset`. Its stub sits next to this one in `Export.cpp` and `InventoryExports.hpp`, so whichever merges second gets a textual conflict there; the resolution keeps both deletions. The new files and the `libSceNKWebKit.hpp` include line do not collide (checked with `git merge-tree`). - The tool reports no conflicting files or shared exports. It could not compare 36 open PRs that already conflict with `main` and share `Export.cpp`, `InventoryExports.hpp` or `libSceNKWebKit.hpp`; the `--names` search covers every open PR's changes and finds `findStylesheetSourceMapURL` only in #24322. ### 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 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Added stylesheet source-map URL detection for both `#` and `@` comment markers. The detector recognizes URLs in stylesheet comments, allowing tools that use this capability to identify the associated source map. It returns an empty result when the stylesheet is empty or contains no matching source-map comment. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
PrivacyOnion commented 2026-11-21 08:15:48 +00:00 (Migrated from github.com)

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

Review: APPROVED


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

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_stylesheetsourcemap_tests built cleanly.
  • CTest (nkwebkit_stylesheetsourcemap):
    1/1 Test #4850: nkwebkit_stylesheetsourcemap .....   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/libSceNKWebKit.hpp, core/libs/prx/libSceNKWebKit/src/StylesheetSourceMap.cpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified that _ZN9Inspector22ContentSearchUtilities26findStylesheetSourceMapURLERKN3WTF6StringE validates null input (content == nullptr) and throws std::invalid_argument in accordance with libSceNKWebKit C++ ABI conventions.
    • Verified null or empty content->impl returns an empty WTF::String without dereferencing or searching.
    • Verified string parsing in MatchSourceMapComment, HasAt, SkipBlanks, and IsPatternSpace adheres to the upstream regex /\[#@][\040\t]sourceMappingURL=[\040\t]([^\s'"])[\040\t]\*/ and JavaScriptCore Yarr whitespace definitions.
    • Verified backwards search loop termination for trailing whitespace and comment closer '*/' correctly handles zero-length and sub-slice matches without unsigned underflow (for loop decrements down to valueStart).
    • Verified docs/dev/debt/changes fragment correctly registers debt removal and functional replacement, and tests cover ASCII, Latin-1, UTF-16, edge delimiters, and invalid inputs.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004068389 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24868#pullrequestreview-6004068389). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-21T08:15:48Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `f6c045b98f`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_stylesheetsourcemap_tests` built cleanly. - **CTest** (`nkwebkit_stylesheetsourcemap`): ``` 1/1 Test #4850: nkwebkit_stylesheetsourcemap ..... 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/libSceNKWebKit.hpp`, `core/libs/prx/libSceNKWebKit/src/StylesheetSourceMap.cpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified that _ZN9Inspector22ContentSearchUtilities26findStylesheetSourceMapURLERKN3WTF6StringE validates null input (content == nullptr) and throws std::invalid_argument in accordance with libSceNKWebKit C++ ABI conventions. - Verified null or empty content->impl returns an empty WTF::String without dereferencing or searching. - Verified string parsing in MatchSourceMapComment, HasAt, SkipBlanks, and IsPatternSpace adheres to the upstream regex /\\*[#@][\\040\\t]sourceMappingURL=[\\040\\t]*([^\\s'\"]*)[\\040\\t]*\\*/ and JavaScriptCore Yarr whitespace definitions. - Verified backwards search loop termination for trailing whitespace and comment closer '*/' correctly handles zero-length and sub-slice matches without unsigned underflow (for loop decrements down to valueStart). - Verified docs/dev/debt/changes fragment correctly registers debt removal and functional replacement, and tests cover ASCII, Latin-1, UTF-16, edge delimiters, and invalid inputs. Looks Good To Me
MarcZX10 commented 2026-11-21 08:28:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T08:28:16Z.

Review: APPROVED


Reviewed — looks good

The implementation follows the described source map matching behavior, adds focused coverage, and the inspected integration points include the new implementation and test through the existing CMake globs.

What I ran

Reviewed head f6c045b98fde032c6a679ccb0e6da12c5b0a35dd. I used repo_read.py to inspect the prepared description, commits, diff, manifest, changed source and test files, the library header, relevant legacy-file ranges, the CMake configuration, and the string ABI/substring implementation. No build or test commands were run by me; reported test runs are author-supplied.

Results

Check Result Note
Changed behavior and edge cases passed Implementation and added tests inspected
Build and tests not run Description reports Windows test runs
Console behavior not run Description says no console test

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

I did not run the reported Windows build, tests, convention checks, or debt check, and I did not test console behavior. The full text of Export.cpp and InventoryExports.hpp was excluded by the review bundle; I read the affected ranges from the pinned head instead. Other changed files read: StylesheetSourceMapExports.hpp, libSceNKWebKit.hpp, StylesheetSourceMap.cpp, tests/StylesheetSourceMap.cpp, and the debt change record. All six changed files marked reviewed in the manifest were read, with the two excluded files inspected at the relevant ranges.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004144618 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24868#pullrequestreview-6004144618). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T08:28:16Z. **Review:** APPROVED --- # Reviewed — looks good The implementation follows the described source map matching behavior, adds focused coverage, and the inspected integration points include the new implementation and test through the existing CMake globs. ## What I ran Reviewed head `f6c045b98fde032c6a679ccb0e6da12c5b0a35dd`. I used `repo_read.py` to inspect the prepared description, commits, diff, manifest, changed source and test files, the library header, relevant legacy-file ranges, the CMake configuration, and the string ABI/substring implementation. No build or test commands were run by me; reported test runs are author-supplied. ## Results | Check | Result | Note | |---|---|---| | Changed behavior and edge cases | passed | Implementation and added tests inspected | | Build and tests | not run | Description reports Windows test runs | | Console behavior | not run | Description says no console test | ## Findings ### Blocking None. ### Non-blocking None. ## Sources - [Implementation](https://github.com/boykopovar/AnyPS5/blob/f6c045b98fde032c6a679ccb0e6da12c5b0a35dd/core/libs/prx/libSceNKWebKit/src/StylesheetSourceMap.cpp) - [Tests](https://github.com/boykopovar/AnyPS5/blob/f6c045b98fde032c6a679ccb0e6da12c5b0a35dd/core/libs/prx/libSceNKWebKit/tests/StylesheetSourceMap.cpp) - [CMake integration](https://github.com/boykopovar/AnyPS5/blob/f6c045b98fde032c6a679ccb0e6da12c5b0a35dd/core/libs/prx/libSceNKWebKit/CMakeLists.txt) ## Not verified I did not run the reported Windows build, tests, convention checks, or debt check, and I did not test console behavior. The full text of `Export.cpp` and `InventoryExports.hpp` was excluded by the review bundle; I read the affected ranges from the pinned head instead. Other changed files read: `StylesheetSourceMapExports.hpp`, `libSceNKWebKit.hpp`, `StylesheetSourceMap.cpp`, `tests/StylesheetSourceMap.cpp`, and the debt change record. All six changed files marked `reviewed` in the manifest were read, with the two excluded files inspected at the relevant ranges. ## To get this to a good state Nothing is required.
PrivacyOnion commented 2026-11-21 09:30:35 +00:00 (Migrated from github.com)

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

Review: APPROVED


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

  • Conventions: tools/check_conventions.py passed.
  • Build: nkwebkit_stylesheetsourcemap_tests built cleanly.
  • CTest (nkwebkit_stylesheetsourcemap):
    1/1 Test #4856: nkwebkit_stylesheetsourcemap .....   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/libSceNKWebKit.hpp, core/libs/prx/libSceNKWebKit/src/StylesheetSourceMap.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/StylesheetSourceMap.cpp: Verified null content check throws std::invalid_argument before dereferencing, and empty or null impl returns a null String() cleanly
    • core/libs/prx/libSceNKWebKit/src/StylesheetSourceMap.cpp: Verified string matching logic, HasAt bounds checking (position > view.length || view.length - position < text.size()), and Yarr whitespace codepoint definitions in IsPatternSpace match upstream JavaScriptCore specifications
    • core/libs/prx/libSceNKWebKit/src/StylesheetSourceMap.cpp: Verified backwards search loop for trailing whitespace and comment closer */ decrements safely down to valueStart without unsigned underflow
    • core/libs/prx/libSceNKWebKit/tests/StylesheetSourceMap.cpp: Verified thorough test coverage for ASCII, Latin-1, UTF-16, malformed delimiters, empty/null inputs, and reference counting checks
    • docs/dev/debt/changes/feat-nkwebkit-stylesheet-source-map-url.md and InventoryExports.hpp: Verified proper debt tracking fragment addition, removal of the NotImplemented stub, and compliance with AGENTS.md conventions

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004401047 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24868#pullrequestreview-6004401047). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-21T09:30:35Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `0874e2372c`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `nkwebkit_stylesheetsourcemap_tests` built cleanly. - **CTest** (`nkwebkit_stylesheetsourcemap`): ``` 1/1 Test #4856: nkwebkit_stylesheetsourcemap ..... 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/libSceNKWebKit.hpp`, `core/libs/prx/libSceNKWebKit/src/StylesheetSourceMap.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/StylesheetSourceMap.cpp: Verified null content check throws std::invalid_argument before dereferencing, and empty or null impl returns a null String() cleanly - core/libs/prx/libSceNKWebKit/src/StylesheetSourceMap.cpp: Verified string matching logic, HasAt bounds checking (position > view.length || view.length - position < text.size()), and Yarr whitespace codepoint definitions in IsPatternSpace match upstream JavaScriptCore specifications - core/libs/prx/libSceNKWebKit/src/StylesheetSourceMap.cpp: Verified backwards search loop for trailing whitespace and comment closer */ decrements safely down to valueStart without unsigned underflow - core/libs/prx/libSceNKWebKit/tests/StylesheetSourceMap.cpp: Verified thorough test coverage for ASCII, Latin-1, UTF-16, malformed delimiters, empty/null inputs, and reference counting checks - docs/dev/debt/changes/feat-nkwebkit-stylesheet-source-map-url.md and InventoryExports.hpp: Verified proper debt tracking fragment addition, removal of the NotImplemented stub, and compliance with AGENTS.md conventions Looks Good To Me
MarcZX10 commented 2026-11-21 09:34:39 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — no blocking findings

The implementation matches the documented fixed-pattern behavior in the inspected source; review was limited because two changed files were excluded and no checks were run here.

What I ran

Reviewed head 0874e2372cffcf79f016e07179605c00b752e232 using the prepared diff and pinned repository reader. No build or tests were run; the test results in the PR description are author-reported.

Results

Check Result Note
Source review passed Implementation and included changed files read
Build and tests not run Reported results not independently verified

Findings

Blocking

None identified in the files read.

Non-blocking

None.

Not verified

Export.cpp and include/InventoryExports.hpp were excluded from the review folder and not read. Their diff hunks are present in the prepared patch. The implementation was not compared against a console module; console behavior and author-reported Windows build and tests were not verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004420368 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24868#pullrequestreview-6004420368). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T09:34:39Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The implementation matches the documented fixed-pattern behavior in the inspected source; review was limited because two changed files were excluded and no checks were run here. ## What I ran Reviewed head `0874e2372cffcf79f016e07179605c00b752e232` using the prepared diff and pinned repository reader. No build or tests were run; the test results in the PR description are author-reported. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Implementation and included changed files read | | Build and tests | not run | Reported results not independently verified | ## Findings ### Blocking None identified in the files read. ### Non-blocking None. ## Not verified `Export.cpp` and `include/InventoryExports.hpp` were excluded from the review folder and not read. Their diff hunks are present in the prepared patch. The implementation was not compared against a console module; console behavior and author-reported Windows build and tests were not verified. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 12:46:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T12:46:34Z.

Review: COMMENTED


Built the branch’s changed sources and ran StylesheetSourceMap on Linux against the existing runtime libraries. The test run passed and covered both comment markers, whitespace around the URL, and selection of the first matching comment.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6170084837 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24868#pullrequestreview-6170084837). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T12:46:34Z. **Review:** COMMENTED --- Built the branch’s changed sources and ran `StylesheetSourceMap` on Linux against the existing runtime libraries. The test run passed and covered both comment markers, whitespace around the URL, and selection of the first matching comment. AI-assisted: yes.
MarcZX10 commented 2026-12-04 12:57:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T12:57:41Z.

Review: COMMENTED


Reviewed — no blocking findings

The inspected changes show no verified blocking defect; this remains a comment because the pinned reader could not provide further source context after its read-only log write failed.

What I ran

Reviewed head 0c1272a612772845a9c4a0a4fa50a4f39ce5608f. Inspected the prepared diff and searched the pinned source for findStylesheetSourceMapURL; no build or tests were run. The author reports Windows build and test results, which I did not verify.

Results

Check Result Note
Changed hunks passed All seven changed files inspected
Pinned source search passed Symbol references returned
Further reader context failed Reader log could not be written
Build and tests not run Author-reported results only

Negative control

Not run by me. The author reports that a greedy-to-lazy change failed the a*/b*/c test.

Findings

Blocking

None in the inspected changes.

Non-blocking

None.

Sources

Not verified

The changed hunks were inspected for all seven files in files.json. Full text was available in the review folder for six files; Export.cpp was excluded there because it was too large, so I reviewed its diff only. I did not read the full text of the other included existing files. Further pinned-head context, build integration, and tests were not verified because subsequent reader calls failed when the reader could not write its log. Console behavior was not tested; the author also reports it was not tested.

To get this to a good state

Nothing is required. Optional: verify the surrounding build integration and call sites once the pinned reader can provide further context.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6189356451 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24868#pullrequestreview-6189356451). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-12-04T12:57:41Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The inspected changes show no verified blocking defect; this remains a comment because the pinned reader could not provide further source context after its read-only log write failed. ## What I ran Reviewed head `0c1272a612772845a9c4a0a4fa50a4f39ce5608f`. Inspected the prepared diff and searched the pinned source for `findStylesheetSourceMapURL`; no build or tests were run. The author reports Windows build and test results, which I did not verify. ## Results | Check | Result | Note | |---|---|---| | Changed hunks | passed | All seven changed files inspected | | Pinned source search | passed | Symbol references returned | | Further reader context | failed | Reader log could not be written | | Build and tests | not run | Author-reported results only | ## Negative control Not run by me. The author reports that a greedy-to-lazy change failed the `a*/b*/c` test. ## Findings ### Blocking None in the inspected changes. ### Non-blocking None. ## Sources - [Implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/0c1272a612772845a9c4a0a4fa50a4f39ce5608f/core/libs/prx/libSceNKWebKit/src/StylesheetSourceMap.cpp) - [Tests at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/0c1272a612772845a9c4a0a4fa50a4f39ce5608f/core/libs/prx/libSceNKWebKit/tests/StylesheetSourceMap.cpp) ## Not verified The changed hunks were inspected for all seven files in `files.json`. Full text was available in the review folder for six files; `Export.cpp` was excluded there because it was too large, so I reviewed its diff only. I did not read the full text of the other included existing files. Further pinned-head context, build integration, and tests were not verified because subsequent reader calls failed when the reader could not write its log. Console behavior was not tested; the author also reports it was not tested. ## To get this to a good state Nothing is required. Optional: verify the surrounding build integration and call sites once the pinned reader can provide further context.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/24868:upstream-pr/24868'
git switch 'upstream-pr/24868'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/24868'
git switch 'upstream-pr/24868'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/24868'
git switch 'upstream-pr/24868'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/24868'
git switch 'main'
git merge --squash 'upstream-pr/24868'
git switch 'main'
git merge --ff-only 'upstream-pr/24868'
git switch 'main'
git merge 'upstream-pr/24868'
git push origin 'main'
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!24868
No description provided.