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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp

Issue 2061113002: Remove ExceptionState::throwIfNeeded Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 5 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 7230fd47489ab190808e540940f2222835b1fe14..750dd853d29c8828ac84ddada97794eba86e8ca4 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.cpp
@@ -120,7 +120,6 @@ void V8WrapperInstantiationScope::securityCheck(v8::Isolate* isolate, v8::Local<
ExceptionState exceptionState(ExceptionState::ConstructionContext, "Location", contextForWrapper->Global(), isolate);
// We can't create a better message for a detached frame.
exceptionState.throwSecurityError(String(), String());
- exceptionState.throwIfNeeded();
return;
}
const DOMWrapperWorld& currentWorld = DOMWrapperWorld::world(m_context);
@@ -138,7 +137,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