mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: MakeAbsoluteFilePath is a blocking call (#23840)
This commit is contained in:
@@ -62,6 +62,7 @@ base::FilePath NormalizePath(const base::FilePath& path) {
|
||||
return path;
|
||||
}
|
||||
|
||||
base::ThreadRestrictions::ScopedAllowIO allow_blocking;
|
||||
base::FilePath absolute_path = MakeAbsoluteFilePath(path);
|
||||
// MakeAbsoluteFilePath returns an empty path on failures so use original path
|
||||
if (absolute_path.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user