Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2b43f90a5e59134035c06f29fc70e511be7c5b3f
      
https://github.com/WebKit/WebKit/commit/2b43f90a5e59134035c06f29fc70e511be7c5b3f
  Author: Ryan Reno <[email protected]>
  Date:   2025-10-11 (Sat, 11 Oct 2025)

  Changed paths:
    M Source/WebCore/page/Navigation.cpp

  Log Message:
  -----------
  Missed optional value check in Navigation::canGoBack and 
Navigation::canGoForward can cause a crash.
https://bugs.webkit.org/show_bug.cgi?id=300536
rdar://129921367

Reviewed by Rupin Mittal.

The Navigation.canGoBack/canGoForward properties can be accessed when we don't 
have a current index.
This adds a check to see if the optional value is engaged before we try to 
dereference it.

No tests as there's no new behavior.

* Source/WebCore/page/Navigation.cpp:
(WebCore::Navigation::canGoBack const):
(WebCore::Navigation::canGoForward const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to