Repository navigation
Conversation
Progress report (0eba5db → a0d7600)📈 System libraries: 26.76% (+0.02%, +9 implemented functions) ✅ 9 implemented
Changed libraries (implemented exports)
|
|
Thanks for this series. A placement question on this one, the same as on #14921 (checked at
These follow the pinned PS5 WebKit source ( |
7522bba to
7548730
Compare
|
Thanks. It was written from the pinned source, deliberately, since that source is the behaviour authority this series cites. So it is adapted, not independent, and your reading of the matched sequence is correct. I've asked on #14921 which integration you prefer: in-tree with Apple's BSD notice in its own file (as |
7548730 to
b53192d
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.
|
b53192d to
9ca8369
Compare
9ca8369 to
33db787
Compare
6cdc306 to
a0d7600
Compare
What
All the
WTF::URLmutators wereNotImplementedstubs, so guest WebKit code threw as soon as it edited a URL. Eight of them now follow the pinned PS5 WebKit 11.xURL.cpp:setProtocol,setHost,setHostAndPort,setUser,removeCredentials,setFragmentIdentifier,setQueryandsetPath. Each one rebuilds the string and re-parses it with the parser from #14928, so this adds no new parsing code and leaves the guestURLlayout unchanged.They follow the pinned bodies, and their early returns, exactly. These are more permissive than current WebKit:
setProtocolreturns false only when the scheme isn't valid (URLParser.cpp:716-735). It returns true but changes nothing when switching tofilewith credentials or a port, or when starting from afileURL without a host. It doesn't refuse switches between special and non-special schemes.setUserandsetPathcheck only that the URL is valid. There are no opaque-path or cannot-have-credentials checks at this revision.setHostAndPortsplits at the last colon and drops a port it can't parse before re-parsing. As in the source, an IPv6 host without a final port can make the URL invalid.setUserandsetPathpercent-encode as lenient UTF-8, as the source does.setFragmentIdentifierre-parses with the parser's(URLTextEncoding*)-1mode, which keeps trailing spaces and controls.The hosts and encodings the parser doesn't support yet still throw, as listed in its debt entry.
Adapted source. The eight setters follow the pinned
URL.cppsetters (:399-725): each one rebuilds the URL string and reparses it, and the cut points are the behaviour. They are now in their own file,src/WtfURLSetters.cpp, under a "Derived from" line and the upstream notice for each pinned source file, verbatim apart from trailing whitespace, the form #13766 uses. The parser they reparse through is #14926's, which is independent.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, #14607, #15498 and #15853 change nearby lines in the same files; whichever merges later keeps both sides. The only exports it shares are with #14930, in the same stack. #13992 implementsremoveQueryAndFragmentIdentifierand the read accessors, which this PR doesn't touch.Tested
Debian 12, GCC 12.2, Linux 6.18, Release, at the head
a0d7600601b67d926223f8e93614f2688c54587a, 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.nkwebkit_wtftable cases check the URL string and the accessors after each setter. They cover:setProtocol.TestWebKitAPI/Tests/WTF/URL.cpp), run through a probe outside the repository: 13 match, 0 mismatch. QA repeated this independently with its own build.tools/progress.py: the eight setters count as implemented (libSceNKWebKit 1321, against 1313 with feat(libSceNKWebKit): parse file and non-special WTF URLs #14928's stack).tools/check_conventions.pypasses.6cdc3061fca653eebdc4dde70ed2b9fca7f35676. 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)