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

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

Issue 22829002: Throw an exception when denying access to 'Frame's 'location' setter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Uncaught. 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
Index: Source/bindings/v8/ExceptionState.h
diff --git a/Source/bindings/v8/ExceptionState.h b/Source/bindings/v8/ExceptionState.h
index 36a785758dcce0fc0f1193a8b75fc408f1d59277..974bdf3cc7e9d27679bcb00cf083a840488766bd 100644
--- a/Source/bindings/v8/ExceptionState.h
+++ b/Source/bindings/v8/ExceptionState.h
@@ -50,6 +50,7 @@ public:
virtual void throwDOMException(const ExceptionCode&, const String& message = String());
virtual void throwTypeError(const String& message = String());
+ virtual void throwSecurityError(const String& sanitizedMessage, const String& unsanitizedMessage = String());
bool hadException() const { return !m_exception.isEmpty() || m_code; }
void clearException();

Powered by Google App Engine
This is Rietveld 408576698