Repository navigation
Conversation
Progress report (0eba5db → 79dfb9e)📈 System libraries: 26.75% (+0.01%, +4 implemented functions) ✅ 4 implemented
Changed libraries (implemented exports)
|
50e139e to
7b9ea80
Compare
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
BunnyFl
left a comment
There was a problem hiding this comment.
This review covers this PR's own commit (7b9ea80) on top of #14928. I compared it with the pinned URL.cpp, UUID.cpp and StringView.h at 80f77e94.
What I compared with the source
truncatedForUseAsBaseisURL(m_string.left(m_pathAfterLastSlash))(:267-270), parsed with no base and the default encoding, as the one-argument constructor does.- A null string stays null.
- An invalid URL (
pathAfterLastSlash0) re-parses""and gives an invalid URL with an empty string, matchingleft(0).
fakeURLWithRelativePartgiveswebkit-fake-url://<uuid>/<part>. The masks matchconvertRandomUInt128ToUUIDVersion4: the high half is& ...ffff0fff | 0x4000and the low half& 0x3fff... | 0x8000.... That puts4at position 14 and8-bat position 19, and the test checks both.fileURLWithFileSystemPathgivesfile://+ (/unless the path already starts with one) +escapePathWithoutCopying. That function percent-encodes the UTF-8 bytes of?,#and non-ASCII characters, in uppercase hex (:553-575, :692-698).tryGetUTF8defaults toLenientConversion(StringView.h:128), so a lone surrogate becomes%ED%A0%80rather than failing. Mode 0 here does the same, and theu"/\xD800"case pins it.- A backslash path like
C:\a\bcomes out asfile:///C:/a/bthrough the file parser, as upstream's would.
Tests run (Windows 11, WinLibs GCC 15.2.0, Release; head 7b9ea80 merged onto main 93dbd0f)
nkwebkit_wtfpasses.- Negative control: with #14928's
WtfString.cpp,Export.cpp,InventoryExports.hppandWtfExports.hpp, the test doesn't build, because the three exports still have the placeholderintsignatures there. check_conventions.py --base upstream/mainpasses.
LGTM.
|
Thanks, @BunnyFl. One cross-PR note on the lenient UTF-8 point: #14948 corrects the shared lenient converter so that a non-final unpaired surrogate becomes U+FFFD, as the pinned |
7b9ea80 to
fe03d3d
Compare
fe03d3d to
37ec334
Compare
6bbdfaf to
79dfb9e
Compare
What
Three
WTF::URLhelpers that WebKit uses for base URLs, fake URLs and file URLs wereNotImplementedstubs. They now follow the pinned PS5 WebKit 11.xURL.cpp, using the parser from #14928:truncatedForUseAsBase()re-parses the URL cut at the last path slash.fakeURLWithRelativePart(StringView)builds awebkit-fake-url://URL with a version 4 UUID, in the canonical lowercase form ofUUID.cpp. It draws the UUID from the existingcryptographicallyRandomValuesexport.fileURLWithFileSystemPath(StringView)builds afile://URL and escapes the path asescapePathWithoutCopyingdoes.The 40-byte
URLresults are returned through the caller's return buffer, as the pinned headers specify. Guest layouts are unchanged. Hosts and encodings the parser doesn't support yet still throw.lastPathComponent,strippedForUseAsReferrerandstringCenterEllipsizedToLengthare left to #14387 and #14479, which implement them.Adapted source: none. The path escaping in
fileURLWithFileSystemPathis now written independently withstd::to_chars, instead of repeating the loop from #14929'ssetPath.tools/pr_overlap.pyon this head, withmainat0eba5db30d: no other open PR changes these exports or adds the same files. For the PRs it couldn't compare because they no longer merge withmain, GitHub's file lists show none of them changing these exports either. #13992, #14391 and #15853 change nearby lines in the same files; whichever merges later keeps both sides. The only exports it shares are with #14929, in the same stack.Tested
Debian 12, GCC 12.2, Linux 6.18, Release, at the head
79dfb9e7edfa595d0a1b66c4ed7e3a59027fb87f, which is on #14928's headba1525f76584b56d14c6ed730496323b4350d5ae. No local changes.guest_nkwebkit_dates,guest_nkwebkit_numbers,nkwebkit_base,nkwebkit_config,nkwebkit_constants,nkwebkit_fastbitvector,nkwebkit_jsc,nkwebkit_palsessionid,nkwebkit_preferences,nkwebkit_resourceresponse,nkwebkit_webcoregeometry,nkwebkit_wtf,guest_nkwebkit_urlsandpublic_headerspass. The newnkwebkit_wtfcases cover:tools/progress.py: the three exports count as implemented (libSceNKWebKit 1316, against 1313 with feat(libSceNKWebKit): parse file and non-special WTF URLs #14928).tools/check_conventions.pypasses.6bbdfaf75ad94112628e3c189e2cf84a13ce048c. It is AnyPS5'sBuildworkflow, dispatched in the author's fork withselect=true: the branch merged intomainatb11c7bf84f5d2f636ff60166cc3371bd071e24d5, built onwindows-latestwith WinLibs GCC 15.2 (MinGW-w64, UCRT). All 1390 selected tests passed, none skipped, including the twelve NKWebKit tests,public_headersandpatched_libraries. The run started before the fork had a test graph for thismain, so it selected more tests than usual. A fork-internal pull request existed only to give the workflow a number. The rebase ontomainat0eba5db30d8a3d03789e52e5c1a9ff853e4e33e4after feat(libSceNKWebKit): implement PAL::SessionID generators #15911 changed onlydocs/dev/debt/libSceNKWebKit.md, sogit range-diffshows the code and tests under test are the same as at that run.Not built or run: macOS. No title or homebrew was run.
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)