feat(libSceNKWebKit): implement WTF::aboutBlankURL and aboutSrcDocURL #17726
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17726"
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 AlexWhitehouse on 2026-11-09T13:06:06Z.
What
Two libSceNKWebKit exports threw
not implemented:WTF::aboutBlankURL()(_ZN3WTF13aboutBlankURLEv, NID3nmBMeZtd+Y);WTF::aboutSrcDocURL()(_ZN3WTF14aboutSrcDocURLEv, NIDMw84qLwnIs4).This PR implements them from the PS5 WebKit tree the other NKWebKit ports use, 80f77e94. In
URL.cpplines 920–941, each returns a reference to a URL that is built once from a static string (about:blank,about:srcdoc) by the absolute-URL parsing constructor, and is never destroyed.WtfAbi::URLlayout, which matchesURL.hlines 229–250: the String, thenm_isValid,m_protocolIsInHTTPFamily,m_cannotBeABaseURL,m_portLengthandm_schemeEndpacked into one word, then seven offsets.0x145: valid, not HTTP-family, cannot-be-a-base-URL, port length 0, scheme end 5. It comes from the non-special-scheme branch,URLParser.cpplines 1242–1263;about:blankand 12 forabout:srcdoc, set by URL completion (lines 2001–2027).StringImpls with WebKit's static-string reference count, so they are never freed. Their hash is computed through the existingStringImpl::hashSlowCase.Tested
nkwebkit_wtfabouturlscovers:main, the test fails with_ZN3WTF13aboutBlankURLEv not implementedand_ZN3WTF14aboutSrcDocURLEv not implemented;nkwebkit_wtfabouturls,nkwebkit_wtfandpublic_headerspass.nkwebkit_wtfabouturlsandnkwebkit_wtfpass at ba6b0a81ad, with no compiler warnings in the changed files.about:blank's path end from 11 to 10 fails the field check.python3 tools/check_conventions.py --base origin/main: all checks passed.python3 tools/pr_overlap.py: no open PR implements these exports.dumpCharacternext toaboutBlankURLinExport.cpp. That merges cleanly; the neighbouring inventory and debt lines need the usual resolution.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)🤖 Generated with Claude Code