Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 16bd785340f111b10f4011713f79adfca456fb20
      
https://github.com/WebKit/WebKit/commit/16bd785340f111b10f4011713f79adfca456fb20
  Author: Chris Dumez <[email protected]>
  Date:   2025-11-05 (Wed, 05 Nov 2025)

  Changed paths:
    M 
Source/WebKit/WebProcess/Extensions/Bindings/Scripts/CodeGeneratorExtensions.pm

  Log Message:
  -----------
  Address more safer cpp warnings in generated WebExtensions code
https://bugs.webkit.org/show_bug.cgi?id=301987
rdar://164062931

Reviewed by Anne van Kesteren.

Silence warnings such as these in the generated WebExtensions code:
```
return toJS(context, getPtr(impl->onClicked()));
```

Calling `toJS()` will not destroy anything so this code cannot lead to
use-after-free despite not ref'ing the result of `impl->onClicked()`
before passing it to `toJS()`.

* 
Source/WebKit/WebProcess/Extensions/Bindings/Scripts/CodeGeneratorExtensions.pm:
(_generateImplementationFile):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to