Backed out changeset ee2d0bbca72c (bug 1159632) for windows xpcshell permafail

This commit is contained in:
Wes Kocher 2015-06-07 18:57:58 -07:00
Родитель e0dedf454a
Коммит 5a81fec5a1
1 изменённых файлов: 1 добавлений и 8 удалений

Просмотреть файл

@ -137,15 +137,8 @@ function getTempFile(aLeafName)
do_check_false(file.exists());
do_register_cleanup(function () {
try {
if (file.exists()) {
file.remove(false);
} catch (ex if (ex instanceof Components.Exception &&
(ex.result == Cr.NS_ERROR_FILE_ACCESS_DENIED ||
ex.result == Cr.NS_ERROR_FILE_TARGET_DOES_NOT_EXIST))) {
// On Windows, we may get an access denied error if the file existed before,
// and was recently deleted.
// Don't bother checking file.exists() as that may also cause an access
// denied error.
}
});