Index: Source/bindings/v8/custom/V8HTMLFrameElementCustom.cpp |
diff --git a/Source/bindings/v8/custom/V8HTMLFrameElementCustom.cpp b/Source/bindings/v8/custom/V8HTMLFrameElementCustom.cpp |
index 4fbed3494ac3ec11621aa373fc8a4fc3ab933894..f589ef99e3968e85ca5a9c9bbf86026f7053c8ad 100644 |
--- a/Source/bindings/v8/custom/V8HTMLFrameElementCustom.cpp |
+++ b/Source/bindings/v8/custom/V8HTMLFrameElementCustom.cpp |
@@ -33,10 +33,8 @@ |
#include "HTMLNames.h" |
#include "bindings/v8/BindingSecurity.h" |
-#include "bindings/v8/ExceptionState.h" |
#include "bindings/v8/V8Binding.h" |
#include "core/html/HTMLFrameElement.h" |
-#include "core/html/parser/HTMLParserIdioms.h" |
namespace WebCore { |
@@ -47,11 +45,8 @@ void V8HTMLFrameElement::locationAttrSetterCustom(v8::Local<v8::String> name, v8 |
HTMLFrameElement* frame = V8HTMLFrameElement::toNative(info.Holder()); |
String locationValue = toWebCoreStringWithNullCheck(value); |
- ExceptionState es(info.GetIsolate()); |
- if (protocolIsJavaScript(stripLeadingAndTrailingHTMLSpaces(locationValue)) && !BindingSecurity::shouldAllowAccessToFrame(frame->contentFrame(), es)) { |
- es.throwIfNeeded(); |
+ if (!BindingSecurity::allowSettingFrameSrcToJavascriptUrl(frame, locationValue)) |
return; |
- } |
frame->setLocation(locationValue); |
} |