Browse Source

fix: missing HandleScope in OnDownloadPathGenerated (#23005)

Shelley Vohr 5 years ago
parent
commit
de893360f7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      shell/browser/electron_download_manager_delegate.cc

+ 1 - 0
shell/browser/electron_download_manager_delegate.cc

@@ -117,6 +117,7 @@ void ElectronDownloadManagerDelegate::OnDownloadPathGenerated(
     settings.force_detached = offscreen;
 
     v8::Isolate* isolate = v8::Isolate::GetCurrent();
+    v8::HandleScope scope(isolate);
     gin_helper::Promise<gin_helper::Dictionary> dialog_promise(isolate);
     auto dialog_callback = base::BindOnce(
         &ElectronDownloadManagerDelegate::OnDownloadSaveDialogDone,