feat(libSceNKWebKit): implement WebCore::PasteboardWriterData construction, destruction and isEmpty #20314
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20314"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by RiverWhy on 2026-11-15T01:06:37Z.
What
Implements the constructor (
C1,C2), destructor (D1,D2) andisEmptyofWebCore::PasteboardWriterData, following the pinned PasteboardWriterData.h and PasteboardWriterData.cpp, where the constructor and destructor are= defaultandisEmptyis!m_plainText && !m_url && !m_webContent.The class is three
std::optionalmembers. On a port that is neither Cocoa nor GTK,WebContentis empty andURLDatais aURLand a title.PasteboardWriterDataAbi.hpppins the layout withstatic_asserts, measured on the pinned header compiled against a JSCOnly build of the same tree:m_plainText(bool,String)m_url(URL,String title)m_webContent(empty)The object is 88 bytes. The constructor only clears the engaged bytes, as
std::optional's does. The destructor destroys the engaged members in reverse declaration order: the title and the URL's string, then the plain text.WebContent's own destructor was already a no-op export. A null object throws.Debt: a fragment,
docs/dev/debt/changes/feat-nkwebkit-pasteboard-writer-data.md, adds the entry and removes the 5 inventory rows. #19704, #20296 and #20304 add includes on the same line oflibSceNKWebKit.hpp.Tested
Linux Mint 22.3:
nkwebkit_pasteboardwriterdatatest: both constructors over a poisoned buffer,isEmptywith each member engaged, destruction releasing exactly the engaged strings (reference counts restored), and null refusals.ctest -R nkwebkit: 87 tests passed.progress.py --module libSceNKWebKit: 3072 to 3077 implemented.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T02:03:25Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
6748cbaa04:tools/check_conventions.pypassed;git diff --checkclean.nkwebkit_pasteboardwriterdata_testsbuilt cleanly.nkwebkit_pasteboardwriterdata):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T03:25:11Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the implementation and its focused tests support the described behavior, with console ABI validation still unconfirmed.
What I ran
Reviewed head
de3602aad45bdc8e81fce3e5b2a2f8591c29c7f5. I read the prepared description, commits, manifest and diff, then the changed implementation, ABI layout, exports, tests and relevant registration context throughrepo_read.py. I ran no tests or build commands. The PR description reports 87nkwebkittests passing on Linux Mint 22.3; that result was not independently verified.Results
Findings
Blocking
None.
Non-blocking
Not verified
Export.cpp,InventoryExports.hpp, anddocs/dev/debt/libSceNKWebKit.mdwere excluded from the prepared full-text bundle because of size; relevant export and inventory contexts were read through the pinned reader. No other repository files were read. No build, test, console run, or console ABI comparison was performed.To get this to a good state
Nothing is required. Optional: verify the ABI layout against a console module when available.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T05:12:35Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
3d508875d4:tools/check_conventions.pypassed;git diff --checkclean.nkwebkit_pasteboardwriterdata_testsbuilt cleanly.nkwebkit_pasteboardwriterdata):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T06:07:36Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
ecc2370f0a:tools/check_conventions.pypassed;git diff --checkclean.nkwebkit_pasteboardwriterdata_testsbuilt cleanly.nkwebkit_pasteboardwriterdata):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T07:19:02Z.
Review: APPROVED
Reviewed — looks good
The reviewed head is
ecc2370f0a864bbd483c9dcdbff3904033fdf46d; the inspected implementation and ABI layout support the described behavior, with no verified blocking defect.What I ran
No programmatic checks were run. I reviewed the prepared diff and the changed implementation, ABI declarations, tests, debt fragment, and relevant export inventory at the pinned head.
Results
Findings
Blocking
None in the code reviewed.
Non-blocking
None.
Not verified
The complete text of
core/libs/prx/libSceNKWebKit/Export.cppandcore/libs/prx/libSceNKWebKit/include/InventoryExports.hppwas not read; only the relevant export and inventory hunks were inspected. No build or tests were run. The author reports Linux Mint tests, but those results were not independently verified.Files read:
review/description.md,review/commits.md,review/manifest.json,review/README.md,review/diff.patch;core/libs/prx/libSceNKWebKit/Export.cpp(relevant range),core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp(relevant range),core/libs/prx/libSceNKWebKit/include/PasteboardWriterDataExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/src/PasteboardWriterData.cpp,core/libs/prx/libSceNKWebKit/src/PasteboardWriterDataAbi.hpp,core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp, andcore/libs/prx/libSceNKWebKit/tests/PasteboardWriterData.cppplus the changed debt fragment. Excluded from full-file review:Export.cppandInventoryExports.hppdue to size.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T17:34:37Z.
Review: APPROVED
Reviewed — looks good
The implementation appears consistent with the stated optional-member layout and lifecycle; the source review is complete, but no tests or build checks were run here.
What I ran
Reviewed head
4109e035adc8c8880ef9b8f82bd14f8dfc77e352usingrepo_read.pythrough the prepared review reader. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The changed
Export.cppandInventoryExports.hppwere excluded as too large for the review folder and were not read. Build and test results were not independently verified. The description reports 87nkwebkittests passing and progress changing from 3072 to 3077.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T05:55:58Z.
Review: COMMENTED
Reviewed — no blocking findings
The implementation’s reviewed constructor, destructor, and
isEmptylogic matches the described optional-member behavior; tests and build checks were not run in this review.What I ran
Reviewed head
699fb74bdef2e5bf588f1b15b11af0eea11472bcusing the prepared diff andrepo_read.pyfor targeted source reads. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full text of
core/libs/prx/libSceNKWebKit/Export.cppandcore/libs/prx/libSceNKWebKit/include/InventoryExports.hppwas excluded by the review folder size rule and not read through the reader. The CMake test registration was located but not read in full; no build, tests, or physical-console behavior were verified. The test results in the PR description were not run by this review.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T12:44:55Z.
Review: COMMENTED
Reviewed — comments
The new
PasteboardWriterDataimplementation and ABI layout were inspected at head70b7b182d6e1fc805b1f8ed6ab17392c27b4ac41; the changedExport.cppwas not fully verified, and no checks were run.What I ran
repo_read.py.Results
isEmpty, and ABI layout inspectedFindings
Blocking
None verified in the inspected implementation.
Non-blocking
None.
Not verified
The complete changed-file review is incomplete:
core/libs/prx/libSceNKWebKit/Export.cppwas not fully read, and I did not read every changed file listed in the manifest. The patch removes the five fallback definitions from that file, but their replacement registration and linkage were not fully confirmed. Tests reported in the PR description were not run.To get this to a good state
Nothing is required. Optional: confirm the new definitions are linked in the build and run the reported test suite.
Files read:
description.md,commits.md,manifest.json,diff.patch, and the changed implementation excerpts. Changed files not fully read:Export.cpp,InventoryExports.hpp,PasteboardWriterDataExports.hpp,libSceNKWebKit.hpp,PasteboardWriterData.cpp,PasteboardWriterDataAbi.hpp,tests/PasteboardWriterData.cpp, and the debt fragment.Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T12:03:09Z.
Review: COMMENTED
Compiled the changed
PasteboardWriterDataimplementation with the branch’s fixture against the existing Linux PRXs. It passed the lifecycle, emptiness, and string-reference accounting assertions.AI-assisted: yes.
Pull request closed