Changeset 161994 in webkit
- Timestamp:
- Jan 14, 2014 12:23:41 PM (10 years ago)
- Location:
- trunk/Source
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r161988 r161994 1 2014-01-14 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: For Remote Inspection link WebProcess's to their parent UIProcess 4 https://bugs.webkit.org/show_bug.cgi?id=126995 5 6 Reviewed by Timothy Hatcher. 7 8 * inspector/remote/RemoteInspector.mm: 9 (Inspector::RemoteInspector::listingForDebuggable): 10 For each WebView, list the parent process. Listing the parent per WebView 11 is already supported back when we supported processes that could host WebViews 12 for multiple applications. 13 14 * inspector/remote/RemoteInspectorConstants.h: 15 Add a separate key for the bundle identifier, separate from application identifier. 16 17 * inspector/remote/RemoteInspectorDebuggable.cpp: 18 (Inspector::RemoteInspectorDebuggable::info): 19 * inspector/remote/RemoteInspectorDebuggable.h: 20 (Inspector::RemoteInspectorDebuggableInfo::RemoteInspectorDebuggableInfo): 21 (Inspector::RemoteInspectorDebuggableInfo::hasParentProcess): 22 If a RemoteInspectorDebuggable has a non-zero parent process identifier 23 it is a proxy for the parent process. 24 1 25 2014-01-14 Brian J. Burg <burg@cs.washington.edu> 2 26 -
trunk/Source/JavaScriptCore/inspector/remote/RemoteInspector.mm
r161953 r161994 298 298 [debuggableDetails setObject:@YES forKey:WIRHasLocalDebuggerKey]; 299 299 300 if (debuggableInfo.hasParentProcess()) { 301 NSString *parentApplicationIdentifier = [NSString stringWithFormat:@"PID:%lu", (unsigned long)debuggableInfo.parentProcessIdentifier]; 302 [debuggableDetails setObject:parentApplicationIdentifier forKey:WIRHostApplicationIdentifierKey]; 303 } 304 300 305 return debuggableDetails; 301 306 } -
trunk/Source/JavaScriptCore/inspector/remote/RemoteInspectorConstants.h
r160887 r161994 41 41 42 42 #define WIRApplicationIdentifierKey @"WIRApplicationIdentifierKey" 43 #define WIRApplicationBundleIdentifierKey @"WIRApplicationBundleIdentifierKey" 43 44 #define WIRApplicationNameKey @"WIRApplicationNameKey" 44 45 #define WIRIsApplicationProxyKey @"WIRIsApplicationProxyKey" -
trunk/Source/JavaScriptCore/inspector/remote/RemoteInspectorDebuggable.cpp
r160099 r161994 74 74 info.hasLocalDebugger = hasLocalDebugger(); 75 75 info.remoteDebuggingAllowed = remoteDebuggingAllowed(); 76 info.parentProcessIdentifier = parentProcessIdentifier(); 76 77 return info; 77 78 } -
trunk/Source/JavaScriptCore/inspector/remote/RemoteInspectorDebuggable.h
r160099 r161994 57 57 virtual String url() const { return String(); } // Web 58 58 virtual bool hasLocalDebugger() const = 0; 59 virtual pid_t parentProcessIdentifier() const { return 0; } 59 60 60 61 virtual void connect(InspectorFrontendChannel*) = 0; … … 74 75 , hasLocalDebugger(false) 75 76 , remoteDebuggingAllowed(false) 77 , parentProcessIdentifier(0) 76 78 { 77 79 } 80 81 bool hasParentProcess() const { return !!parentProcessIdentifier; } 78 82 79 83 unsigned identifier; … … 83 87 bool hasLocalDebugger; 84 88 bool remoteDebuggingAllowed; 89 pid_t parentProcessIdentifier; 85 90 }; 86 91 -
trunk/Source/WebCore/ChangeLog
r161991 r161994 1 2014-01-14 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: For Remote Inspection link WebProcess's to their parent UIProcess 4 https://bugs.webkit.org/show_bug.cgi?id=126995 5 6 Reviewed by Timothy Hatcher. 7 8 * inspector/InspectorClient.h: 9 (WebCore::InspectorClient::parentProcessIdentifier): 10 Client method intended for WebKit2 so a WebProcess can link to its UIProcess. 11 12 * page/PageDebuggable.h: 13 * page/PageDebuggable.cpp: 14 (WebCore::PageDebuggable::parentProcessIdentifier): 15 Provide parent process identifier if there is one. 16 1 17 2014-01-14 Tim Horton <timothy_horton@apple.com> 2 18 -
trunk/Source/WebCore/inspector/InspectorClient.h
r161534 r161994 50 50 virtual void didResizeMainFrame(Frame*) { } 51 51 52 #if ENABLE(REMOTE_INSPECTOR) 53 virtual pid_t parentProcessIdentifier() const { return 0; } 54 #endif 55 52 56 virtual void highlight() = 0; 53 57 virtual void hideHighlight() = 0; -
trunk/Source/WebCore/page/PageDebuggable.cpp
r160099 r161994 30 30 31 31 #include "Document.h" 32 #include "InspectorClient.h" 32 33 #include "InspectorController.h" 33 34 #include "InspectorForwarding.h" … … 66 67 } 67 68 69 pid_t PageDebuggable::parentProcessIdentifier() const 70 { 71 if (InspectorClient* inspectorClient = m_page.inspectorController()->inspectorClient()) 72 return inspectorClient->parentProcessIdentifier(); 73 74 return 0; 75 } 76 68 77 void PageDebuggable::connect(Inspector::InspectorFrontendChannel* channel) 69 78 { -
trunk/Source/WebCore/page/PageDebuggable.h
r160099 r161994 47 47 virtual String url() const OVERRIDE; 48 48 virtual bool hasLocalDebugger() const OVERRIDE; 49 virtual pid_t parentProcessIdentifier() const OVERRIDE; 49 50 50 51 virtual void connect(Inspector::InspectorFrontendChannel*) OVERRIDE; -
trunk/Source/WebKit2/ChangeLog
r161992 r161994 1 2014-01-14 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: For Remote Inspection link WebProcess's to their parent UIProcess 4 https://bugs.webkit.org/show_bug.cgi?id=126995 5 6 Reviewed by Timothy Hatcher. 7 8 * WebProcess/WebCoreSupport/WebInspectorClient.h: 9 * WebProcess/WebCoreSupport/WebInspectorClient.cpp: 10 (WebKit::WebInspectorClient::parentProcessIdentifier): 11 WebProcesses are proxies for a parent UIProcess. 12 1 13 2014-01-14 Tim Horton <timothy_horton@apple.com> 2 14 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorClient.cpp
r150578 r161994 34 34 #include <WebCore/Page.h> 35 35 36 #if ENABLE(REMOTE_INSPECTOR) 37 #include "WebProcess.h" 38 #endif 39 36 40 using namespace WebCore; 37 41 … … 67 71 m_page->inspector()->updateDockingAvailability(); 68 72 } 73 74 #if ENABLE(REMOTE_INSPECTOR) 75 pid_t WebInspectorClient::parentProcessIdentifier() const 76 { 77 return WebProcess::shared().presenterApplicationPid(); 78 } 79 #endif 69 80 70 81 void WebInspectorClient::highlight() -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorClient.h
r160099 r161994 59 59 virtual void didResizeMainFrame(WebCore::Frame*) OVERRIDE; 60 60 61 #if ENABLE(REMOTE_INSPECTOR) 62 virtual pid_t parentProcessIdentifier() const OVERRIDE; 63 #endif 64 61 65 virtual void highlight() OVERRIDE; 62 66 virtual void hideHighlight() OVERRIDE;
Note: See TracChangeset
for help on using the changeset viewer.