Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7b92378a90e6a02c21193d3bb25158ca7cc6885c
      
https://github.com/WebKit/WebKit/commit/7b92378a90e6a02c21193d3bb25158ca7cc6885c
  Author: Anne van Kesteren <ann...@annevk.nl>
  Date:   2025-04-12 (Sat, 12 Apr 2025)

  Changed paths:
    M Source/WebCore/Modules/cache/DOMCache.cpp
    M 
Source/WebCore/SaferCPPExpectations/UncountedLambdaCapturesCheckerExpectations
    M Source/WebCore/dom/ContainerNode.cpp
    M Source/WebCore/dom/EventListenerMap.h
    M Source/WebCore/dom/EventTarget.h
    M Source/WebCore/dom/MessagePort.cpp
    M Source/WebCore/dom/Node.cpp
    M Source/WebCore/dom/ViewTransition.cpp
    M Source/WebCore/dom/ViewportArguments.cpp
    M Source/WebCore/dom/ViewportArguments.h

  Log Message:
  -----------
  Reduce unsafe lambdas in WebCore/dom
https://bugs.webkit.org/show_bug.cgi?id=291416

Reviewed by Chris Dumez.

As per Safer CPP Guidelines:

- 
https://github.com/WebKit/WebKit/wiki/Safer-CPP-Guidelines#capture-protectedthis-or-weakthis-in-asynchronous-lambdas-where-you-need-to-use-this
- 
https://github.com/WebKit/WebKit/wiki/Safer-CPP-Guidelines#annotate-noescape-when-a-function-uses-a-lambda-synchronously

* Source/WebCore/Modules/cache/DOMCache.cpp:
(WebCore::DOMCache::put):
(WebCore::DOMCache::queryCache):
(WebCore::DOMCache::batchDeleteOperation):
(WebCore::DOMCache::batchPutOperation):
* 
Source/WebCore/SaferCPPExpectations/UncountedLambdaCapturesCheckerExpectations:
* Source/WebCore/dom/ContainerNode.cpp:
(WebCore::executeNodeInsertionWithScriptAssertion):
(WebCore::executeParserNodeInsertionIntoIsolatedTreeWithoutNotifyingParent):
* Source/WebCore/dom/EventListenerMap.h:
(WebCore::EventListenerMap::enumerateEventListenerTypes const):
(WebCore::EventListenerMap::containsMatchingEventListener const):
* Source/WebCore/dom/EventTarget.h:
(WebCore::EventTarget::enumerateEventListenerTypes const):
(WebCore::EventTarget::containsMatchingEventListener const):
* Source/WebCore/dom/MessagePort.cpp:
(WebCore::MessagePort::dispatchMessages):
* Source/WebCore/dom/Node.cpp:
(WebCore::traverseSubtreeToUpdateTreeScope):
* Source/WebCore/dom/ViewTransition.cpp:
(WebCore::ViewTransition::skipViewTransition):
(WebCore::ViewTransition::callUpdateCallback):
(WebCore::ViewTransition::setupViewTransition):
(WebCore::forEachRendererInPaintOrder):
* Source/WebCore/dom/ViewportArguments.cpp:
(WebCore::numericPrefix):
(WebCore::findSizeValue):
(WebCore::findScaleValue):
(WebCore::findBooleanValue):
(WebCore::parseViewportFitValue):
(WebCore::setViewportFeature):
* Source/WebCore/dom/ViewportArguments.h:

Canonical link: https://commits.webkit.org/293625@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to