mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Backed out changeset ee2d0bbca72c (bug 1159632) for windows xpcshell permafail
This commit is contained in:
parent
e0dedf454a
commit
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.
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user