fix: add handle scope in SelectClientCertificate (#24868)

This commit is contained in:
Cheng Zhao 2020-08-07 12:50:41 +09:00 committed by GitHub
parent b6f8cd39e5
commit 2224d94c75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -806,6 +806,7 @@ base::OnceClosure App::SelectClientCertificate(
std::make_shared<net::ClientCertIdentityList>(std::move(identities));
v8::Isolate* isolate = JavascriptEnvironment::GetIsolate();
v8::HandleScope handle_scope(isolate);
bool prevent_default =
Emit("select-client-certificate",
WebContents::FromOrCreate(isolate, web_contents),