Changeset 205299 in webkit
- Timestamp:
- Sep 1, 2016 11:08:54 AM (8 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r205294 r205299 1 2016-09-01 Joseph Pecoraro <pecoraro@apple.com> 2 3 [Mac] Web Inspector: Remove stale inspector process termination code 4 https://bugs.webkit.org/show_bug.cgi?id=161465 5 <rdar://problem/28106584> 6 7 Reviewed by Brian Burg. 8 9 * UIProcess/WebInspectorProxy.cpp: 10 (WebKit::WebInspectorProxy::didRelaunchInspectorPageProcess): Deleted. 11 * UIProcess/WebInspectorProxy.h: 12 * UIProcess/mac/WebInspectorProxyMac.mm: 13 (-[WKWebInspectorProxyObjCAdapter didRelaunchProcess]): Deleted. 14 (-[WKWebInspectorWKWebView _didRelaunchProcess]): Deleted. 15 This code doesn't appear to be run when the WebContent process inside 16 of an Inspector process crashes. The general WebInspectorProxy has its 17 own handling of when the page inside an inspector process crashes, so 18 this Mac specific path appears to be unused and stale. 19 1 20 2016-09-01 Jeremy Huddleston Sequoia <jeremyhu@apple.com> 2 21 -
trunk/Source/WebKit2/UIProcess/WebInspectorProxy.cpp
r202700 r205299 179 179 } 180 180 181 void WebInspectorProxy::didRelaunchInspectorPageProcess()182 {183 m_inspectorPage->process().addMessageReceiver(Messages::WebInspectorProxy::messageReceiverName(), m_inspectedPage->pageID(), *this);184 m_inspectorPage->process().assumeReadAccessToBaseURL(WebInspectorProxy::inspectorBaseURL());185 186 // When didRelaunchInspectorPageProcess is called we can assume it is during a load request.187 // Any messages we would have sent to a terminated process need to be re-sent.188 189 m_inspectorPage->process().send(Messages::WebInspectorUI::EstablishConnection(m_connectionIdentifier, m_inspectedPage->pageID(), m_underTest, inspectionLevel()), m_inspectorPage->pageID());190 }191 192 181 void WebInspectorProxy::showConsole() 193 182 { -
trunk/Source/WebKit2/UIProcess/WebInspectorProxy.h
r204668 r205299 93 93 void close(); 94 94 95 void didRelaunchInspectorPageProcess();96 97 95 #if PLATFORM(MAC) && WK_API_ENABLED 98 96 void createInspectorWindow(); -
trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm
r200119 r205299 72 72 - (id)initWithWebInspectorProxy:(WebInspectorProxy*)inspectorProxy; 73 73 - (void)close; 74 - (void)didRelaunchProcess;75 74 76 75 @end … … 98 97 { 99 98 _inspectorProxy = nullptr; 100 }101 102 - (void)didRelaunchProcess103 {104 static_cast<WebInspectorProxy*>(_inspectorProxy)->didRelaunchInspectorPageProcess();105 99 } 106 100 … … 161 155 { 162 156 return WKInspectorViewTag; 163 }164 165 - (void)_didRelaunchProcess166 {167 [self.inspectorProxyObjCAdapter didRelaunchProcess];168 157 } 169 158
Note: See TracChangeset
for help on using the changeset viewer.