Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp

Issue 2272613003: binding: Retires ExceptionState::throwIfNeeded(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Synced. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
index 35d6afa57171c006c5b7d7af8e56b47d8147ccae..15651dff15f8f6eaede70731f35a71208ae7a4ea 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
@@ -130,8 +130,7 @@ bool parseQuad(std::unique_ptr<protocol::Array<double>> quadArray, FloatQuad* qu
v8::Local<v8::Value> nodeV8Value(v8::Local<v8::Context> context, Node* node)
{
v8::Isolate* isolate = context->GetIsolate();
- ExceptionState exceptionState(ExceptionState::ExecutionContext, "nodeV8Value", "InjectedScriptHost", context->Global(), isolate);
- if (!node || !BindingSecurity::shouldAllowAccessTo(currentDOMWindow(isolate), node, exceptionState))
+ if (!node || !BindingSecurity::shouldAllowAccessTo(currentDOMWindow(isolate), node, BindingSecurity::ErrorReportOption::DoNotReport))
return v8::Null(isolate);
return toV8(node, context->Global(), isolate);
}

Powered by Google App Engine
This is Rietveld 408576698