Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0f2bfc5f793e6eea4d731c80c339142c749b4bf5
      
https://github.com/WebKit/WebKit/commit/0f2bfc5f793e6eea4d731c80c339142c749b4bf5
  Author: Cole Carley <[email protected]>
  Date:   2026-02-06 (Fri, 06 Feb 2026)

  Changed paths:
    M Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp

  Log Message:
  -----------
  Fix WebLocalFrameLoaderClient allows sending requests to remote frames
https://bugs.webkit.org/show_bug.cgi?id=306987
rdar://169652883

Reviewed by Sihui Liu.

imported/w3c/web-platform-tests/resource-timing/iframe-failed-commit.html was 
failing in
site isolation due to a crash caused in 
InjectedBundlePage::willSendRequestForFrame.

willSendRequestForFrame was given a reference to a remote frame. The function 
constructs
a script and tries to execute it using the frames jsContext. You can only 
access the context
if the frame is local.

I added a check to return the request early if the jsContext is null.

* Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
(WTR::InjectedBundlePage::willSendRequestForFrame):

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



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

Reply via email to