mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
Bug 344276 - uninstalling extension forecastfox will freeze firefox on quit. r=bsmedberg, r=mento
This commit is contained in:
parent
6243e5a2a0
commit
9b8f062094
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user