[Webkit-unassigned] [Bug 104830] Document is never released when an Image is created inside unload event listener.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 12 22:50:03 PST 2012


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





--- Comment #6 from Yongjun Zhang <yongjun_zhang at apple.com>  2012-12-12 22:52:25 PST ---
(In reply to comment #5)
> (From update of attachment 179112 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=179112&action=review
> 
> > Source/WebCore/loader/ImageLoader.cpp:203
> > +        Frame* frame = document()->frame();
> > +        bool pageIsBeingDismissed = frame && frame->loader()->pageDismissalEventBeingDispatched() != FrameLoader::NoDismissal;
> 
> It seems wasteful to do all this computation when newImage is non-zero. Could you put this into a helper function so it’s only computed when newImage is 0?

yes that is a good point. I will make it into a help function which only get called when image is 0.

-- 
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