[webkit-changes] [WebKit/WebKit] e00595: Suppress local variable smart pointer warning for ...

Ryosuke Niwa noreply at github.com
Sat Oct 26 23:56:06 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e00595f35d496f839f0a83de97a113eef5066c14
      https://github.com/WebKit/WebKit/commit/e00595f35d496f839f0a83de97a113eef5066c14
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2024-10-26 (Sat, 26 Oct 2024)

  Changed paths:
    M Source/WebCore/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations
    M Source/WebCore/bindings/scripts/CodeGeneratorJS.pm

  Log Message:
  -----------
  Suppress local variable smart pointer warning for ScriptExecutionContext in JS*Callback
https://bugs.webkit.org/show_bug.cgi?id=282141

Reviewed by David Kilzer.

Suppress the warning that ScriptExecutionContext needs to be a RefPtr in generated
JS*Callback.cpp files. Here, we may or may not be in the context thread and we can't
use RefPtr since ScriptExecutionContext is never thread safe ref counted.

* Source/WebCore/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations:
* Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:
(GenerateCallbackImplementationContent):

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



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


More information about the webkit-changes mailing list