File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -341,13 +341,11 @@ void NWCustomBindings::GetOldCwd(
341
341
342
342
void NWCustomBindings::AddOriginAccessWhitelistEntry (const v8::FunctionCallbackInfo<v8::Value>& args) {
343
343
v8::Isolate* isolate = args.GetIsolate ();
344
- v8::Local<v8::Context> v8_context =
345
- v8::Local<v8::Object>::Cast (args[0 ])->CreationContext ();
346
344
347
345
std::string sourceOrigin = *v8::String::Utf8Value (isolate, args[0 ]);
348
346
std::string destinationProtocol = *v8::String::Utf8Value (isolate, args[1 ]);
349
347
std::string destinationHost = *v8::String::Utf8Value (isolate, args[2 ]);
350
- bool allowDestinationSubdomains = args[3 ]-> ToBoolean (v8_context). ToLocalChecked ()->Value ();
348
+ bool allowDestinationSubdomains = args[3 ]. As <v8::Boolean> ()->Value ();
351
349
352
350
blink::WebSecurityPolicy::AddOriginAccessAllowListEntry (GURL (sourceOrigin),
353
351
blink::WebString::FromUTF8 (destinationProtocol),
You can’t perform that action at this time.
0 commit comments