[Webkit-unassigned] [Bug 98943] New: Incorrect/Illegal static cast in FrameView.cpp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 10 12:12:10 PDT 2012


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

           Summary: Incorrect/Illegal static cast in FrameView.cpp
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Other
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: cmtice at chromium.org


The file Webcore/page/FrameView.cpp contains an illegal/incorrect static cast.

On line 337, the static cast of ownerElement to an HTMLFrameElement
was not correct, because sometimes ownerElement could contain an
HTMLIFrameElement. HTMLIFrameElement is a sibling class of HTMLFrameElement.
The correct static cast is to an HTMLFrameElementBase, which is a base
class for both of the other classes.

The attached file contains the fix for this problem.

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