[webkit-changes] [WebKit/WebKit] 0d08a5: Use LazyNeverDestroyed in `static TextCheckerState...

Charlie Wolfe noreply at github.com
Mon Sep 23 17:07:59 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0d08a5fd7147e5b569047c08954ad7c9a7e32109
      https://github.com/WebKit/WebKit/commit/0d08a5fd7147e5b569047c08954ad7c9a7e32109
  Author: Charlie Wolfe <charliew at apple.com>
  Date:   2024-09-23 (Mon, 23 Sep 2024)

  Changed paths:
    M Source/WebKit/UIProcess/mac/TextCheckerMac.mm

  Log Message:
  -----------
  Use LazyNeverDestroyed in `static TextCheckerState& mutableState()`
https://bugs.webkit.org/show_bug.cgi?id=280209
rdar://133862081

Reviewed by Alex Christensen.

Speculative fix. Crash reports indicate that mutableState() can be corrupted such that it contains
non-bool values. Use LazyNeverDestroyed + dispatch_once to avoid issues when statically initializing this
object from multiple threads.

* Source/WebKit/UIProcess/mac/TextCheckerMac.mm:
(WebKit::mutableState):

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