diff --git a/toolkit/components/extensions/NativeMessaging.jsm b/toolkit/components/extensions/NativeMessaging.jsm index 2aa15381c62c..f3543120d21b 100644 --- a/toolkit/components/extensions/NativeMessaging.jsm +++ b/toolkit/components/extensions/NativeMessaging.jsm @@ -251,7 +251,9 @@ var NativeApp = class extends EventEmitter { // Set a timer to kill the process gracefully after one timeout // interval and kill it forcefully after two intervals. let timer = setTimeout(() => { - this.proc.kill(GRACEFUL_SHUTDOWN_TIME); + if (this.proc) { + this.proc.kill(GRACEFUL_SHUTDOWN_TIME); + } }, GRACEFUL_SHUTDOWN_TIME); let promise = Promise.all([