mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 22:32:51 +00:00
Bug 828704: Avoid duplicate -foreground argument when launching Firefox on OSX. r=mstange
This commit is contained in:
parent
260d62a846
commit
e71b7d7836
@ -54,8 +54,10 @@ void SetupMacCommandLine(int& argc, char**& argv, bool forRestart)
|
||||
// Copy args, stripping anything we don't want.
|
||||
for (int arg = 0; arg < argc; arg++) {
|
||||
char* flag = argv[arg];
|
||||
// Don't pass on the psn (Process Serial Number) flag from the OS.
|
||||
if (strncmp(flag, "-psn_", 5) != 0)
|
||||
// Don't pass on the psn (Process Serial Number) flag from the OS, or
|
||||
// the "-foreground" flag since it will be set below if necessary.
|
||||
if (strncmp(flag, "-psn_", 5) != 0 &&
|
||||
strncmp(flag, "-foreground", 11) != 0)
|
||||
AddToCommandLine(flag);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user