WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
315325
[CMake] Stage WebCore.framework bundle resources on Mac
https://bugs.webkit.org/show_bug.cgi?id=315325
Summary
[CMake] Stage WebCore.framework bundle resources on Mac
zak ridouh
Reported
2026-05-21 16:35:49 PDT
The CMake Mac port was not copying Source/WebCore/Resources/*.{png,tiff, icc,html,...} into WebCore.framework/Versions/A/Resources/, so the framework bundle shipped with only Info.plist and en.lproj/. As a result, ImageAdapter::loadPlatformResource() — which uses [NSBundle bundleForClass:WebCoreBundleFinder] to look up missingImage.png and similar built-in images — returned nil, and any failed image load crashed the WebContent process via ASSERT_NOT_REACHED() in CachedImage::brokenImage(). The Xcode build copies these via its Resources build phase; CMake had no equivalent. Glob Source/WebCore/Resources/* and stage with WEBKIT_COPY_FILES so new resources are picked up automatically. CONFIGURE_DEPENDS triggers a re-glob when the directory changes.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-05-21 16:35:56 PDT
<
rdar://problem/177664337
>
zak ridouh
Comment 2
2026-05-21 16:39:15 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/65444
EWS
Comment 3
2026-05-21 17:27:23 PDT
Committed
313697@main
(1c4443e0c62b): <
https://commits.webkit.org/313697@main
> Reviewed commits have been landed. Closing PR #65444 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug