Bug 893019 - make addNamed() return absolute paths in parent process, r=dhylands

This commit is contained in:
Mike Habicher 2013-07-12 12:33:20 -04:00
parent 874de834c8
commit 736a39f8d1

View File

@ -1893,7 +1893,9 @@ public:
return NS_OK;
}
nsCOMPtr<PostResultEvent> event = new PostResultEvent(mRequest.forget(), mFile->mPath);
nsString compositePath;
mFile->GetCompositePath(compositePath);
nsCOMPtr<PostResultEvent> event = new PostResultEvent(mRequest.forget(), compositePath);
NS_DispatchToMainThread(event);
return NS_OK;
}
@ -1972,7 +1974,9 @@ public:
r = new PostErrorEvent(mRequest.forget(), POST_ERROR_EVENT_FILE_DOES_NOT_EXIST);
}
else {
r = new PostResultEvent(mRequest.forget(), mFile->mPath);
nsString compositePath;
mFile->GetCompositePath(compositePath);
r = new PostResultEvent(mRequest.forget(), compositePath);
}
NS_DispatchToMainThread(r);
return NS_OK;