Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 499e548453965a5a2954c06d499dbe19fc6b926a
https://github.com/WebKit/WebKit/commit/499e548453965a5a2954c06d499dbe19fc6b926a
Author: Chris Dumez <[email protected]>
Date: 2026-10-14 (Wed, 14 Oct 2026)
Changed paths:
M Source/WebCore/Modules/applepay/cocoa/PaymentSummaryItemsCocoa.mm
M Source/WebCore/Modules/mediastream/CanvasCaptureMediaStreamTrack.cpp
M Source/WebCore/Modules/mediastream/CanvasCaptureMediaStreamTrack.h
M Source/WebCore/Modules/notifications/NotificationDataCocoa.mm
M Source/WebCore/Modules/notifications/NotificationOptionsPayloadCocoa.mm
M Source/WebCore/Modules/notifications/NotificationPayloadCocoa.mm
M Source/WebCore/Modules/webdatabase/SQLTransaction.h
M Source/WebCore/Modules/webdatabase/SQLTransactionBackend.h
M Source/WebCore/Modules/webdatabase/SQLTransactionStateMachine.h
M Source/WebCore/PAL/pal/cocoa/AVFoundationSoftLink.h
M Source/WebCore/SaferCPPExpectations/MemoryUnsafeCastCheckerExpectations
M Source/WebCore/accessibility/cocoa/AXCoreObjectCocoa.mm
M Source/WebCore/accessibility/cocoa/AccessibilityObjectCocoa.mm
M Source/WebCore/accessibility/cocoa/WebAccessibilityObjectWrapperBase.mm
M Source/WebCore/accessibility/mac/AXObjectCacheMac.mm
M Source/WebCore/accessibility/mac/AccessibilityObjectMac.mm
M Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm
M Source/WebCore/bindings/js/CachedModuleScriptLoader.h
M Source/WebCore/bindings/js/JSDOMWrapper.h
M Source/WebCore/bindings/js/ScriptControllerMac.mm
M Source/WebCore/bindings/js/WorkerModuleScriptLoader.cpp
M Source/WebCore/crypto/cocoa/SerializedCryptoKeyWrapCocoa.mm
M Source/WebCore/css/typedom/numeric/CSSMathValue.h
M Source/WebCore/dom/AllDescendantsCollection.h
M Source/WebCore/dom/ComposedTreeIterator.h
M Source/WebCore/dom/Element.cpp
M Source/WebCore/dom/ElementInlines.h
M Source/WebCore/dom/LiveNodeList.h
M Source/WebCore/dom/NodeList.h
M Source/WebCore/dom/TagCollection.h
M Source/WebCore/editing/cocoa/AttributedString.mm
M Source/WebCore/editing/cocoa/EditingHTMLConverter.mm
M Source/WebCore/editing/cocoa/NodeHTMLConverter.mm
M Source/WebCore/editing/cocoa/WebArchiveResourceFromNSAttributedString.mm
M Source/WebCore/editing/mac/TextAlternativeWithRange.mm
M Source/WebCore/html/CachedHTMLCollectionInlines.h
M Source/WebCore/html/ValidityState.h
M Source/WebCore/layout/layouttree/LayoutChildIterator.h
M Source/WebCore/layout/layouttree/LayoutDescendantIterator.h
M Source/WebCore/mathml/MathMLElement.h
M Source/WebCore/mathml/MathMLRootElement.h
M Source/WebCore/mathml/MathMLRowElement.h
M Source/WebCore/mathml/MathMLScriptsElement.h
M Source/WebCore/mathml/MathMLTokenElement.h
M Source/WebCore/mathml/MathMLUnderOverElement.h
M Source/WebCore/platform/cocoa/NetworkExtensionContentFilter.mm
M Source/WebCore/platform/cocoa/PlatformSpeechSynthesizerCocoa.mm
M Source/WebCore/platform/cocoa/SearchPopupMenuCocoa.mm
M Source/WebCore/platform/cocoa/SerializedPlatformDataCueValue.mm
M Source/WebCore/platform/gamepad/cocoa/GameControllerGamepadProvider.mm
M
Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm
M
Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm
M
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
M Source/WebCore/platform/graphics/coreimage/FilterImageCoreImage.mm
M Source/WebCore/platform/graphics/opentype/OpenTypeTypes.h
M Source/WebCore/platform/mac/PlatformPasteboardMac.mm
M Source/WebCore/platform/mac/SerializedPlatformDataCueMac.mm
M Source/WebCore/platform/mac/WebCoreNSFontManagerExtras.mm
M Source/WebCore/platform/mac/WebPlaybackControlsManager.mm
M Source/WebCore/platform/mediastream/cocoa/CoreAudioCaptureUnit.mm
M Source/WebCore/platform/network/ResourceErrorBase.cpp
M Source/WebCore/platform/network/ResourceErrorBase.h
M Source/WebCore/platform/network/ResourceRequestBase.cpp
M Source/WebCore/platform/network/ResourceRequestBase.h
M Source/WebCore/platform/network/ResourceResponseBase.cpp
M Source/WebCore/platform/network/ResourceResponseBase.h
M Source/WebCore/platform/network/cocoa/CookieStorageSessionCocoa.mm
M Source/WebCore/platform/network/cocoa/NetworkLoadMetrics.mm
M Source/WebCore/platform/network/cocoa/ResourceErrorCocoa.mm
M Source/WebCore/platform/network/cocoa/ResourceRequestCocoa.mm
M Source/WebCore/platform/text/cocoa/LocalizedDateCache.mm
M Source/WebCore/rendering/RenderAncestorIterator.h
M Source/WebCore/rendering/RenderChildIterator.h
M Source/WebCore/rendering/RenderDescendantIterator.h
M Source/WebCore/rendering/RenderTableCol.cpp
M Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp
M Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp
M Source/WebCore/rendering/mathml/RenderMathMLPadded.cpp
M Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp
M Source/WebCore/rendering/mathml/RenderMathMLRow.cpp
M Source/WebCore/rendering/mathml/RenderMathMLScripts.cpp
M Source/WebCore/rendering/mathml/RenderMathMLSpace.cpp
M Source/WebCore/rendering/mathml/RenderMathMLToken.cpp
M Source/WebCore/rendering/mathml/RenderMathMLUnderOver.cpp
M Source/WebCore/rendering/svg/RenderSVGResourceFilterPrimitive.cpp
M
Source/WebCore/rendering/svg/legacy/LegacyRenderSVGResourceFilterPrimitive.cpp
M
Source/WebCore/rendering/svg/legacy/LegacyRenderSVGResourceGradientInlines.h
M Source/WebCore/testing/Internals.mm
Log Message:
-----------
[Safer CPP] Address a lot of unsafe cast warnings in Source/WebCore
https://bugs.webkit.org/show_bug.cgi?id=327239
Reviewed by Geoffrey Garen.
* Source/WebCore/Modules/applepay/cocoa/PaymentSummaryItemsCocoa.mm:
(WebCore::platformRecurringSummaryItem):
(WebCore::platformDeferredSummaryItem):
(WebCore::platformAutomaticReloadSummaryItem):
(WebCore::platformSummaryItem):
* Source/WebCore/Modules/mediastream/CanvasCaptureMediaStreamTrack.cpp:
(WebCore::CanvasCaptureMediaStreamTrack::requestFrame):
(WebCore::CanvasCaptureMediaStreamTrack::grabFrame):
* Source/WebCore/Modules/mediastream/CanvasCaptureMediaStreamTrack.h:
(isType):
* Source/WebCore/Modules/notifications/NotificationDataCocoa.mm:
(WebCore::NotificationData::fromDictionary):
* Source/WebCore/Modules/notifications/NotificationOptionsPayloadCocoa.mm:
(WebCore::NotificationOptionsPayload::fromDictionary):
* Source/WebCore/Modules/notifications/NotificationPayloadCocoa.mm:
(WebCore::NotificationPayload::fromDictionary):
* Source/WebCore/Modules/webdatabase/SQLTransaction.h:
(isType):
* Source/WebCore/Modules/webdatabase/SQLTransactionBackend.h:
(isType):
* Source/WebCore/Modules/webdatabase/SQLTransactionStateMachine.h:
(WebCore::SQLTransactionStateMachine<T>::runStateMachine):
* Source/WebCore/PAL/pal/cocoa/AVFoundationSoftLink.h:
* Source/WebCore/SaferCPPExpectations/MemoryUnsafeCastCheckerExpectations:
* Source/WebCore/accessibility/cocoa/AXCoreObjectCocoa.mm:
(WebCore::AXCoreObject::rolePlatformDescription):
(WebCore::AXCoreObject::rolePlatformString):
* Source/WebCore/accessibility/cocoa/AccessibilityObjectCocoa.mm:
(WebCore::AccessibilityObject::attributedStringForRange const):
* Source/WebCore/accessibility/cocoa/WebAccessibilityObjectWrapperBase.mm:
(-[WebAccessibilityObjectWrapperBase accessibilityCustomContent]):
(-[WebAccessibilityObjectWrapperBase lineRectsAndText]):
(arrayRemovingNonSupportedTypes):
(dictionaryRemovingNonSupportedTypes):
(makeVectorElement):
(accessibilitySearchCriteriaForSearchPredicate):
* Source/WebCore/accessibility/mac/AXObjectCacheMac.mm:
(WebCore::AXPostNotificationWithUserInfo):
* Source/WebCore/accessibility/mac/AccessibilityObjectMac.mm:
(WebCore::AccessibilityObject::subrolePlatformString const):
* Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(accessibilityTextCriteriaForParameterizedAttribute):
(accessibilitySearchTextCriteriaForParameterizedAttribute):
(accessibilityTextOperationForParameterizedAttribute):
(misspellingSearchCriteriaForParameterizedAttribute):
(-[WebAccessibilityObjectWrapper
_accessibilityHitTestResolvingRemoteFrame:callback:]):
* Source/WebCore/bindings/js/CachedModuleScriptLoader.h:
* Source/WebCore/bindings/js/JSDOMWrapper.h:
(WebCore::JSDOMEmbedderArrayLikeWrapper::wrapped const):
* Source/WebCore/bindings/js/ScriptControllerMac.mm:
(WebCore::ScriptController::windowScriptObject):
* Source/WebCore/bindings/js/WorkerModuleScriptLoader.cpp:
(WebCore::WorkerModuleScriptLoader::load):
* Source/WebCore/crypto/cocoa/SerializedCryptoKeyWrapCocoa.mm:
(WebCore::readSerializedCryptoKey):
* Source/WebCore/css/typedom/numeric/CSSMathValue.h:
(WebCore::CSSMathValue::equalsImpl const):
* Source/WebCore/dom/ComposedTreeIterator.h:
(WebCore::ComposedTreeChildAdapter::Iterator::operator++):
* Source/WebCore/dom/Element.cpp:
(WebCore::Element::ensureElementRareData):
(WebCore::Element::synchronizeAllAttributes const):
(WebCore::Element::synchronizeAttribute const):
* Source/WebCore/dom/ElementInlines.h:
(WebCore::Element::ensureUniqueElementData):
* Source/WebCore/dom/LiveNodeList.h:
(WebCore::CachedLiveNodeList::nodeList const):
* Source/WebCore/dom/NodeList.h:
(isType):
* Source/WebCore/dom/TagCollection.h:
* Source/WebCore/editing/cocoa/AttributedString.mm:
(WebCore::reconstructStyle):
* Source/WebCore/editing/cocoa/EditingHTMLConverter.mm:
(WebCore::attributedStringWithAttachmentForFileWrapper):
* Source/WebCore/editing/cocoa/NodeHTMLConverter.mm:
(_fontForNameAndSize):
* Source/WebCore/editing/cocoa/WebArchiveResourceFromNSAttributedString.mm:
(-[WebArchiveResourceFromNSAttributedString
initWithData:URL:MIMEType:textEncodingName:frameName:]):
* Source/WebCore/editing/mac/TextAlternativeWithRange.mm:
(WebCore::collectDictationTextAlternatives):
* Source/WebCore/html/CachedHTMLCollectionInlines.h:
(WebCore::CachedHTMLCollection<HTMLCollectionClass>::length const):
(WebCore::CachedHTMLCollection<HTMLCollectionClass>::item const):
(WebCore::CachedHTMLCollection<HTMLCollectionClass>::namedItem const):
(WebCore::CachedHTMLCollection<HTMLCollectionClass>::collectionBegin const):
(WebCore::CachedHTMLCollection<HTMLCollectionClass>::collectionLast const):
(WebCore::CachedHTMLCollection<HTMLCollectionClass>::collectionTraverseForward
const):
(WebCore::CachedHTMLCollection<HTMLCollectionClass>::collectionTraverseBackward
const):
* Source/WebCore/html/ValidityState.h:
(WebCore::FormListedElement::validity):
* Source/WebCore/layout/layouttree/LayoutChildIterator.h:
(WebCore::Layout::LayoutChildIterator<T>::operator):
* Source/WebCore/layout/layouttree/LayoutDescendantIterator.h:
(WebCore::Layout::LayoutDescendantIterator<T>::operator):
* Source/WebCore/mathml/MathMLElement.h:
(WebCore::MathMLElement::isMathMLRowElement const):
* Source/WebCore/mathml/MathMLRootElement.h:
(isType):
* Source/WebCore/mathml/MathMLRowElement.h:
(isType):
* Source/WebCore/mathml/MathMLScriptsElement.h:
(isType):
* Source/WebCore/mathml/MathMLTokenElement.h:
(isType):
* Source/WebCore/mathml/MathMLUnderOverElement.h:
(isType):
* Source/WebCore/platform/cocoa/NetworkExtensionContentFilter.mm:
(replacementDataFromDecisionInfo):
* Source/WebCore/platform/cocoa/PlatformSpeechSynthesizerCocoa.mm:
(-[WebSpeechSynthesisWrapper speakUtterance:]):
* Source/WebCore/platform/cocoa/SearchPopupMenuCocoa.mm:
(WebCore::saveRecentSearchesToFile):
* Source/WebCore/platform/cocoa/SerializedPlatformDataCueValue.mm:
(WebCore::SerializedPlatformDataCueValue::SerializedPlatformDataCueValue):
* Source/WebCore/platform/gamepad/cocoa/GameControllerGamepadProvider.mm:
(WebCore::GameControllerGamepadProvider::startMonitoringGamepads):
*
Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm:
(WebCore::CDMInstanceSessionFairPlayStreamingAVFObjC::updateLicense):
*
Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm:
(WebCore::CDMSessionAVContentKeySession::update):
(WebCore::CDMSessionAVContentKeySession::createContentKeySession):
*
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::clearMediaCache):
(-[WebCoreAVFMovieObserver observeValueForKeyPath:ofObject:change:context:]):
* Source/WebCore/platform/graphics/coreimage/FilterImageCoreImage.mm:
(WebCore::FilterImage::filterResultImageBuffer):
* Source/WebCore/platform/graphics/opentype/OpenTypeTypes.h:
(isType):
(WebCore::OpenType::TableWithCoverage::getCoverageIndex const):
* Source/WebCore/platform/mac/PlatformPasteboardMac.mm:
(WebCore::PlatformPasteboard::bufferForType const):
(WebCore::PlatformPasteboard::getPathnamesForType const):
(WebCore::PlatformPasteboard::copy):
(WebCore::PlatformPasteboard::readBuffer const):
* Source/WebCore/platform/mac/SerializedPlatformDataCueMac.mm:
(WebCore::jsValueWithValueInContext):
(WebCore::jsValueWithDictionaryInContext):
* Source/WebCore/platform/mac/WebCoreNSFontManagerExtras.mm:
(WebCore::computedFontAttributeChanges):
* Source/WebCore/platform/mac/WebPlaybackControlsManager.mm:
(-[WebPlaybackControlsManager
setAudioMediaSelectionOptions:withSelectedIndex:]):
(-[WebPlaybackControlsManager
setLegibleMediaSelectionOptions:withSelectedIndex:]):
* Source/WebCore/platform/mediastream/cocoa/CoreAudioCaptureUnit.mm:
(-[WebCoreAudioInputMuteChangeListener handleMuteStatusChangedNotification:]):
* Source/WebCore/platform/network/ResourceErrorBase.cpp:
(WebCore::ResourceErrorBase::asResourceError const):
(WebCore::ResourceErrorBase::lazyInit const):
* Source/WebCore/platform/network/ResourceErrorBase.h:
(isType):
* Source/WebCore/platform/network/ResourceRequestBase.cpp:
(WebCore::ResourceRequestBase::asResourceRequest const):
* Source/WebCore/platform/network/ResourceRequestBase.h:
(isType):
* Source/WebCore/platform/network/ResourceResponseBase.cpp:
(WebCore::ResourceResponseBase::includeCertificateInfo const):
(WebCore::ResourceResponseBase::suggestedFilename const):
(WebCore::ResourceResponseBase::lazyInit const):
* Source/WebCore/platform/network/ResourceResponseBase.h:
(isType):
* Source/WebCore/platform/network/cocoa/CookieStorageSessionCocoa.mm:
(WebCore::CookieStorageSession::capExpiryOfPersistentCookie):
(WebCore::CookieStorageSession::setCookiePartition):
(WebCore::adjustScriptWrittenCookie):
(WebCore::CookieStorageSession::deleteCookie const):
* Source/WebCore/platform/network/cocoa/NetworkLoadMetrics.mm:
(WebCore::copyTimingData):
* Source/WebCore/platform/network/cocoa/ResourceErrorCocoa.mm:
(WebCore::ResourceError::blockedTrackerHostName const):
* Source/WebCore/platform/network/cocoa/ResourceRequestCocoa.mm:
(WebCore::ResourceRequest::doUpdateResourceRequest):
(WebCore::ResourceRequest::doUpdatePlatformRequest):
(WebCore::ResourceRequest::doUpdatePlatformHTTPBody):
* Source/WebCore/platform/text/cocoa/LocalizedDateCache.mm:
(WebCore::LocalizedDateCache::estimateMaximumWidth):
* Source/WebCore/rendering/RenderAncestorIterator.h:
(WebCore::RenderAncestorIterator<T>::operator):
(WebCore::RenderAncestorConstIterator<T>::operator):
* Source/WebCore/rendering/RenderChildIterator.h:
(WebCore::RenderChildIterator<T>::operator):
(WebCore::RenderChildConstIterator<T>::operator):
* Source/WebCore/rendering/RenderDescendantIterator.h:
(WebCore::RenderDescendantIterator<T>::operator):
(WebCore::RenderDescendantConstIterator<T>::operator):
(WebCore::RenderDescendantPostOrderIterator<T>::operator):
* Source/WebCore/rendering/RenderTableCol.cpp:
(WebCore::RenderTableCol::updateFromElement):
* Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp:
(WebCore::RenderMathMLFraction::element const):
* Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp:
(WebCore::RenderMathMLOperator::element const):
* Source/WebCore/rendering/mathml/RenderMathMLPadded.cpp:
(WebCore::RenderMathMLPadded::element const):
* Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp:
(WebCore::RenderMathMLRoot::element const):
* Source/WebCore/rendering/mathml/RenderMathMLRow.cpp:
(WebCore::RenderMathMLRow::element const):
* Source/WebCore/rendering/mathml/RenderMathMLScripts.cpp:
(WebCore::RenderMathMLScripts::element const):
* Source/WebCore/rendering/mathml/RenderMathMLSpace.cpp:
(WebCore::RenderMathMLSpace::element const):
* Source/WebCore/rendering/mathml/RenderMathMLToken.cpp:
(WebCore::RenderMathMLToken::element):
* Source/WebCore/rendering/mathml/RenderMathMLUnderOver.cpp:
(WebCore::RenderMathMLUnderOver::element const):
* Source/WebCore/rendering/svg/RenderSVGResourceFilterPrimitive.cpp:
(WebCore::RenderSVGResourceFilterPrimitive::filterPrimitiveElement const):
*
Source/WebCore/rendering/svg/legacy/LegacyRenderSVGResourceFilterPrimitive.cpp:
(WebCore::LegacyRenderSVGResourceFilterPrimitive::filterPrimitiveElement const):
* Source/WebCore/rendering/svg/legacy/LegacyRenderSVGResourceGradientInlines.h:
(WebCore::LegacyRenderSVGResourceGradient::gradientElement const):
* Source/WebCore/testing/Internals.mm:
(WebCore::Internals::fakeDataDetectorResultForTesting):
Canonical link: https://commits.webkit.org/323706@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications