• antonm@chromium.org's avatar
    2011-02-08 Anton Muhin <antonm@chromium.org> · b904ab59
    antonm@chromium.org authored
           Reviewed by Adam Barth and Alexey Proskuryakov.
    
           Propagate security origin of parent document into HTML documents created with DOMImplementation
           https://bugs.webkit.org/show_bug.cgi?id=53611
    
           This restores invariant that JS wrappers residing in the same JS context should come
           from the same security origin.
    
           Absence of regressions is covered by the current tests.  Different security origin of
           DOMImplementation is difficult to check with layout tests as DOMImplementation
           resides in the same JS context as parent document and therefore there are no security origin checks.
           This is observable however in C++.
    
           * Android.jscbindings.mk:
           * CMakeLists.txt:
           * WebCore.gypi:
           * WebCore.pro:
           * WebCore.vcproj/WebCore.vcproj:
           * WebCore.xcodeproj/project.pbxproj:
           * bindings/v8/V8GCController.cpp:
           (WebCore::NodeGrouperVisitor::visitDOMWrapper):
           * dom/DOMImplementation.cpp:
           (WebCore::DOMImplementation::DOMImplementation):
           (WebCore::DOMImplementation::createDocument):
           * dom/DOMImplementation.h:
           (WebCore::DOMImplementation::create):
           (WebCore::DOMImplementation::documentDestroyed):
           (WebCore::DOMImplementation::parentDocument):
           * dom/DOMImplementation.idl:
           * dom/Document.cpp:
           (WebCore::Document::~Document):
           (WebCore::Document::implementation):
           * dom/Document.h:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86423 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b904ab59
wrong-signature-2-expected.txt 105 Bytes