зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset ee2d0bbca72c (bug 1159632) for windows xpcshell permafail
This commit is contained in:
Родитель
e0dedf454a
Коммит
5a81fec5a1
|
@ -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.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче