[webkit-changes] [WebKit/WebKit] b22cc9: Stop using CheckedPtr with DOMWrapperWorld

Chris Dumez noreply at github.com
Thu Dec 14 14:46:30 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b22cc9a66eeaa34e1c4d48bba25e7ea6d1793c3d
      https://github.com/WebKit/WebKit/commit/b22cc9a66eeaa34e1c4d48bba25e7ea6d1793c3d
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-12-14 (Thu, 14 Dec 2023)

  Changed paths:
    M Source/WebCore/bindings/js/DOMWrapperWorld.h
    M Source/WebKit/WebProcess/InjectedBundle/InjectedBundleScriptWorld.cpp
    M Source/WebKitLegacy/mac/WebView/WebScriptWorld.mm

  Log Message:
  -----------
  Stop using CheckedPtr with DOMWrapperWorld
https://bugs.webkit.org/show_bug.cgi?id=266424

Reviewed by Ryosuke Niwa.

Use WeakPtr instead to get more actionable crashes.

* Source/WebCore/bindings/js/DOMWrapperWorld.h:
* Source/WebKit/WebProcess/InjectedBundle/InjectedBundleScriptWorld.cpp:
(WebKit::InjectedBundleScriptWorld::InjectedBundleScriptWorld):
(WebKit::InjectedBundleScriptWorld::~InjectedBundleScriptWorld):
* Source/WebKitLegacy/mac/WebView/WebScriptWorld.mm:

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




More information about the webkit-changes mailing list