Bug 1865610: part 7) Add test for internally assigned priority of font-face loaded...
commitedef12af636214e10a4cce0a5a0a9c54367b7968
authorMirko Brodesser <mbrodesser@igalia.com>
Tue, 21 Nov 2023 08:39:32 +0000 (21 08:39 +0000)
committerMirko Brodesser <mbrodesser@igalia.com>
Tue, 21 Nov 2023 08:39:32 +0000 (21 08:39 +0000)
tree266c824072c8bf8dea8085cbd26565d915ef471a
parent3063b0f66fe1bf2be42c68296e322768f14b15d5
Bug 1865610: part 7) Add test for internally assigned priority of font-face loaded from `<head>`. r=jfkthame

Tests existing behavior. It differs from Chromium's, which assigns
highest priority instead of high.

The test is added for the fetchpriority feature because loading a
font-face font has overlapping code with linking fonts via `<link
rel=preload as=font>` in `FontPreloader`
(https://searchfox.org/mozilla-central/rev/d6576544301cacc0e393fbc919c53e4e6b0d46ec/layout/style/FontPreloader.h#25).

I checked that no other tests already test this.

Daniel: see parts 8 and 9 too.

Differential Revision: https://phabricator.services.mozilla.com/D193550
testing/web-platform/mozilla/tests/fetch/fetchpriority/fetchpriority.h2.html
testing/web-platform/mozilla/tests/fetch/fetchpriority/support/font-face-tests-data.js [new file with mode: 0644]
testing/web-platform/mozilla/tests/fetch/fetchpriority/support/font-face-tests/dummy.font [new file with mode: 0644]
testing/web-platform/mozilla/tests/fetch/fetchpriority/support/font-face-tests/load-font-face-from-head.h2.html [new file with mode: 0644]