Skip to content

Commit

Permalink
fix: missing HandleScope in WebDialogHelper (#22843)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Mar 27, 2020
1 parent ac501e8 commit bd5789a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/browser/web_dialog_helper.cc
Expand Up @@ -58,6 +58,7 @@ class FileSelectHelper : public base::RefCounted<FileSelectHelper>,

void ShowOpenDialog(const file_dialog::DialogSettings& settings) {
v8::Isolate* isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
gin_helper::Promise<gin_helper::Dictionary> promise(isolate);

auto callback = base::BindOnce(&FileSelectHelper::OnOpenDialogDone, this);
Expand All @@ -68,6 +69,7 @@ class FileSelectHelper : public base::RefCounted<FileSelectHelper>,

void ShowSaveDialog(const file_dialog::DialogSettings& settings) {
v8::Isolate* isolate = v8::Isolate::GetCurrent();
v8::HandleScope scope(isolate);
gin_helper::Promise<gin_helper::Dictionary> promise(isolate);

auto callback = base::BindOnce(&FileSelectHelper::OnSaveDialogDone, this);
Expand Down

0 comments on commit bd5789a

Please sign in to comment.