mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
thunderbird only change. The command line handler spits back "1" as an argument if there are no arguments following command. Handle
that case accordingly, and don't try to use "1" as the actual window argument.
This commit is contained in:
parent
d362527df3
commit
6d892904c0
@ -1126,7 +1126,7 @@ nsAppShellService::LaunchTask(const char *aParam, PRInt32 height, PRInt32 width,
|
||||
rv = handler->GetCommandLineArgument(getter_Copies(cmdLineArgument));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
rv = cmdLine->GetCmdLineValue(cmdLineArgument, getter_Copies(args));
|
||||
if (NS_SUCCEEDED(rv) && args.get()) {
|
||||
if (NS_SUCCEEDED(rv) && args.get() && strcmp(args.get(), "1")) {
|
||||
nsAutoString cmdArgs; cmdArgs.AssignWithConversion(args);
|
||||
rv = OpenWindow(chromeUrlForTask, cmdArgs, height, width);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user