예제 #1
0
bool BindingSecurity::shouldAllowAccessToFrame(v8::Isolate* isolate, Frame* target, SecurityReportingOption reportingOption)
{
    return target && canAccessDocument(isolate, target->document(), reportingOption);
}
예제 #2
0
bool BindingSecurity::shouldAllowAccessToNode(v8::Isolate* isolate, Node* target, ExceptionState& exceptionState)
{
    return target && canAccessDocument(isolate, &target->document(), exceptionState);
}
예제 #3
0
bool BindingSecurity::shouldAllowAccessToFrame(v8::Isolate* isolate, Frame* target, SecurityReportingOption reportingOption)
{
    if (!target || !target->isLocalFrame())
        return false;
    return canAccessDocument(isolate, toLocalFrame(target)->document(), reportingOption);
}
예제 #4
0
bool BindingSecurity::shouldAllowAccessToFrame(v8::Isolate* isolate, Frame* target, ExceptionState& exceptionState)
{
    if (!target || !target->isLocalFrame())
        return false;
    return canAccessDocument(isolate, toLocalFrame(target)->document(), exceptionState);
}
예제 #5
0
bool BindingSecurity::allowSettingFrameSrcToJavascriptUrl(HTMLFrameElementBase* frame, const String& value)
{
    return !protocolIsJavaScript(stripLeadingAndTrailingHTMLSpaces(value)) || canAccessDocument(frame->contentDocument());
}
예제 #6
0
bool BindingSecurity::shouldAllowAccessToNode(Node* target)
{
    return target && canAccessDocument(target->document());
}
예제 #7
0
bool BindingSecurity::shouldAllowAccessToDOMWindow(DOMWindow* target, SecurityReportingOption reportingOption)
{
    return target && canAccessDocument(target->document(), reportingOption);
}
예제 #8
0
bool BindingSecurity::shouldAllowAccessToNode(BindingState* state, Node* target)
{
    return target && canAccessDocument(state, &target->document());
}
예제 #9
0
bool BindingSecurity::shouldAllowAccessToFrame(Frame* target, ExceptionState& es)
{
    return target && canAccessDocument(target->document(), es);
}