| Index: Source/bindings/v8/custom/V8HTMLFrameElementCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8HTMLFrameElementCustom.cpp b/Source/bindings/v8/custom/V8HTMLFrameElementCustom.cpp
|
| index 7acc533f2a0c04dcf15c15f5cbfd61a4c3b8188f..9bbfc1904cf36641540cc3c4db17e2099829ca01 100644
|
| --- a/Source/bindings/v8/custom/V8HTMLFrameElementCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8HTMLFrameElementCustom.cpp
|
| @@ -47,9 +47,9 @@ void V8HTMLFrameElement::locationAttributeSetterCustom(v8::Local<v8::Value> valu
|
| 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();
|
| + ExceptionState exceptionState(info.GetIsolate());
|
| + if (protocolIsJavaScript(stripLeadingAndTrailingHTMLSpaces(locationValue)) && !BindingSecurity::shouldAllowAccessToFrame(frame->contentFrame(), exceptionState)) {
|
| + exceptionState.throwIfNeeded();
|
| return;
|
| }
|
|
|
|
|