Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6de2c97febf065e4e8a7dd7f24ee042523ed27fe
      
https://github.com/WebKit/WebKit/commit/6de2c97febf065e4e8a7dd7f24ee042523ed27fe
  Author: Abrar Rahman Protyasha <a_protya...@apple.com>
  Date:   2025-03-26 (Wed, 26 Mar 2025)

  Changed paths:
    M Source/WebKit/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations
    M Source/WebKit/WebProcess/Plugins/WebPluginInfoProvider.cpp

  Log Message:
  -----------
  [Safer CPP] Address UncountedLocalVars warnings in WebPluginInfoProvider.cpp
https://bugs.webkit.org/show_bug.cgi?id=290470
rdar://147953280

Reviewed by Alex Christensen and Chris Dumez.

Namely, we want to store the provider in a Ref<>.

```
/Volumes/Data/worker/macOS-Safer-CPP-Checks-EWS/build/Source/WebKit/WebProcess/Plugins/WebPluginInfoProvider.cpp:39:18:
 warning: Static local variable 'pluginInfoProvider' is uncounted and unsafe 
[alpha.webkit.UncountedLocalVarsChecker]
   39 |     static auto& pluginInfoProvider = adoptRef(*new 
WebPluginInfoProvider).leakRef();
      |     
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

* Source/WebKit/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations:
* Source/WebKit/WebProcess/Plugins/WebPluginInfoProvider.cpp:
(WebKit::WebPluginInfoProvider::singleton):

Canonical link: https://commits.webkit.org/292746@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