Skip to content
  • weinig's avatar
    LayoutTests: · 74a19475
    weinig authored
            Reviewed by Darin.
    
            Test for: <rdar://problem/4928583> Memory usage grows when reloading google.com/ig
    
            * fast/dom/gc-10-expected.txt: Added.
            * fast/dom/gc-10.html: Added.
            * fast/dom/resources/gc-10-frame.html: Added.
    
    WebCore:
    
            Reviewed by Darin.
    
            Fix for: <rdar://problem/4928583> Memory usage grows when reloading google.com/ig
    
            JSDocuments are now responsible for marking the DOM wrappers associated with them, when they get marked.
            This fixes a JS object leak when a DOM wrapper has a reference to a JSDocument that is otherwise not reachable.
    
            Test: fast/dom/gc-10.html
    
            * WebCore.vcproj/WebCore/WebCore.vcproj:
            * WebCore.xcodeproj/project.pbxproj:
            * bindings/js/JSDocumentCustom.cpp: Added.
            (WebCore::JSDocument::mark):
            * bindings/js/kjs_binding.cpp:
            (KJS::ScriptInterpreter::markDOMNodesForDocument):
            (KJS::ScriptInterpreter::mark):
            * bindings/js/kjs_binding.h:
            * dom/Document.idl:
    
    WebKitTools:
    
            Reviewed by Darin.
    
            Test support for: <rdar://problem/4928583> Memory usage grows when reloading google.com/ig
    
            This adds a getJSObjectCount test-accessible function to allow test scripts to track JSObject usage.
    
            * DumpRenderTree/GCController.h:
            * DumpRenderTree/GCController.mm:
            (+[GCController isSelectorExcludedFromWebScript:]):
            (-[GCController getJSObjectCount]):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19013 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    74a19475