<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: Error when closing page with WebInspector open"
   href="https://bugs.webkit.org/show_bug.cgi?id=152867">152867</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Web Inspector: Error when closing page with WebInspector open
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Web Inspector
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dcrousso+webkit&#64;gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>bburg&#64;apple.com, graouts&#64;webkit.org, joepeck&#64;webkit.org, mattbaker&#64;apple.com, nvasilyev&#64;apple.com, timothy&#64;apple.com, webkit-bug-importer&#64;group.apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>* STEPS TO REPRODUCE
1. Go to &lt;<a href="https://www.apple.com/">https://www.apple.com/</a>&gt;
2. Open the inspector via context menu &quot;Inspect Element&quot;
3. Close the tab via Cmd-W

* CRASH
thread #1: tid = 0xc5ef59, 0x0000000100f7bf76 WebKit`WebKit::WebPageProxy::inspectorAttachmentView(this=0x0000000000000000) + 4 at WebPageProxyMac.mm:590, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x38)
    frame #0: 0x0000000100f7bf76 WebKit`WebKit::WebPageProxy::inspectorAttachmentView(this=0x0000000000000000) + 4 at WebPageProxyMac.mm:590
   587     #if WK_API_ENABLED
   588     NSView *WebPageProxy::inspectorAttachmentView()
   589     {
-&gt; 590         return m_pageClient.inspectorAttachmentView();
   591     }
   592     
   593     _WKRemoteObjectRegistry *WebPageProxy::remoteObjectRegistry()

* BACKTRACE
thread #1: tid = 0xc5ef59, 0x0000000100f7bf76 WebKit`WebKit::WebPageProxy::inspectorAttachmentView(this=0x0000000000000000) + 4 at WebPageProxyMac.mm:590, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x38)
  * frame #0: 0x0000000100f7bf76 WebKit`WebKit::WebPageProxy::inspectorAttachmentView(this=0x0000000000000000) + 4 at WebPageProxyMac.mm:590
    frame #1: 0x0000000100f25e70 WebKit`WebKit::WebInspectorProxy::platformDetach(this=0x00000001054a66f8) + 30 at WebInspectorProxyMac.mm:752
    frame #2: 0x0000000100f222d3 WebKit`WebKit::WebInspectorProxy::didClose(this=0x00000001054a66f8) + 109 at WebInspectorProxy.cpp:592
    frame #3: 0x0000000100f22255 WebKit`WebKit::WebInspectorProxy::invalidate(this=0x00000001054a66f8) + 139 at WebInspectorProxy.cpp:120
    frame #4: 0x0000000100f5dc3e WebKit`WebKit::WebPageProxy::resetState(this=0x00000001080a8c18, resetStateReason=PageInvalidated) + 132 at WebPageProxy.cpp:4934
    frame #5: 0x0000000100f5c77d WebKit`WebKit::WebPageProxy::close(this=0x00000001080a8c18) + 129 at WebPageProxy.cpp:822
    frame #6: 0x00007fff8e6301d5 Safari`Safari::SearchableWebContentViewController::close() + 205
    frame #7: 0x00007fff8e34c9b5 Safari`Safari::BrowserContentViewController::close() + 1129
    frame #8: 0x00007fff8e3e4ab6 Safari`-[BrowserWindowControllerMac _closeTabWithoutConfirming:allowUndo:] + 1389
    frame #9: 0x00007fff8e3e4547 Safari`-[BrowserWindowControllerMac _closeTabWithoutConfirming:] + 34
    frame #10: 0x00007fff8e3d555a Safari`-[BrowserWindowControllerMac closeTabOrWindowWithoutConfirming:] + 327
    frame #11: 0x00007fff8e3aab2a Safari`Safari::BrowserTab::closeWithoutConfirming() + 56
    frame #12: 0x00007fff8e589cf5 Safari`Safari::WK::closePage(OpaqueWKPage const*, void const*) + 39
    frame #13: 0x0000000100f7e948 WebKit`WebKit::WebPageProxy::didReceiveMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;) [inlined] void IPC::callMemberFunctionImpl&lt;WebKit::WebPageProxy, void (WebKit::WebPageProxy::*)(bool), std::__1::tuple&lt;bool&gt;, 0ul&gt;(object=0x00000001080a8c18, function=0x0000000000000000)(bool), std::__1::tuple&lt;bool&gt;&amp;&amp;, std::index_sequence&lt;0ul&gt;) + 12 at HandleMessage.h:16
    frame #14: 0x0000000100f7e93c WebKit`WebKit::WebPageProxy::didReceiveMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;) [inlined] void IPC::callMemberFunction&lt;WebKit::WebPageProxy, void (WebKit::WebPageProxy::*)(bool), std::__1::tuple&lt;bool&gt;, std::make_index_sequence&lt;1ul&gt; &gt;(function=0x0000000000000000)(bool)) at HandleMessage.h:22
    frame #15: 0x0000000100f7e93c WebKit`WebKit::WebPageProxy::didReceiveMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;) [inlined] void IPC::handleMessage&lt;Messages::WebPageProxy::ClosePage, WebKit::WebPageProxy, void (WebKit::WebPageProxy::*)(bool)&gt;(function=0x0000000000000000)(bool)) + 24 at HandleMessage.h:92
    frame #16: 0x0000000100f7e924 WebKit`WebKit::WebPageProxy::didReceiveMessage(this=0x00000001080a8c18, connection=&lt;unavailable&gt;, decoder=&lt;unavailable&gt;) + 1474 at WebPageProxyMessageReceiver.cpp:232
    frame #17: 0x0000000100de94b7 WebKit`IPC::MessageReceiverMap::dispatchMessage(this=&lt;unavailable&gt;, connection=0x000000010a3522b0, decoder=0x000000010a3d4088) + 113 at MessageReceiverMap.cpp:102
    frame #18: 0x0000000100fc1686 WebKit`WebKit::WebProcessProxy::didReceiveMessage(this=0x000000010a36c5c0, connection=0x000000010a3522b0, decoder=0x000000010a3d4088) + 24 at WebProcessProxy.cpp:488
    frame #19: 0x0000000100d9e1e7 WebKit`IPC::Connection::dispatchMessage(std::__1::unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt;) [inlined] IPC::Connection::dispatchMessage(this=&lt;unavailable&gt;, decoder=&lt;unavailable&gt;) + 127 at Connection.cpp:891
    frame #20: 0x0000000100d9e1da WebKit`IPC::Connection::dispatchMessage(this=0x000000010a3522b0, message=unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt; &#64; 0x00007fff5fbfde80) + 114 at Connection.cpp:922
    frame #21: 0x0000000100da0b06 WebKit`IPC::Connection::dispatchOneMessage(this=0x000000010a3522b0) + 126 at Connection.cpp:953
    frame #22: 0x0000000100866b85 JavaScriptCore`WTF::RunLoop::performWork() [inlined] std::__1::function&lt;void ()&gt;::operator(this=0x000000000000000a)() const + 437 at functional:1793
    frame #23: 0x0000000100866b7b JavaScriptCore`WTF::RunLoop::performWork(this=0x000000010a3f9000) + 427 at RunLoop.cpp:104
    frame #24: 0x0000000100866f32 JavaScriptCore`WTF::RunLoop::performWork(context=&lt;unavailable&gt;) + 34 at RunLoopCF.cpp:38
    frame #25: 0x00007fff94c3f5c1 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #26: 0x00007fff94c3141c CoreFoundation`__CFRunLoopDoSources0 + 556
    frame #27: 0x00007fff94c3093f CoreFoundation`__CFRunLoopRun + 927
    frame #28: 0x00007fff94c30338 CoreFoundation`CFRunLoopRunSpecific + 296
    frame #29: 0x00007fff8ada8935 HIToolbox`RunCurrentEventLoopInMode + 235
    frame #30: 0x00007fff8ada876f HIToolbox`ReceiveNextEventCommon + 432
    frame #31: 0x00007fff8ada85af HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
    frame #32: 0x00007fff9200e0ee AppKit`_DPSNextEvent + 1067
    frame #33: 0x00007fff923da943 AppKit`-[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
    frame #34: 0x00007fff8e32f37f Safari`-[BrowserApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 252
    frame #35: 0x00007fff92003fc8 AppKit`-[NSApplication run] + 682
    frame #36: 0x00007fff91f86520 AppKit`NSApplicationMain + 1176
    frame #37: 0x00007fff950ab5ad libdyld.dylib`start + 1
    frame #38: 0x00007fff950ab5ad libdyld.dylib`start + 1</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>