Skip to content

Commit de89336

Browse files
authored
fix: missing HandleScope in OnDownloadPathGenerated (electron#23005)
1 parent 29f773e commit de89336

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shell/browser/electron_download_manager_delegate.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ void ElectronDownloadManagerDelegate::OnDownloadPathGenerated(
117117
settings.force_detached = offscreen;
118118

119119
v8::Isolate* isolate = v8::Isolate::GetCurrent();
120+
v8::HandleScope scope(isolate);
120121
gin_helper::Promise<gin_helper::Dictionary> dialog_promise(isolate);
121122
auto dialog_callback = base::BindOnce(
122123
&ElectronDownloadManagerDelegate::OnDownloadSaveDialogDone,

0 commit comments

Comments
 (0)