Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8fb7be5683f43a48a723b6a950bfe6268fe02118
      
https://github.com/WebKit/WebKit/commit/8fb7be5683f43a48a723b6a950bfe6268fe02118
  Author: Anthony Tarbinian <[email protected]>
  Date:   2025-09-09 (Tue, 09 Sep 2025)

  Changed paths:
    M Source/WebCore/bindings/js/JSDOMBindingSecurity.cpp

  Log Message:
  -----------
  [Site Isolation] change downcast to dynamicDowncast in 
JSDOMBindingSecurity::remoteFrameAccessError
https://bugs.webkit.org/show_bug.cgi?id=297874
rdar://159134034

Reviewed by Alex Christensen.

Change a downcast to a dynamicDowncast to handle cases where an invalid 
downcast between a RemoteDOMWindow to a LocalDOMWindow was attempted. 
Previously, if the cast failed, an assert was tripped and caused a crash.

See Bugzilla for steps to reproduce. The crash only occurred with Site 
Isolation enabled.

* Source/WebCore/bindings/js/JSDOMBindingSecurity.cpp:
(WebCore::remoteFrameAccessError):

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