зеркало из https://github.com/mozilla/gecko-dev.git
Bug 868891 - Fix regression introduced by Bug 860934. r=dougt
Bug 860934 removed the use of fully qualified paths when communicating between the parent and child processes. This patch fixes one of the spots that got missed.
This commit is contained in:
Родитель
d950524c96
Коммит
24be0725ba
|
@ -408,16 +408,8 @@ FileUpdateDispatcher::Observe(nsISupports *aSubject,
|
|||
NS_WARNING("Device storage file looks invalid!");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsString fullpath;
|
||||
nsresult rv = file->mFile->GetPath(fullpath);
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_WARNING("Could not get path from the nsIFile!");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
ContentChild::GetSingleton()->SendFilePathUpdateNotify(file->mStorageType,
|
||||
fullpath,
|
||||
file->mPath,
|
||||
NS_ConvertUTF16toUTF8(aData));
|
||||
} else {
|
||||
nsCOMPtr<nsIObserverService> obs = mozilla::services::GetObserverService();
|
||||
|
|
Загрузка…
Ссылка в новой задаче