Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Web Inspector: [Mac] Occosional Crashes Closing Inspector
https://bugs.webkit.org/show_bug.cgi?id=139740 Patch by Joseph Pecoraro <pecoraro@apple.com> on 2014-12-17 Reviewed by Timothy Hatcher. * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::didReceiveEvent): The WebPageProxy could have gotten destroyed in handling (e.g. keyboard shortcut to close the Inspector Window), so protect the object to avoid destruction during handling. * UIProcess/WebInspectorProxy.h: * UIProcess/WebPageProxy.cpp: Add platformInvalidate opportunity for the platform to do invalidation work. * UIProcess/efl/WebInspectorProxyEfl.cpp: (WebKit::WebInspectorProxy::platformInvalidate): * UIProcess/gtk/WebInspectorProxyGtk.cpp: (WebKit::WebInspectorProxy::platformInvalidate): Empty implementations, these ports do not need to do anything. * UIProcess/WebInspectorProxy.h: * UIProcess/mac/WebInspectorProxyMac.mm: (WebKit::WebInspectorProxy::closeTimerFired): (WebKit::WebInspectorProxy::platformDidClose): (WebKit::WebInspectorProxy::platformInvalidate): When closing / invalidating make sure we close the WKView to clear client for any delayed callbacks. Canonical link: https://commits.webkit.org/157649@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@177459 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
57 additions
and 1 deletion.
- +31 −0 Source/WebKit2/ChangeLog
- +1 −0 Source/WebKit2/UIProcess/WebInspectorProxy.cpp
- +1 −0 Source/WebKit2/UIProcess/WebInspectorProxy.h
- +4 −0 Source/WebKit2/UIProcess/WebPageProxy.cpp
- +4 −0 Source/WebKit2/UIProcess/efl/WebInspectorProxyEfl.cpp
- +4 −0 Source/WebKit2/UIProcess/gtk/WebInspectorProxyGtk.cpp
- +12 −1 Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -142,6 +142,10 @@ void WebInspectorProxy::platformDidClose() | ||
} | ||
} | ||
|
||
void WebInspectorProxy::platformInvalidate() | ||
{ | ||
} | ||
|
||
void WebInspectorProxy::platformHide() | ||
{ | ||
notImplemented(); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -168,6 +168,10 @@ void WebInspectorProxy::platformDidClose() | ||
m_inspectorView = 0; | ||
} | ||
|
||
void WebInspectorProxy::platformInvalidate() | ||
{ | ||
} | ||
|
||
void WebInspectorProxy::platformHide() | ||
{ | ||
notImplemented(); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters