[Webkit-unassigned] [Bug 29224] New: FrameLoadType and WebFrameLoadType conversion broken

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Sep 12 14:29:17 PDT 2009


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

           Summary: FrameLoadType and WebFrameLoadType conversion broken
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: aegolden at gmail.com


FrameLoadType and WebFrameLoadType are enumerated differently, but there is at
least one C-cast between the two types, -[WebFrame _loadType] is implemented
as:

- (WebFrameLoadType)_loadType
{
    return (WebFrameLoadType)_private->coreFrame->loader()->loadType();
}

and the types are:

enum FrameLoadType {
    FrameLoadTypeStandard,
    FrameLoadTypeBack,
    FrameLoadTypeForward,
    FrameLoadTypeIndexedBackForward, // a multi-item hop in the backforward
list
    FrameLoadTypeReload,
    FrameLoadTypeSame,               // user loads same URL again (but not
reload button)
    FrameLoadTypeRedirectWithLockedBackForwardList, // FIXME: Merge
"lockBackForwardList", "lockHistory", "quickRedirect" and "clientRedirect" into
a single concept of redirect.
    FrameLoadTypeReplace,
    FrameLoadTypeReloadFromOrigin
};

typedef enum {
    WebFrameLoadTypeStandard,
    WebFrameLoadTypeBack,
    WebFrameLoadTypeForward,
    WebFrameLoadTypeIndexedBackForward, // a multi-item hop in the backforward
list
    WebFrameLoadTypeReload,
    WebFrameLoadTypeReloadAllowingStaleData,
    WebFrameLoadTypeSame,               // user loads same URL again (but not
reload button)
    WebFrameLoadTypeInternal,           // maps to
WebCore::FrameLoadTypeRedirectWithLockedBackForwardList
    WebFrameLoadTypeReplace,
    WebFrameLoadTypeReloadFromOrigin,
    WebFrameLoadTypeBackWMLDeckNotAccessible
} WebFrameLoadType;

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