Bug 56571

Summary: First argument passed to WebKit.exe is ignored by Safari
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: chris, sfalken
Priority: P2 Keywords: PlatformOnly
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows 7   
Attachments:
Description Flags
Stop using explicit memory management in WebKitLauncherWin
sfalken: review+
Prepend Safari.exe's path to the command-line passed to CreateProcess sfalken: review+

Description Adam Roben (:aroben) 2011-03-17 10:32:10 PDT
To reproduce:

1. Launch Safari
2. Run WebKit.exe /newProcess. Note in Task Manager that only one Safari process is running.
3. Run WebKit.exe foo /newProcess. Note in Task Manager that two Safari processes are now running.

It looks like the first argument that's passed to WebKit.exe is not sent to Safari correctly. I think we're misusing the CreateProcess API.
Comment 1 Adam Roben (:aroben) 2011-06-26 11:15:02 PDT
*** Bug 63389 has been marked as a duplicate of this bug. ***
Comment 2 Adam Roben (:aroben) 2012-01-05 10:36:59 PST
Created attachment 121296 [details]
Stop using explicit memory management in WebKitLauncherWin
Comment 3 Adam Roben (:aroben) 2012-01-05 10:37:04 PST
Created attachment 121297 [details]
Prepend Safari.exe's path to the command-line passed to CreateProcess
Comment 4 Adam Roben (:aroben) 2012-01-05 11:57:29 PST
Committed r104190: <http://trac.webkit.org/changeset/104190>