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

Unified Diff: Source/bindings/v8/BindingSecurity.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
Index: Source/bindings/v8/BindingSecurity.h
diff --git a/Source/bindings/v8/BindingSecurity.h b/Source/bindings/v8/BindingSecurity.h
index 4387597b96df3713184c19b2be26769eb61104d2..8fba900cb7f9620df77d787598698da115ee9819 100644
--- a/Source/bindings/v8/BindingSecurity.h
+++ b/Source/bindings/v8/BindingSecurity.h
@@ -36,8 +36,8 @@
namespace WebCore {
class DOMWindow;
+class ExceptionState;
class Frame;
-class HTMLFrameElementBase;
class Node;
enum SecurityReportingOption {
@@ -49,7 +49,7 @@ class BindingSecurity {
public:
static bool shouldAllowAccessToNode(Node*);
static bool shouldAllowAccessToFrame(Frame*, SecurityReportingOption = ReportSecurityError);
- static bool allowSettingFrameSrcToJavascriptUrl(HTMLFrameElementBase*, const String& value);
+ static bool shouldAllowAccessToFrame(Frame*, ExceptionState&);
};
}

Powered by Google App Engine
This is Rietveld 408576698