Changeset 161994 in webkit for trunk/Source/JavaScriptCore
- Timestamp:
- Jan 14, 2014, 12:23:41 PM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r161988 r161994 1 2014-01-14 Joseph Pecoraro <[email protected]> 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 <[email protected]> 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
Note:
See TracChangeset
for help on using the changeset viewer.