Bug 251822

Summary: New test: [iOS Debug] ASSERTION FAILED: !_visibilityPropagationViewForWebProcess in -[WKContentView _setupVisibilityPropagationViewForWebProcess]
Product: WebKit Reporter: Ryan Haddad <ryanhaddad>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: achristensen, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=249522

Description Ryan Haddad 2023-02-06 15:49:39 PST
TestWebKitAPI.SiteIsolation.IframeNavigatesSelfWithoutChangingOrigin is consistently asserting on iOS debug bots, seemingly since it was added with https://commits.webkit.org/258149@main

TestWebKitAPI.SiteIsolation.IframeNavigatesSelfWithoutChangingOrigin
        ASSERTION FAILED: !_visibilityPropagationViewForWebProcess
        /Volumes/Data/worker/Apple-iOS-16-Simulator-Debug-Build/build/Source/WebKit/UIProcess/ios/WKContentView.mm(238) : -[WKContentView _setupVisibilityPropagationViewForWebProcess]
        1   0x119685419 WTFCrash
        2   0x139067e3b WTFCrashWithInfo(int, char const*, char const*, int)
        3   0x13be5fdd4 -[WKContentView _setupVisibilityPropagationViewForWebProcess]
        4   0x13be637f1 -[WKContentView _webProcessDidCreateContextForVisibilityPropagation]
        5   0x13a8ad7ac WebKit::PageClientImpl::didCreateContextInWebProcessForVisibilityPropagation(unsigned int)
        6   0x13a6df200 WebKit::WebPageProxy::didCreateContextInWebProcessForVisibilityPropagation(unsigned int)
        7   0x13bb51f82 auto void IPC::callMemberFunction<WebKit::WebPageProxy, WebKit::WebPageProxy, void (unsigned int), std::__1::tuple<unsigned int> >(WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)(unsigned int), std::__1::tuple<unsigned int>&&)::'lambda'(auto&&...)::operator()<unsigned int>(auto&&...) const
        8   0x13bb51ecd decltype(static_cast<WebKit::WebPageProxy>(fp)(static_cast<unsigned int>(fp0))) std::__1::__invoke_constexpr<void IPC::callMemberFunction<WebKit::WebPageProxy, WebKit::WebPageProxy, void (unsigned int), std::__1::tuple<unsigned int> >(WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)(unsigned int), std::__1::tuple<unsigned int>&&)::'lambda'(auto&&...), unsigned int>(WebKit::WebPageProxy&&, unsigned int&&)
        9   0x13bb51e9a decltype(auto) std::__1::__apply_tuple_impl<void IPC::callMemberFunction<WebKit::WebPageProxy, WebKit::WebPageProxy, void (unsigned int), std::__1::tuple<unsigned int> >(WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)(unsigned int), std::__1::tuple<unsigned int>&&)::'lambda'(auto&&...), std::__1::tuple<unsigned int>, 0ul>(WebKit::WebPageProxy&&, WebKit::WebPageProxy&&, std::__1::__tuple_indices<0ul>)
        10  0x13bb51e42 decltype(auto) std::__1::apply<void IPC::callMemberFunction<WebKit::WebPageProxy, WebKit::WebPageProxy, void (unsigned int), std::__1::tuple<unsigned int> >(WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)(unsigned int), std::__1::tuple<unsigned int>&&)::'lambda'(auto&&...), std::__1::tuple<unsigned int> >(WebKit::WebPageProxy&&, WebKit::WebPageProxy&&)
        11  0x13bb51d7d void IPC::callMemberFunction<WebKit::WebPageProxy, WebKit::WebPageProxy, void (unsigned int), std::__1::tuple<unsigned int> >(WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)(unsigned int), std::__1::tuple<unsigned int>&&)
        12  0x13bb204ad void IPC::handleMessage<Messages::WebPageProxy::DidCreateContextInWebProcessForVisibilityPropagation, WebKit::WebPageProxy, WebKit::WebPageProxy, void (unsigned int)>(IPC::Connection&, IPC::Decoder&, WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)(unsigned int))
        13  0x13bb0ef8f WebKit::WebPageProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&)
        14  0x13aa6fb78 WebKit::ProvisionalFrameProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&)
        15  0x13bf72943 IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&, IPC::Decoder&)
        16  0x13aa451bc WebKit::AuxiliaryProcessProxy::dispatchMessage(IPC::Connection&, IPC::Decoder&)
        17  0x13ada6ce9 WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&)
        18  0x13bf46aac IPC::Connection::dispatchMessage(IPC::Decoder&)
        19  0x13bf46e90 IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >)
        20  0x13bf47604 IPC::Connection::dispatchIncomingMessages()
        21  0x13bf63ccd IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >)::$_16::operator()() const
        22  0x13bf63c19 WTF::Detail::CallableWrapper<IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >)::$_16, void>::call()
        23  0x1196b5952 WTF::Function<void ()>::operator()() const
        24  0x11975dc9e WTF::RunLoop::performWork()
        25  0x11976391e WTF::RunLoop::performWork(void*)
        26  0x114805ebd __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
        27  0x114805dfc __CFRunLoopDoSource0
        28  0x1148055f9 __CFRunLoopDoSources0
        29  0x1147ffdb3 __CFRunLoopRun
        30  0x1147ff637 CFRunLoopRunSpecific
        31  0x116f779fc -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
        Child process terminated with signal 11: Segmentation fault

https://results.webkit.org/?suite=api-tests&suite=api-tests&test=TestWebKitAPI.SiteIsolation.IframeNavigatesSelfWithoutChangingOrigin&test=TestWebKitAPI.SiteIsolation.NavigatingCrossOriginIframeToSameOrigin
Comment 1 Radar WebKit Bug Importer 2023-02-06 15:50:24 PST
<rdar://problem/105102909>
Comment 2 Ryan Haddad 2023-02-06 15:55:28 PST
TestWebKitAPI.SiteIsolation.LoadingCallbacksAndPostMessage is also failing the same assertion

https://results.webkit.org/?suite=api-tests&test=TestWebKitAPI.SiteIsolation.LoadingCallbacksAndPostMessage
Comment 3 Alex Christensen 2023-02-07 16:02:58 PST
This was fixed by https://bugs.webkit.org/show_bug.cgi?id=251245

*** This bug has been marked as a duplicate of bug 251245 ***