Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b920f4835a7183a0a2dfb1aaf7b56443b2795d28
      
https://github.com/WebKit/WebKit/commit/b920f4835a7183a0a2dfb1aaf7b56443b2795d28
  Author: Zak Ridouh <[email protected]>
  Date:   2026-02-05 (Thu, 05 Feb 2026)

  Changed paths:
    M Source/WebCore/history/BackForwardController.cpp
    M Source/WebCore/history/BackForwardController.h
    M Source/WebCore/history/CachedPage.cpp
    M Source/WebCore/history/CachedPage.h
    M Source/WebCore/loader/FrameLoader.cpp

  Log Message:
  -----------
  Adopt protect() for memory safety in WebCore/history
https://bugs.webkit.org/show_bug.cgi?id=306999
rdar://169657277

Reviewed by Chris Dumez.

Adopt the `protect()` style instead of `protectedFoo()` in WebCore/history

* Source/WebCore/history/BackForwardController.cpp:
(WebCore::BackForwardController::goBackOrForward):
(WebCore::BackForwardController::goBack):
(WebCore::BackForwardController::goForward):
(WebCore::BackForwardController::protectedPage const): Deleted.
* Source/WebCore/history/BackForwardController.h:
* Source/WebCore/history/CachedPage.cpp:
(WebCore::CachedPage::protectedDocumentLoader const): Deleted.
* Source/WebCore/history/CachedPage.h:
* Source/WebCore/loader/FrameLoader.cpp:
(WebCore::FrameLoader::transitionToCommitted):

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



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

Reply via email to