mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 08:42:13 +00:00
Bug 893019 - make addNamed() return absolute paths in parent process, r=dhylands
This commit is contained in:
parent
874de834c8
commit
736a39f8d1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user