feat(libSceNKWebKit): implement EmptyFrameLoaderClient dispatch methods #15215
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15215"
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 voidlakhan on 2026-11-02T20:58:34Z.
What
Implement two exported
WebCore::EmptyFrameLoaderClientdispatch methods inlibSceNKWebKit:_ZN7WebCore22EmptyFrameLoaderClient35dispatchDidChangeLocationWithinPageEv(+ndmq8LhAjA)_ZN7WebCore22EmptyFrameLoaderClient35dispatchDidClearWindowObjectInWorldERNS_15DOMWrapperWorldE(+R2eXISeSvw)Authoritative upstream WebKit evidence:
neonmodder123/PS5-WebKit-11.xat commit80f77e94c63ee7202eec3d4b5b1a021dd89011baSource/WebCore/loader/EmptyClients.cpp#L750-L752:void EmptyFrameLoaderClient::dispatchDidChangeLocationWithinPage() { }Source/WebCore/loader/EmptyClients.cpp#L1055-L1057:void EmptyFrameLoaderClient::dispatchDidClearWindowObjectInWorld(DOMWrapperWorld&) { }Source/WebCore/loader/EmptyFrameLoaderClient.h#L78andSource/WebCore/loader/EmptyFrameLoaderClient.h#L178In upstream WebKit,
EmptyFrameLoaderClientprovides empty no-op fallback implementations for client callbacks. Neither method accessesthisor manipulates frame loader state;dispatchDidClearWindowObjectInWorldleaves itsDOMWrapperWorld&argument unused.Changes:
core/libs/prx/libSceNKWebKit/include/Api.hpp: Forward-declareWebCore::DOMWrapperWorldand correct return types frominttovoid, preservingWebCore::DOMWrapperWorld¶meter.core/libs/prx/libSceNKWebKit/Export.cpp: Remove throwingNotImplemented_nid_no_patchstubs for both exports.core/libs/prx/libSceNKWebKit/src/EmptyClients.cpp: Implement both exports as emptyvoidfunctions withAPS5_VABIandextern "C"linkage.core/libs/prx/libSceNKWebKit/tests/Base.cpp: AddTestEmptyFrameLoaderClient()verifying runtime execution of zero-argument export.docs/dev/debt/libSceNKWebKit.md: Update technical debt functional entries with pinned upstream citations.Tested
nkwebkit_base_tests(TestEmptyFrameLoaderClient) passed (1/1 passed viactest --test-dir build-full -R "^nkwebkit_base$" -V).python tools/check_conventions.py --base upstream/mainpassed.git diff --check upstream/main..HEADpassed.python tools/pr_overlap.py --branch feat/webcore-empty-frame-loader-clientpassed (0 overlapping exports, 0 overlapping new files across all 1,694 open PRs).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 MarcZX10 on 2026-11-02T21:08:18Z.
Review: COMMENTED
Reviewed — no blocking findings
Both callbacks match the pinned WebKit no-op implementations and their declared signatures, but all six hosted checks are queued, so I am withholding approval.
What I ran
Reviewed exact head
baaf5d76c3eac6ee1369447bda07e855a7e7ede6against base/currentmain9090972b7e91fd266819cbd77a8b058e177b5682; the repository stack check reports a clean merge preview and no declared dependencies. Environment: Debian 12 x86_64, Linux 6.1.0-54-amd64, Python 3.11.2, Git 2.39.5, GCC 12.2.0. No local build or CTest was run.Results
Base.cppis included by the existing test-source glob.nkwebkit_basetestUnedited command output and evidence
Diff check produced no output and exited 0. Convention output from the exact-head precheck:
ABI audit summary:
Test-quality heuristic output:
The CMake source glob and test-registration loop (unedited excerpt):
Precheck helper errors:
Overlap-scanner output:
The exact-name search output (same row for each of the three search queries):
The PR description reports this focused test (author-reported, not independently run):
Hosted checks at final refresh:
Negative control
Findings
Blocking
None found in the reviewed source.
Non-blocking
dispatchDidChangeLocationWithinPage; it does not invokedispatchDidClearWindowObjectInWorld. I verified the latter's signature and empty implementation against the pinned source, but did not runtime-test that export.Sources
Not verified
I did not build or run CTest locally, run a negative control, verify the author-reported test SHA, exercise the second callback at runtime, or test console behavior. All six current hosted checks were queued.
To get this to a good state
No code change is requested from this source review. Let the six hosted checks finish; I will recheck them and rerun the same no-build commands if the head changes.