[Webkit-unassigned] [Bug 255590] New: ResourceTiming API does not include font resources loaded via CORS CSS in Safari

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 18 04:43:01 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=255590

            Bug ID: 255590
           Summary: ResourceTiming API does not include font resources
                    loaded via CORS CSS in Safari
           Product: WebKit
           Version: Safari 16
          Hardware: Mac (Apple Silicon)
                OS: macOS 13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: tibor.maerz at baqend.com

Created attachment 465958

  --> https://bugs.webkit.org/attachment.cgi?id=465958&action=review

A sample project to demonstrate the issue

Description:

We have discovered an issue with the ResourceTiming API in Safari, where font resources loaded via a CSS file from a different origin (CORS) are not included in the list of resource timings. This issue is also present in the Chrome browser.

Steps to reproduce:

1. Set up a local environment with two servers: one to serve an HTML file, and another to serve a CSS file and a font file (using CORS).
2. In the CSS file, use @font-face to load the font from the second server.
3. In the HTML file, link to the CSS file from the second server and use the font in some text.
4. Use the ResourceTiming API to log the resource timings in the browser console.
5. Open the HTML file in Safari.
6. Use the performance.getEntriesByType('resource') method to get the list of resource timings.

Expected behavior:

The font resource should be included in the list of resource timings.

Actual behavior:

The font resource is not included in the list of resource timings.

Test environment:

Safari version: 16.4
Operating System: macOS 13.3.1

Additional information:

A sample project has been prepared to demonstrate the issue. You can find the project and instructions for setting it up in the attached archive. Additionally, a bug report has been filed for the same issue in the Chrome browser, which you can find here: https://bugs.chromium.org/p/chromium/issues/detail?id=1434243 . Notably, this issue does not occur in Firefox, where the font resource is correctly included in the list of resource timings.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230418/fad80790/attachment.htm>


More information about the webkit-unassigned mailing list