Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0b5d096122e29e92bc744daddac4009cbe966b0c
      
https://github.com/WebKit/WebKit/commit/0b5d096122e29e92bc744daddac4009cbe966b0c
  Author: Yoav Weiss <[email protected]>
  Date:   2025-12-11 (Thu, 11 Dec 2025)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/speculation-rules/header-only-top-level-expected.txt
    M Source/WebCore/loader/FrameLoader.cpp

  Log Message:
  -----------
  SpeculationRules - header only processed on main frame
https://bugs.webkit.org/show_bug.cgi?id=303975

Reviewed by Alex Christensen.

According to the spec, the Speculation-Rules header should only be processed on 
the top-level frame.
This PR aligns the implementation to the spec, and gets the relevant test to 
pass.

No new tests, but progression on existing test.

* 
LayoutTests/imported/w3c/web-platform-tests/speculation-rules/header-only-top-level-expected.txt:
 Progression.
* Source/WebCore/loader/FrameLoader.cpp:
(WebCore::FrameLoader::receivedFirstData): Add an `isMainFrame()` condition.

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



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

Reply via email to