Bug 1896030 - Don't open new window on -os-autostart if the application has already started. r=nalexander,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D210253
This commit is contained in:
@@ -1130,6 +1130,14 @@ nsDefaultCommandLineHandler.prototype = {
|
||||
var urilist = [];
|
||||
var principalList = [];
|
||||
|
||||
if (
|
||||
cmdLine.state != Ci.nsICommandLine.STATE_INITIAL_LAUNCH &&
|
||||
cmdLine.findFlag("os-autostart", true) != -1
|
||||
) {
|
||||
// Relaunching after reboot (or quickly opening the application on reboot) and launch-on-login interact. If we see an after reboot command line while already running, ignore it.
|
||||
return;
|
||||
}
|
||||
|
||||
if (AppConstants.platform == "win") {
|
||||
// Windows itself does disk I/O when the notification service is
|
||||
// initialized, so make sure that is lazy.
|
||||
|
||||
Reference in New Issue
Block a user