RESOLVED FIXED288400
NEW-TEST(290390@main): [ iOS ] TestWebKitAPI.UnifiedPDF.SelectionClearsOnAnchorLinkTap(api-test) is a constant crash
https://bugs.webkit.org/show_bug.cgi?id=288400
Summary NEW-TEST(290390@main): [ iOS ] TestWebKitAPI.UnifiedPDF.SelectionClearsOnAnch...
Dawn Morningstar
Reported 2025-02-24 13:17:22 PST
TestWebKitAPI.UnifiedPDF.SelectionClearsOnAnchorLinkTap Is a constant crash since it was added at 290390@main https://commits.webkit.org/290390@main HISTORY: https://results.webkit.org/?suite=api-tests&test=TestWebKitAPI.UnifiedPDF.SelectionClearsOnAnchorLinkTap TEST-RUN: https://build.webkit.org/#/builders/1392/builds/385 STDIO: https://build.webkit.org/#/builders/1392/builds/385/steps/22/logs/stdio CRASH: TestWebKitAPI.UnifiedPDF.SelectionClearsOnAnchorLinkTap SHOULD NEVER BE REACHED /Volumes/Data/worker/Apple-iOS-18-Simulator-Debug-Build/build/Source/WebKit/UIProcess/API/Cocoa/WKWebpagePreferences.mm(137) : WebCore::MouseEventPolicy WebKit::coreMouseEventPolicy(_WKWebsiteMouseEventPolicy) 1 0x14c30e084 WebKit::coreMouseEventPolicy(unsigned long) 2 0x14c30dff4 -[WKWebpagePreferences _setMouseEventPolicy:] 3 0x101d13628 TestWebKitAPI::UnifiedPDF_SelectionClearsOnAnchorLinkTap_Test::TestBody() 4 0x102211328 void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) 5 0x1021cfee4 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) 6 0x1021cfe34 testing::Test::Run() 7 0x1021d0d80 testing::TestInfo::Run() 8 0x1021d1f60 testing::TestSuite::Run() 9 0x1021dfc0c testing::internal::UnitTestImpl::RunAllTests() 10 0x1022161bc bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) 11 0x1021df5c8 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) 12 0x1021df524 testing::UnitTest::Run() 13 0x10159ef48 RUN_ALL_TESTS() 14 0x10159eedc TestWebKitAPI::TestsController::run(int, char**) 15 0x1021c38cc main 16 0x104b3d410 15 dyld 0x0000000104b3d410 start_sim + 20 17 0x104d96274 16 ??? 0x0000000104d96274 0x0 + 4376322676 Child process terminated with signal 5: Trace/BPT trap
Attachments
Radar WebKit Bug Importer
Comment 1 2025-02-24 13:18:14 PST
Abrar Rahman Protyasha
Comment 2 2025-02-24 13:20:57 PST
This test is crashing because `ENABLE_IOS_TOUCH_EVENTS==0` in open source iOS EWS and we don't know how to handle `_WKWebsiteMouseEventPolicySynthesizeTouchEvents` in this configuration. ``` static WebCore::MouseEventPolicy coreMouseEventPolicy(_WKWebsiteMouseEventPolicy policy) { switch (policy) { case _WKWebsiteMouseEventPolicyDefault: return WebCore::MouseEventPolicy::Default; #if ENABLE(IOS_TOUCH_EVENTS) case _WKWebsiteMouseEventPolicySynthesizeTouchEvents: return WebCore::MouseEventPolicy::SynthesizeTouchEvents; #endif } ASSERT_NOT_REACHED(); return WebCore::MouseEventPolicy::Default; } ```
Abrar Rahman Protyasha
Comment 3 2025-02-24 13:35:45 PST
EWS
Comment 4 2025-02-24 14:37:16 PST
Committed 290983@main (2f9c119b986a): <https://commits.webkit.org/290983@main> Reviewed commits have been landed. Closing PR #41229 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.