Skip to content
  • abarth@webkit.org's avatar
    Rename checkNodeSecurity and allowsAccessFromFrame to have sensible names · 0609530b
    abarth@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=75796
    
    Reviewed by Eric Seidel.
    
    As requested by Darin Adler, this patch renames these functions be
    clear that we're asking whether the access should be allowed rather
    than explicitly allowing the access.
    
    * bindings/generic/BindingSecurity.h:
    (BindingSecurity):
    (WebCore::::shouldAllowAccessToNode):
    (WebCore::::allowSettingFrameSrcToJavascriptUrl):
    * bindings/js/JSDOMBinding.cpp:
    (WebCore::shouldAllowAccessToNode):
    (WebCore::shouldAllowAccessToFrame):
    * bindings/js/JSDOMBinding.h:
    (WebCore):
    * bindings/js/JSHTMLFrameElementCustom.cpp:
    (WebCore::allowSettingJavascriptURL):
    * bindings/js/JSHistoryCustom.cpp:
    (WebCore::JSHistory::getOwnPropertySlotDelegate):
    (WebCore::JSHistory::getOwnPropertyDescriptorDelegate):
    (WebCore::JSHistory::putDelegate):
    (WebCore::JSHistory::deleteProperty):
    (WebCore::JSHistory::getOwnPropertyNames):
    * bindings/js/JSLocationCustom.cpp:
    (WebCore::JSLocation::getOwnPropertySlotDelegate):
    (WebCore::JSLocation::getOwnPropertyDescriptorDelegate):
    (WebCore::JSLocation::putDelegate):
    (WebCore::JSLocation::deleteProperty):
    (WebCore::JSLocation::getOwnPropertyNames):
    (WebCore::JSLocation::toStringFunction):
    * bindings/js/ScriptController.cpp:
    (WebCore::ScriptController::canAccessFromCurrentOrigin):
    * bindings/scripts/CodeGeneratorJS.pm:
    (GenerateGetOwnPropertyDescriptorBody):
    (GenerateImplementation):
    * bindings/scripts/CodeGeneratorV8.pm:
    (GenerateNormalAttrGetter):
    (GenerateFunctionCallback):
    * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
    (WebCore::JSTestActiveDOMObject::getOwnPropertyDescriptor):
    * bindings/scripts/test/JS/JSTestObj.cpp:
    (WebCore::jsTestObjContentDocument):
    (WebCore::jsTestObjPrototypeFunctionGetSVGDocument):
    * bindings/scripts/test/V8/V8TestObj.cpp:
    (WebCore::TestObjInternal::contentDocumentAttrGetter):
    (WebCore::TestObjInternal::getSVGDocumentCallback):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106618 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    0609530b