Bug 126995 - Web Inspector: For Remote Inspection link WebProcess's to their parent UIProcess
Summary: Web Inspector: For Remote Inspection link WebProcess's to their parent UIProcess
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-01-14 10:40 PST by Joseph Pecoraro
Modified: 2014-01-14 12:19 PST (History)
5 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (9.96 KB, patch)
2014-01-14 11:32 PST, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2014-01-14 10:40:05 PST
For remote inspection make WebProcesses a proxy application for the parent UIProcess.

This way, if you have multiple WebProcesses hosting multiple WebPage's then all the WebPages can be listed under the UIProcess.
Comment 1 Radar WebKit Bug Importer 2014-01-14 10:41:22 PST
<rdar://problem/15815775>
Comment 2 Joseph Pecoraro 2014-01-14 11:32:01 PST
Created attachment 221183 [details]
[PATCH] Proposed Fix
Comment 3 Timothy Hatcher 2014-01-14 11:53:09 PST
Comment on attachment 221183 [details]
[PATCH] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=221183&action=review

> Source/JavaScriptCore/inspector/remote/RemoteInspector.mm:301
> +        NSString *parentApplicationIdentifier = [NSString stringWithFormat:@"PID:%lu", (unsigned long)debuggableInfo.parentProcessIdentifier];

Is "PID:" needed? DO you need to strip that out later for the numeric value or do you just compare strings?
Comment 4 Joseph Pecoraro 2014-01-14 11:55:34 PST
(In reply to comment #3)
> (From update of attachment 221183 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=221183&action=review
> 
> > Source/JavaScriptCore/inspector/remote/RemoteInspector.mm:301
> > +        NSString *parentApplicationIdentifier = [NSString stringWithFormat:@"PID:%lu", (unsigned long)debuggableInfo.parentProcessIdentifier];
> 
> Is "PID:" needed? DO you need to strip that out later for the numeric value or do you just compare strings?

Nope, PID is not needed. I just wanted this to be obvious that it was a String, and if we change it to be some other number in the future then we can give another prefix for what exactly that means. E.g. "BundleID:#", "PID:#", "XPC:#", etc. Just trying to be forward thinking.
Comment 5 WebKit Commit Bot 2014-01-14 12:19:33 PST
Comment on attachment 221183 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 221183

Committed r161994: <http://trac.webkit.org/changeset/161994>
Comment 6 WebKit Commit Bot 2014-01-14 12:19:35 PST
All reviewed patches have been landed.  Closing bug.