[Webkit-unassigned] [Bug 33977] New: WebNode::toElement refcounts incorrectly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 21 16:04:30 PST 2010


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

           Summary: WebNode::toElement refcounts incorrectly
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jamesr at chromium.org


The following results in the refcount on 'foo' decreasing by one, when it
should stay the same:

{
  WebNode n = foo;
  WebElement e = n.toElement<WebElement>();
}

This is because WebNode::toElement() does not increment the refcount on 'foo',
but the WebElement destructor does decrement the refcount.

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