Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6557c69a86eb3ba5f1fd774017cb944316fe0be5
https://github.com/WebKit/WebKit/commit/6557c69a86eb3ba5f1fd774017cb944316fe0be5
Author: Zak Ridouh <[email protected]>
Date: 2026-05-19 (Tue, 19 May 2026)
Changed paths:
M Tools/TestWebKitAPI/PlatformMac.cmake
A Tools/TestWebKitAPI/generic/main.mm
Log Message:
-----------
[CMake] Add argv-translation shim for TestWebKitAPI on Mac
https://bugs.webkit.org/show_bug.cgi?id=315075
rdar://177401011
Reviewed by Richard Robinson.
generic/main.cpp hands argv straight to gtest, so the Swift-runner-equivalent
flags that run-api-tests emits — --filter, --list-tests, --site-isolation,
--force, --remote-layer-tree, etc. — silently no-op under the CMake build.
Add generic/main.mm as the Apple-port entrypoint, mirroring
Runner/{TestWebKitAPI,GoogleTestsController}.swift: translates Swift-runner
flags into --gtest_* equivalents, invokes +[WKPreferences
_forceSiteIsolationAlwaysOnForTesting] reflectively for --site-isolation,
sets NSArgumentDomain bools for the layer-tree / GPU-process toggles, and
applies the once-per-process setup (persistent-domain reset, NSApp
instantiation, WTF::enableAllSDKAlignedBehaviors).
Flip _test_main_SOURCES in PlatformMac.cmake to the new file. Non-Apple
ports (GTK/WPE/Win) keep generic/main.cpp.
* Tools/TestWebKitAPI/PlatformMac.cmake:
* Tools/TestWebKitAPI/generic/main.mm: Added.
(main):
Canonical link: https://commits.webkit.org/313517@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications