<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>311123</bug_id>
          
          <creation_ts>2026-03-30 11:42:19 -0700</creation_ts>
          <short_desc>[Site Isolation] Web Inspector: Layout tests with cross-origin iframes crash due to assertion failure: !globalObject-&gt;debugger()</short_desc>
          <delta_ts>2026-04-22 16:18:00 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Qianlang Chen">qianlangchen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>a_panta</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2195234</commentid>
    <comment_count>0</comment_count>
    <who name="Qianlang Chen">qianlangchen</who>
    <bug_when>2026-03-30 11:42:19 -0700</bug_when>
    <thetext>On a debug build, run
    run-webkit-tests --debug --no-build --no-retry-failures --no-show-results --full-diff-context --child-processes=1 --timeout=25000 --force --exit-after-n-failures=1 LayoutTests/http/tests/site-isolation/inspector/debugger/pause-in-cross-origin-iframe.html

Or theoretically most other Web Inspector test for site isolation, resulting in the following crash log:
ASSERTION FAILED: !globalObject-&gt;debugger()
/Users/qianlang_chen1/WebKit/OpenSource/Source/JavaScriptCore/debugger/Debugger.cpp(168) : void JSC::Debugger::attach(JSGlobalObject *)
1   0x131dc24ec JSC::Debugger::attach(JSC::JSGlobalObject*)
2   0x7000128f50 WebCore::JSWindowProxy::attachDebugger(JSC::Debugger*)
3   0x7005043698 WebCore::WindowProxy::attachDebugger(JSC::Debugger*)
4   0x70072a4480 WebCore::Page::setDebugger(JSC::Debugger*)
5   0x70069e2d08 WebCore::PageDebugger::attachDebugger()
6   0x131dc3410 JSC::Debugger::addObserver(JSC::Debugger::Observer&amp;)
7   0x1326911cc Inspector::InspectorDebuggerAgent::internalEnable()
8   0x7006b236ac WebCore::WebDebuggerAgent::internalEnable()
9   0x7006b6ae8c WebCore::PageDebuggerAgent::internalEnable()
10  0x132691c6c Inspector::InspectorDebuggerAgent::enable()
11  0x13259876c Inspector::DebuggerBackendDispatcher::enable(long, WTF::RefPtr&lt;WTF::JSONImpl::Object, WTF::RawPtrTraits&lt;WTF::JSONImpl::Object&gt;, WTF::DefaultRefDerefTraits&lt;WTF::JSONImpl::Object&gt;&gt;&amp;&amp;)
12  0x132598654 Inspector::DebuggerBackendDispatcher::dispatch(long, WTF::String const&amp;, WTF::Ref&lt;WTF::JSONImpl::Object, WTF::RawPtrTraits&lt;WTF::JSONImpl::Object&gt;, WTF::DefaultRefDerefTraits&lt;WTF::JSONImpl::Object&gt;&gt;&amp;&amp;)
13  0x132572c38 Inspector::BackendDispatcher::dispatch(WTF::String const&amp;)
14  0x70069e63e4 WebCore::PageInspectorController::dispatchMessageFromFrontend(WTF::String const&amp;)
15  0x11e105028 WebKit::PageInspectorTarget::sendMessageToTargetBackend(WTF::String const&amp;)
16  0x11e5dff44 WebKit::WebPage::sendMessageToTargetBackend(WTF::String const&amp;)
17  0x11bb83028 auto void IPC::callMemberFunction&lt;WebKit::WebPage, WebKit::WebPage, void (WTF::String const&amp;), std::__1::tuple&lt;WTF::String&gt;&gt;(WebKit::WebPage*, void (WebKit::WebPage::*)(WTF::String const&amp;), std::__1::tuple&lt;WTF::String&gt;&amp;&amp;)::&apos;lambda&apos;(auto&amp;&amp;...)::operator()&lt;WTF::String&gt;(auto&amp;&amp;...) const
18  0x11bb82f60 std::__1::__invoke_result_impl&lt;void, auto...&gt;::type std::__1::__invoke[abi:sqn220100]&lt;void IPC::callMemberFunction&lt;WebKit::WebPage, WebKit::WebPage, void (WTF::String const&amp;), std::__1::tuple&lt;WTF::String&gt;&gt;(WebKit::WebPage*, void (WebKit::WebPage::*)(WTF::String const&amp;), std::__1::tuple&lt;WTF::String&gt;&amp;&amp;)::&apos;lambda&apos;(auto&amp;&amp;...), WTF::String&gt;(auto&amp;&amp;...)
19  0x11bb82f30 decltype(auto) std::__1::__apply_tuple_impl[abi:sqn220100]&lt;void IPC::callMemberFunction&lt;WebKit::WebPage, WebKit::WebPage, void (WTF::String const&amp;), std::__1::tuple&lt;WTF::String&gt;&gt;(WebKit::WebPage*, void (WebKit::WebPage::*)(WTF::String const&amp;), std::__1::tuple&lt;WTF::String&gt;&amp;&amp;)::&apos;lambda&apos;(auto&amp;&amp;...), std::__1::tuple&lt;WTF::String&gt;, 0ul&gt;(WebKit::WebPage&amp;&amp;, WebKit::WebPage&amp;&amp;, std::__1::integer_sequence&lt;unsigned long, 0ul&gt;)
20  0x11bb82ef0 decltype(auto) std::__1::apply[abi:sqn220100]&lt;void IPC::callMemberFunction&lt;WebKit::WebPage, WebKit::WebPage, void (WTF::String const&amp;), std::__1::tuple&lt;WTF::String&gt;&gt;(WebKit::WebPage*, void (WebKit::WebPage::*)(WTF::String const&amp;), std::__1::tuple&lt;WTF::String&gt;&amp;&amp;)::&apos;lambda&apos;(auto&amp;&amp;...), std::__1::tuple&lt;WTF::String&gt;&gt;(WebKit::WebPage&amp;&amp;, WebKit::WebPage&amp;&amp;)
21  0x11bb82ec0 void IPC::callMemberFunction&lt;WebKit::WebPage, WebKit::WebPage, void (WTF::String const&amp;), std::__1::tuple&lt;WTF::String&gt;&gt;(WebKit::WebPage*, void (WebKit::WebPage::*)(WTF::String const&amp;), std::__1::tuple&lt;WTF::String&gt;&amp;&amp;)
22  0x11ba9e108 void IPC::handleMessage&lt;Messages::WebPage::SendMessageToTargetBackend, IPC::Connection, WebKit::WebPage, WebKit::WebPage, void (WTF::String const&amp;)&gt;(IPC::Connection&amp;, IPC::Decoder&amp;, WebKit::WebPage*, void (WebKit::WebPage::*)(WTF::String const&amp;))
23  0x11992c8cc WebKit::WebPage::didReceiveMessage(IPC::Connection&amp;, IPC::Decoder&amp;)
24  0x119902a6c IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&amp;, IPC::Decoder&amp;)
25  0x11cd7758c WebKit::AuxiliaryProcess::dispatchMessage(IPC::Connection&amp;, IPC::Decoder&amp;)
26  0x11994897c WebKit::AuxiliaryProcess::didReceiveMessage(IPC::Connection&amp;, IPC::Decoder&amp;)
27  0x11992282c WebKit::WebProcess::didReceiveMessage(IPC::Connection&amp;, IPC::Decoder&amp;)
28  0x11e9e964c IPC::Connection::dispatchMessage(IPC::Decoder&amp;)
29  0x11e9e9b84 IPC::Connection::dispatchMessage(WTF::UniqueRef&lt;IPC::Decoder&gt;)
30  0x1199570fc IPC::Connection::dispatchOneIncomingMessage()
31  0x11ea4a1e4 IPC::Connection::enqueueIncomingMessage(WTF::UniqueRef&lt;IPC::Decoder&gt;)::$_1::operator()() const
com.apple.WebKit.WebContent.Development terminated (pid 68249) for reason: crash</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2195285</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-03-30 14:27:30 -0700</bug_when>
    <thetext>&lt;rdar://problem/173722593&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2202926</commentid>
    <comment_count>2</comment_count>
    <who name="Anuj Panta">a_panta</who>
    <bug_when>2026-04-21 15:39:50 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/63276</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2203427</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-22 16:17:58 -0700</bug_when>
    <thetext>Committed 311811@main (9fcb2bb3c70e): &lt;https://commits.webkit.org/311811@main&gt;

Reviewed commits have been landed. Closing PR #63276 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>