[Webkit-unassigned] [Bug 40926] high and unfreed memory usage on script tag insertion

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 14 14:25:14 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=40926





--- Comment #4 from Alexey Proskuryakov <ap at webkit.org>  2010-12-14 14:25:14 PST ---
This is caused by this code in JSDOMBinding.h:

        // If a wrapper is the last reference to an image or script element
        // that is loading but not in the document, the wrapper is observable
        // because it is the only thing keeping the image element alive, and if
        // the image element is destroyed, its load event will not fire.
        // FIXME: The DOM should manage this issue without the help of JavaScript wrappers.
        if (node->hasTagName(imgTag) && !static_cast<HTMLImageElement*>(node)->haveFiredLoadEvent())
            return true;
        if (node->hasTagName(scriptTag) && !static_cast<HTMLScriptElement*>(node)->haveFiredLoadEvent())
            return true;
#if ENABLE(VIDEO)
        if (node->hasTagName(audioTag) && !static_cast<HTMLAudioElement*>(node)->paused())
            return true;
#endif

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list