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"