Bug 344276 - uninstalling extension forecastfox will freeze firefox on quit. r=bsmedberg, r=mento

This commit is contained in:
rob_strong%exchangecode.com 2006-08-07 18:56:45 +00:00
parent 6243e5a2a0
commit 9b8f062094

View File

@ -1837,6 +1837,10 @@ function safeInstallOperation(itemID, installLocation, installCallback) {
*/
function moveFile(file, destination) {
try {
//XXXrstrong - Mac OS X is not reliably creating the destination
// directory when using moveTo (bug 344276 and bug 347778).
if (!destination.exists())
destination.create(nsILocalFile.DIRECTORY_TYPE, PERMS_DIRECTORY);
var oldFile = file.clone();
file.moveTo(destination, file.leafName);
movedFiles.push({ oldFile: oldFile, newFile: file });