[Webkit-unassigned] [Bug 48549] New: refcount assertion on WebPageProxy, when closing a window

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 28 12:19:09 PDT 2010


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

           Summary: refcount assertion on WebPageProxy, when closing a
                    window
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: zbujtas at gmail.com


ASSERTION FAILED: m_refCount > 0
(../../../qtwebkit-webkit2-dev/JavaScriptCore/wtf/RefCounted.h:83 bool WTF::RefCountedBase::derefBase())
occurs when closing a window.
Apparently a ref is missing, when WebPageProxy is destroyed. I am still yet to check it out on Mac, but with Qt, it is easy to reproduce. 
It looks like, during the construction of a new page, we lose one ref in WebUIClient::createNewPage(), when we call adoptRef on the WebPageProxy object. I'm puzzled why this adoptRef is called (WebUIClient.cpp line#78), when we already call adoptRef on the object, when it is being created (WebPageProxy::create()). Looking at the 'new page' callback backtrace, I can't see where this extra (adopted) ref would come from.
When adoptRef() is removed, refcount goes back to normal and no assert on window.close().

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