[Webkit-unassigned] [Bug 210729] New: Remove dynamic_cf_cast<>() and replace it with checked_cF_cast<>()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 19 19:30:06 PDT 2020


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

            Bug ID: 210729
           Summary: Remove dynamic_cf_cast<>() and replace it with
                    checked_cF_cast<>()
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: darin at apple.com, thorton at apple.com

Remove dynamic_cf_cast<>() and replace it with checked_cF_cast<>().

See discussion in Bug 210575, Comment #16: <https://bugs.webkit.org/show_bug.cgi?id=210575#c16>

Always checking for the correct type is the safest option, and it actually wasn't used in that many places anyway:

Source/WebCore/platform/cf/KeyedDecoderCF.cpp
Source/WebCore/platform/network/cf/NetworkStorageSessionCFNetWin.cpp
Source/WebKit/Shared/mac/WebCoreArgumentCodersMac.mm
Source/WebKit/UIProcess/mac/LegacySessionStateCoding.cpp

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200420/122c7f79/attachment.htm>


More information about the webkit-unassigned mailing list