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

Unified Diff: Source/bindings/v8/ExceptionState.cpp

Issue 22887017: Revert "Throw an exception when denying access to 'Frame's 'location' setter." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
« no previous file with comments | « Source/bindings/v8/ExceptionState.h ('k') | Source/bindings/v8/ExceptionStatePlaceholder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ExceptionState.cpp
diff --git a/Source/bindings/v8/ExceptionState.cpp b/Source/bindings/v8/ExceptionState.cpp
index ad0e663ade7045716e33ca4d07d6ba9e52a6004c..62fa19248d410340be90a4b6ee447c541c36e4ea 100644
--- a/Source/bindings/v8/ExceptionState.cpp
+++ b/Source/bindings/v8/ExceptionState.cpp
@@ -50,13 +50,6 @@ void ExceptionState::throwDOMException(const ExceptionCode& ec, const String& me
setException(V8ThrowException::createDOMException(ec, message, m_isolate));
}
-void ExceptionState::throwSecurityError(const String& sanitizedMessage, const String& unsanitizedMessage)
-{
- ASSERT(m_isolate);
- m_code = SecurityError;
- setException(V8ThrowException::createDOMException(SecurityError, sanitizedMessage, unsanitizedMessage, m_isolate));
-}
-
void ExceptionState::setException(v8::Handle<v8::Value> exception)
{
// FIXME: Assert that exception is not empty?
@@ -85,9 +78,4 @@ void TrackExceptionState::throwTypeError(const String&)
m_code = TypeError;
}
-void TrackExceptionState::throwSecurityError(const String&, const String&)
-{
- m_code = SecurityError;
-}
-
} // namespace WebCore
« no previous file with comments | « Source/bindings/v8/ExceptionState.h ('k') | Source/bindings/v8/ExceptionStatePlaceholder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698