Skip to content

Test different scenarios with subresource Link headers - #33167

Open
noamr wants to merge 10 commits into
masterfrom
preload-subresource
Open

Test different scenarios with subresource Link headers#33167
noamr wants to merge 10 commits into
masterfrom
preload-subresource

Conversation

@noamr

@noamr noamr commented Mar 13, 2022

Copy link
Copy Markdown
Contributor

No description provided.

@wpt-pr-bot
wpt-pr-bot requested review from snuggs and yoavweiss March 13, 2022 08:19
@noamr
noamr force-pushed the preload-subresource branch from bc844bd to 6adaf4b Compare April 17, 2022 10:53
@noamr noamr changed the title Check different scenario with subresource Link headers Apr 17, 2022
promise_test(async t => {
const style = {as: 'style', href: '/preload/resources/dummy-preloads-subresource.css', type: 'text/css'};
const finalSubresource = {href: `/fonts/CanvasTest.ttf?uid=${token()}`, type: 'font/ttf', as: 'font'};
const style2 =;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leftover?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Comment thread preload/link-header-on-subresource-types.tentative.html
@noamr noamr changed the title Check different scenarios with subresource Link headers May 8, 2022

@yoavweiss yoavweiss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % question about expanding converage (either here or elsewhere)

test_preload_subresource('script', 'font', true);
test_preload_subresource('script', 'image', true);
test_preload_subresource('script', 'script', true);
test_preload_subresource('script', 'fetch', true);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also test that e.g. images can't preload content? Or should that be another test?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added cases

@noamr
noamr force-pushed the preload-subresource branch from df90819 to e391121 Compare May 9, 2022 07:19
@noamr
noamr enabled auto-merge (squash) May 9, 2022 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants