LayoutTests:
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Jun 2006 21:52:17 +0000 (21:52 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Jun 2006 21:52:17 +0000 (21:52 +0000)
commitc41c165cde71eb0f93f85b97de9b59db726fd188
treee596ae869dab6446b1d07b100b9d5204d648e24c
parente87cd4d29299f44f24a0a0e46318ac2d45f26723
LayoutTests:

        - Test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9113
        REGRESSION (14581): XMLHttpRequest never calls onreadystatechange with
        a readystate == 4

        * http/tests/xmlhttprequest/event-listener-gc.html: Added.
        * http/tests/xmlhttprequest/event-listener-gc-expected.txt: Added.

WebCore:

        Fix by Mitz. Reviewed, tweaked, tested, landed by me.

        - Fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=9113
        REGRESSION (14581): XMLHttpRequest never calls onreadystatechange with
        a readystate == 4

        An XMLHttpRequest must be added to the DOMObject cache so that its
        DOM implementation object can protect it, and by extension, its event
        listeners.

        This design seems slightly backwards to me -- the bindings should know
        about the DOM, not the other way around -- but I'm restoring it for
        now to fix the regression.

        * bindings/js/JSXMLHttpRequest.cpp:
        (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
        (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14671 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/xmlhttprequest/event-listener-gc-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/event-listener-gc.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/bindings/js/JSXMLHttpRequest.cpp