Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bca3cf4a99ae2b51d7424929b82b306788cdcb0f
      
https://github.com/WebKit/WebKit/commit/bca3cf4a99ae2b51d7424929b82b306788cdcb0f
  Author: Yoav Weiss <[email protected]>
  Date:   2025-10-06 (Mon, 06 Oct 2025)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/inline-speculation-rules-after-stylesheet.https-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/inline-speculation-rules-after-stylesheet.https.html

  Log Message:
  -----------
  SpeculationRules: Test that inline rules after an external stylesheet work
https://bugs.webkit.org/show_bug.cgi?id=300078

Reviewed by Alex Christensen.

https://bugs.webkit.org/show_bug.cgi?id=300039 was a result of an untested 
path: inline speculation rules script after an external stylesheet.
Scripts after a stylesheet are handled in executePendingScript, and that code 
wasn't ready for speculation rules.
As a result, we triggered an ASSERT that didn't take the speculation rules type 
into account, and weren't registering speculation rules in that case.

This PR adds the relevant tests to make sure this path is exercised.

* 
LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/inline-speculation-rules-after-stylesheet.https-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/speculation-rules/prefetch/inline-speculation-rules-after-stylesheet.https.html:
 Added.

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