Patch to follow.
Pavel, if it is ok with you, I have a patch for the bug and I can upload the same for your review.
in method WebInspectorClientFrontend::closeWindow() should explicitly call m_page->inspector()->destroyInspectorPage(); in order to reset the pointers.
Created attachment 137882 [details]
Created attachment 137883 [details]
Comment on attachment 137883 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=137883&action=review
> + m_page->inspector()->destroyInspectorPage();
It sounds like you should inline destroyInspectorPage into didClose in the WebInspector instead.
Created attachment 137932 [details]
Comment on attachment 137932 [details]
Clearing flags on attachment: 137932
Committed r114665: <http://trac.webkit.org/changeset/114665>
All reviewed patches have been landed. Closing bug.