fix: remove catch-all HandleScope (#22531)
This commit is contained in:
parent
4bca5205bb
commit
19314d3caf
21 changed files with 131 additions and 75 deletions
|
@ -28,8 +28,9 @@ ElectronNavigationThrottle::WillRedirectRequest() {
|
|||
return PROCEED;
|
||||
}
|
||||
|
||||
auto api_contents =
|
||||
electron::api::WebContents::From(v8::Isolate::GetCurrent(), contents);
|
||||
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
||||
v8::HandleScope scope(isolate);
|
||||
auto api_contents = electron::api::WebContents::From(isolate, contents);
|
||||
if (api_contents.IsEmpty()) {
|
||||
// No need to emit any event if the WebContents is not available in JS.
|
||||
return PROCEED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue