diff --git a/preload/link-header-preload.html b/preload/link-header-preload.html index e70315e377d0ac..5a477867fb9c99 100644 --- a/preload/link-header-preload.html +++ b/preload/link-header-preload.html @@ -7,8 +7,16 @@ fail. --> + + @@ -24,7 +32,9 @@ numberOfResourceTimingEntries("resources/dummy.js?link-header-preload2") == 1 && numberOfResourceTimingEntries("resources/dummy.css?link-header-preload") == 1 && numberOfResourceTimingEntries("resources/dummy.css?link-header-crossorigin-preload1") == 1 && - numberOfResourceTimingEntries("resources/dummy.css?link-header-crossorigin-preload2") == 1) { + numberOfResourceTimingEntries("resources/dummy.css?link-header-crossorigin-preload1") == 1 && + numberOfResourceTimingEntries("resources/font.ttf?link-header-crossorigin-preload1") == 1 && + numberOfResourceTimingEntries("resources/font.ttf?link-header-crossorigin-preload2") == 1) { done(); } iterations++; @@ -36,6 +46,8 @@ verifyNumberOfResourceTimingEntries("resources/dummy.css?link-header-preload", 1); verifyNumberOfResourceTimingEntries("resources/dummy.css?link-header-crossorigin-preload1", 1); verifyNumberOfResourceTimingEntries("resources/dummy.css?link-header-crossorigin-preload2", 1); + verifyNumberOfResourceTimingEntries("resources/font.ttf?link-header-crossorigin-preload1", 1); + verifyNumberOfResourceTimingEntries("resources/font.ttf?link-header-crossorigin-preload2", 1); done(); } else { step_timeout(check_finished, 500); @@ -47,4 +59,5 @@ step_timeout(check_finished, 500); }); +PASS - this text is here just so that the browser will download the font. diff --git a/preload/link-header-preload.html.headers b/preload/link-header-preload.html.headers index 338da6b5f856f2..83670cd86e34c3 100644 --- a/preload/link-header-preload.html.headers +++ b/preload/link-header-preload.html.headers @@ -6,3 +6,5 @@ Link: ;rel=preload;as=style Link: ;rel=preload;as=image Link: ;rel=preload;as=style;crossorigin Link: ;rel=preload;as=style;crossorigin +Link: ;rel=preload;as=font;crossorigin="anonymous" +Link: ;rel=preload;as=font;crossorigin="anonymous"