From f0db4701347488dc716feb42a58c350075171fd1 Mon Sep 17 00:00:00 2001 From: Alexandre Lissy Date: Fri, 17 Apr 2026 17:34:39 +0200 Subject: [PATCH] Bug 2019348 - Enterprise: fix test_no_window_update_restart.py --- toolkit/mozapps/update/UpdateService.sys.mjs | 2 +- toolkit/mozapps/update/tests/marionette/manifest.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/mozapps/update/UpdateService.sys.mjs b/toolkit/mozapps/update/UpdateService.sys.mjs index e6b5b74624473..0e35db58c4bdd 100644 --- a/toolkit/mozapps/update/UpdateService.sys.mjs +++ b/toolkit/mozapps/update/UpdateService.sys.mjs @@ -579,7 +579,7 @@ function areDirectoryEntriesWriteable(aDir) { let items = aDir.directoryEntries; while (items.hasMoreElements()) { let item = items.nextFile; - if (!item.isWritable()) { + if (item && item.exists() && !item.isWritable()) { LOG("areDirectoryEntriesWriteable - unable to write to " + item.path); return false; } diff --git a/toolkit/mozapps/update/tests/marionette/manifest.toml b/toolkit/mozapps/update/tests/marionette/manifest.toml index d7c90399d5c74..a199341e41356 100644 --- a/toolkit/mozapps/update/tests/marionette/manifest.toml +++ b/toolkit/mozapps/update/tests/marionette/manifest.toml @@ -4,6 +4,6 @@ tags = "os_integration" ["test_no_window_update_restart.py"] run-if = [ - "os == 'mac' && !enterprise", # Bug 2019348 - Test is failing and there is a "profile missing" window visible + "os == 'mac'" ] reason = "Test of a mac only feature"