Open Bug 1743764 Opened 3 years ago Updated 1 year ago

Preload: inconsistency in reusing the preloaded resource for fonts & styles

Categories

(Core :: Networking, defect, P2)

Firefox 94
defect

Tracking

()

People

(Reporter: noam.j.rosenthal, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36

Steps to reproduce:

See WPT: https://github.com/web-platform-tests/wpt/pull/31539

Actual results:

Fonts and styles reuse the preloaded resource even if the cors attributes don't match (fonts are to be loaded as anonymous-cors)

Expected results:

Preloaded resources (<link rel=preload />) should be reused by their consumer based on their resource types and CORS-related attributes.

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Text and Fonts' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core

The severity field is not set for this bug.
:alaskanemily, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(emcdonough)

(In reply to Noam Rosenthal from comment #0)

See WPT: https://github.com/web-platform-tests/wpt/pull/31539

Looks like this WPT landed and lives at:
https://wpt.fyi/results/preload/preload-resource-match.https.html

I assume the bug report here is about our various subtest-failures in that WPT test (though it's worth noting that nearly all of our subtest-failures also have some other browser failing the same subtest).

In any case: I'm tentatively reclassifying under Networking for triage/investigation (looks like preload bugs are mostly bucketed there, and bugbot mistakenly classified this under Layout:Text/Fonts due to the fact that one of the loaded resources here is a font).

Component: Layout: Text and Fonts → Networking
Flags: needinfo?(emcdonough)

(In reply to Daniel Holbert [:dholbert] from comment #3)

(In reply to Noam Rosenthal from comment #0)

See WPT: https://github.com/web-platform-tests/wpt/pull/31539

Looks like this WPT landed and lives at:
https://wpt.fyi/results/preload/preload-resource-match.https.html

I assume the bug report here is about our various subtest-failures in that WPT test (though it's worth noting that nearly all of our subtest-failures also have some other browser failing the same subtest).

Yes. It's part of a web performance WG effort to align the different browsers on preload behavior which was previously underspecified and differs between browsers. as part of that work we've specified the missing pieces and added corresponding WPTs and opened issue reports for the different browser engines.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [necko-triaged]

I went through this again and this could be an issue with the test rather than a problem in Firefox.
https://github.com/web-platform-tests/wpt/pull/32831

Duplicate of this bug: 1765128
Attached image preload_font.png

Looks like Bug 1765128 is the only remains failure and it is tracked there. We require mode anonymous cors to and show CORS error in devtools if it is missing. In preload there is nothing telling us to assume mode="cors". Different from modulepreload. So I think we can close this bug now.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME

Okay, we can do the tracking in this bug as well for more context.

Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: WORKSFORME → ---
Status: REOPENED → NEW
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: