bool BindingSecurity::shouldAllowAccessToFrame(v8::Isolate* isolate, Frame* target, SecurityReportingOption reportingOption) { return target && canAccessDocument(isolate, target->document(), reportingOption); }
bool BindingSecurity::shouldAllowAccessToNode(v8::Isolate* isolate, Node* target, ExceptionState& exceptionState) { return target && canAccessDocument(isolate, &target->document(), exceptionState); }
bool BindingSecurity::shouldAllowAccessToFrame(v8::Isolate* isolate, Frame* target, SecurityReportingOption reportingOption) { if (!target || !target->isLocalFrame()) return false; return canAccessDocument(isolate, toLocalFrame(target)->document(), reportingOption); }
bool BindingSecurity::shouldAllowAccessToFrame(v8::Isolate* isolate, Frame* target, ExceptionState& exceptionState) { if (!target || !target->isLocalFrame()) return false; return canAccessDocument(isolate, toLocalFrame(target)->document(), exceptionState); }
bool BindingSecurity::allowSettingFrameSrcToJavascriptUrl(HTMLFrameElementBase* frame, const String& value) { return !protocolIsJavaScript(stripLeadingAndTrailingHTMLSpaces(value)) || canAccessDocument(frame->contentDocument()); }
bool BindingSecurity::shouldAllowAccessToNode(Node* target) { return target && canAccessDocument(target->document()); }
bool BindingSecurity::shouldAllowAccessToDOMWindow(DOMWindow* target, SecurityReportingOption reportingOption) { return target && canAccessDocument(target->document(), reportingOption); }
bool BindingSecurity::shouldAllowAccessToNode(BindingState* state, Node* target) { return target && canAccessDocument(state, &target->document()); }
bool BindingSecurity::shouldAllowAccessToFrame(Frame* target, ExceptionState& es) { return target && canAccessDocument(target->document(), es); }