зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1543627: Allow for --createProfile cmd line arg to work on macOS when Firefox is already running. r=spohl
This commit is contained in:
Родитель
899d5a2eac
Коммит
413793eccb
|
@ -161,8 +161,9 @@ NS_IMETHODIMP nsNativeAppSupportCocoa::Start(bool* _retval) {
|
|||
NSArray* arguments = [[NSProcessInfo processInfo] arguments];
|
||||
BOOL shallProceedLikeNoRemote = NO;
|
||||
for (NSString* arg in arguments) {
|
||||
if ([arg isEqualToString:@"-no-remote"] || [arg isEqualToString:@"-headless"] ||
|
||||
[arg isEqualToString:@"--no-remote"] || [arg isEqualToString:@"--headless"]) {
|
||||
if ([arg isEqualToString:@"-no-remote"] || [arg isEqualToString:@"--no-remote"] ||
|
||||
[arg isEqualToString:@"-headless"] || [arg isEqualToString:@"--headless"] ||
|
||||
[arg isEqualToString:@"-createProfile"] || [arg isEqualToString:@"--createProfile"]) {
|
||||
shallProceedLikeNoRemote = YES;
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче