Bug 27594 - Windows needs a better nightly launching mechanism
Summary: Windows needs a better nightly launching mechanism
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Steve Falkenburg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-22 22:06 PDT by Steve Falkenburg
Modified: 2009-09-18 12:06 PDT (History)
2 users (show)

See Also:


Attachments
Checkpoint of a new native nightly launcher (121.76 KB, patch)
2009-07-22 22:06 PDT, Steve Falkenburg
mrowe: review+
eric: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Falkenburg 2009-07-22 22:06:02 PDT
The current Windows nightlies are cumbersome to install and use.

We should move to a native nightly launcher to simplifiy this.
Comment 1 Steve Falkenburg 2009-07-22 22:06:57 PDT
Created attachment 33313 [details]
Checkpoint of a new native nightly launcher
Comment 2 Mark Rowe (bdash) 2009-07-22 22:18:19 PDT
Comment on attachment 33313 [details]
Checkpoint of a new native nightly launcher

> Index: WebKitTools/WebKitLauncherWin/WebKitLauncherWin.cpp
> ===================================================================
> --- WebKitTools/WebKitLauncherWin/WebKitLauncherWin.cpp	(revision 0)
> +++ WebKitTools/WebKitLauncherWin/WebKitLauncherWin.cpp	(revision 0)
> @@ -0,0 +1,111 @@
> +/*
> + * Copyright (C) 2009 Apple Inc. All rights reserved.
> + *
> + * Redistribution and use in source and binary forms, with or without
> + * modification, are permitted provided that the following conditions
> + * are met:
> + *
> + * 1.  Redistributions of source code must retain the above copyright
> + *     notice, this list of conditions and the following disclaimer.
> + * 2.  Redistributions in binary form must reproduce the above copyright
> + *     notice, this list of conditions and the following disclaimer in the
> + *     documentation and/or other materials provided with the distribution.
> + * 3.  Neither the name of Apple Computer, Inc. ("Apple") nor the names of
> + *     its contributors may be used to endorse or promote products derived
> + *     from this software without specific prior written permission.

This isn't the license that we typically use on new code.


The copyEnvironmentVariable function isn't used.  Will it be in the future?


> +int APIENTRY _tWinMain(HINSTANCE instance, HINSTANCE, LPTSTR commandLine, int)
> +{
> +    STARTUPINFO startupInfo = {0};
> +    startupInfo.cb = sizeof(startupInfo);
> +    PROCESS_INFORMATION processInfo = {0};

These should be moved closer to where they're used.

> +    // Launch Safari as a child process
> +    CreateProcess(browserExe, commandLine, 0, 0, FALSE, NORMAL_PRIORITY_CLASS | CREATE_UNICODE_ENVIRONMENT, 0, path, &startupInfo, &processInfo);

Do we need some error handling here in case Safari couldn't be launched for some reason?


r=me
Comment 3 Eric Seidel (no email) 2009-08-12 15:24:59 PDT
Comment on attachment 33313 [details]
Checkpoint of a new native nightly launcher

Steve will land this with modifications.  cq- to denote such.
Comment 4 Eric Seidel (no email) 2009-09-01 03:08:23 PDT
As far as I can tell this is still waiting for landing.  No rush, just confirming.
Comment 5 Eric Seidel (no email) 2009-09-18 12:06:10 PDT
Looks like this was landed as r46254.  Back on July 23rd.