| Index: Source/bindings/v8/BindingSecurity.cpp
|
| ===================================================================
|
| --- Source/bindings/v8/BindingSecurity.cpp (revision 170478)
|
| +++ Source/bindings/v8/BindingSecurity.cpp (working copy)
|
| @@ -80,18 +80,14 @@
|
| return false;
|
| }
|
|
|
| -bool BindingSecurity::shouldAllowAccessToFrame(v8::Isolate* isolate, Frame* target, SecurityReportingOption reportingOption)
|
| +bool BindingSecurity::shouldAllowAccessToFrame(v8::Isolate* isolate, LocalFrame* target, SecurityReportingOption reportingOption)
|
| {
|
| - if (!target || !target->isLocalFrame())
|
| - return false;
|
| - return canAccessDocument(isolate, toLocalFrame(target)->document(), reportingOption);
|
| + return target && canAccessDocument(isolate, target->document(), reportingOption);
|
| }
|
|
|
| -bool BindingSecurity::shouldAllowAccessToFrame(v8::Isolate* isolate, Frame* target, ExceptionState& exceptionState)
|
| +bool BindingSecurity::shouldAllowAccessToFrame(v8::Isolate* isolate, LocalFrame* target, ExceptionState& exceptionState)
|
| {
|
| - if (!target || !target->isLocalFrame())
|
| - return false;
|
| - return canAccessDocument(isolate, toLocalFrame(target)->document(), exceptionState);
|
| + return target && canAccessDocument(isolate, target->document(), exceptionState);
|
| }
|
|
|
| bool BindingSecurity::shouldAllowAccessToNode(v8::Isolate* isolate, Node* target, ExceptionState& exceptionState)
|
|
|