Bug 1577706 - C-C part: Check osint parameters 'compose' and 'mail'. r=me
This commit is contained in:
Родитель
64d03d83c5
Коммит
7837983e0f
|
@ -4,6 +4,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsXULAppAPI.h"
|
||||
#include "mozilla/CmdLineAndEnvUtils.h"
|
||||
#include "mozilla/XREAppData.h"
|
||||
#include "application.ini.h"
|
||||
#include "mozilla/Bootstrap.h"
|
||||
|
@ -207,6 +208,11 @@ static int do_main(int argc, char* argv[], char* envp[]) {
|
|||
gBootstrap->XRE_LibFuzzerSetDriver(fuzzer::FuzzerDriver);
|
||||
#endif
|
||||
|
||||
// Note: FF needs to keep in sync with LauncherProcessWin,
|
||||
// TB doesn't have that file.
|
||||
const char* acceptableParams[] = {"compose", "mail", nullptr};
|
||||
EnsureCommandlineSafe(argc, argv, acceptableParams);
|
||||
|
||||
return gBootstrap->XRE_main(argc, argv, config);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче