Skip to content

Commit aa8d815

Browse files
authored
fix: MakeAbsoluteFilePath is a blocking call (electron#23840)
1 parent 236c133 commit aa8d815

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

shell/common/api/electron_api_native_image.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ base::FilePath NormalizePath(const base::FilePath& path) {
6262
return path;
6363
}
6464

65+
base::ThreadRestrictions::ScopedAllowIO allow_blocking;
6566
base::FilePath absolute_path = MakeAbsoluteFilePath(path);
6667
// MakeAbsoluteFilePath returns an empty path on failures so use original path
6768
if (absolute_path.empty()) {

0 commit comments

Comments
 (0)