2009-11-10 Vitaly Repeshko <vitalyr@chromium.org>
authoreric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Nov 2009 02:15:19 +0000 (02:15 +0000)
committereric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 11 Nov 2009 02:15:19 +0000 (02:15 +0000)
commitec6d3ea6ab2b1a0b0f39bb8ae0e4f9b7af3f96ad
tree3f395e0f7aaef24b83e239c7cf525819298d795a
parent9918be05acedf9f0d0cb1161aab565979a6a3f58
2009-11-10  Vitaly Repeshko  <vitalyr@chromium.org>

        Reviewed by Dimitri Glazkov.

        [V8] Fix crash in V8CustomXPathNSResolver (http://crbug.com/26726).
        https://bugs.webkit.org/show_bug.cgi?id=31301

        * fast/xpath/xpath-detached-iframe-resolver-crash-expected.txt: Added.
        * fast/xpath/xpath-detached-iframe-resolver-crash.html: Added.
2009-11-10  Vitaly Repeshko  <vitalyr@chromium.org>

        Reviewed by Dimitri Glazkov.

        [V8] Fix crash in V8CustomXPathNSResolver (http://crbug.com/26726).
        https://bugs.webkit.org/show_bug.cgi?id=31301

        Tested by new fast/xpath/xpath-detached-iframe-resolver-crash.html.

        Allowed passing V8Proxy for the calling JS context:
        * bindings/v8/V8DOMWrapper.h:
        (WebCore::V8DOMWrapper::getXPathNSResolver):
        * bindings/v8/custom/V8CustomXPathNSResolver.cpp:
        (WebCore::V8CustomXPathNSResolver::create):
        (WebCore::V8CustomXPathNSResolver::V8CustomXPathNSResolver):
        (WebCore::V8CustomXPathNSResolver::lookupNamespaceURI):
        * bindings/v8/custom/V8CustomXPathNSResolver.h:
        * bindings/v8/custom/V8DocumentCustom.cpp:
        (WebCore::CALLBACK_FUNC_DECL):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@50785 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/xpath/xpath-detached-iframe-resolver-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/xpath-detached-iframe-resolver-crash.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/bindings/v8/V8DOMWrapper.h
WebCore/bindings/v8/custom/V8CustomXPathNSResolver.cpp
WebCore/bindings/v8/custom/V8CustomXPathNSResolver.h
WebCore/bindings/v8/custom/V8DocumentCustom.cpp