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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.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/bindings/core/v8/V8DOMWrapper.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp b/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp
index 94880015422af35d638f4b873ee46dbbb0e2ccf3..221dbe331ec57b92d388f4545915338177ca0262 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp
@@ -116,7 +116,6 @@ void V8WrapperInstantiationScope::securityCheck(v8::Isolate* isolate, v8::Local<
return;
CHECK_EQ(SecurityError, exceptionState.code());
- exceptionState.throwIfNeeded();
return;
}
const DOMWrapperWorld& currentWorld = DOMWrapperWorld::world(m_context);
@@ -125,7 +124,6 @@ void V8WrapperInstantiationScope::securityCheck(v8::Isolate* isolate, v8::Local<
ExceptionState exceptionState(ExceptionState::ConstructionContext, nullptr, contextForWrapper->Global(), isolate);
if (currentWorld.isMainWorld() && !BindingSecurity::shouldAllowAccessToFrame(currentDOMWindow(isolate), frame, exceptionState)) {
CHECK_EQ(SecurityError, exceptionState.code());
- exceptionState.throwIfNeeded();
return;
}
}
@@ -138,7 +136,6 @@ void V8WrapperInstantiationScope::convertException()
LocalDOMWindow* callingWindow = currentDOMWindow(isolate);
DOMWindow* targetWindow = toDOMWindow(m_context);
exceptionState.throwSecurityError(targetWindow->sanitizedCrossDomainAccessErrorMessage(callingWindow), targetWindow->crossDomainAccessErrorMessage(callingWindow));
- exceptionState.throwIfNeeded();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698