Bug 1543627: Allow for --createProfile cmd line arg to work on macOS when Firefox is already running. r=spohl

This commit is contained in:
Yuri 2019-05-01 10:49:52 -04:00
Родитель 899d5a2eac
Коммит 413793eccb
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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;
}