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

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

Issue 22985006: 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.cpp ('k') | Source/bindings/v8/ExceptionStatePlaceholder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ExceptionStatePlaceholder.h
diff --git a/Source/bindings/v8/ExceptionStatePlaceholder.h b/Source/bindings/v8/ExceptionStatePlaceholder.h
index 2b27a783558e3f2eb9820f4caac6c71377c8d720..b69a6c507e1e2a7fd414dfa08967afedc170647d 100644
--- a/Source/bindings/v8/ExceptionStatePlaceholder.h
+++ b/Source/bindings/v8/ExceptionStatePlaceholder.h
@@ -47,6 +47,7 @@ public:
ExceptionState& returnThis() { return *this; }
virtual void throwDOMException(const ExceptionCode&, const String& message = String()) OVERRIDE FINAL { };
virtual void throwTypeError(const String& message = String()) OVERRIDE FINAL { }
+ virtual void throwSecurityError(const String& sanitizedMessage, const String& unsanitizedMessage = String()) OVERRIDE FINAL { }
};
#define IGNORE_EXCEPTION (::WebCore::IgnorableExceptionState().returnThis())
@@ -63,6 +64,7 @@ public:
ExceptionState& returnThis() { return *this; }
virtual void throwDOMException(const ExceptionCode&, const String& message = String()) OVERRIDE FINAL;
virtual void throwTypeError(const String& message = String()) OVERRIDE FINAL;
+ virtual void throwSecurityError(const String& sanitizedMessage, const String& unsanitizedMessage = String()) OVERRIDE FINAL;
private:
const char* m_file;
« no previous file with comments | « Source/bindings/v8/ExceptionState.cpp ('k') | Source/bindings/v8/ExceptionStatePlaceholder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698