Skip to content

Test referrerpolicy with preload#34245

Merged
noamr merged 4 commits intomasterfrom
preload-referrer-policy
Jun 2, 2022
Merged

Test referrerpolicy with preload#34245
noamr merged 4 commits intomasterfrom
preload-referrer-policy

Conversation

@noamr
Copy link
Copy Markdown
Contributor

@noamr noamr commented May 28, 2022

When <preload referrerpolicy=> is used:

  • The referrerpolicy should be respected
  • It does not affect consuming the preload (e.g. the consumer can have a different referrerpolicy)
  • Should work for link headers and elements

When <preload referrerpolicy=> is used:
- The referrerpolicy should be respected
- It does not affect consuming the preload (e.g. the consumer can have a different referrerpolicy)
- Should work for link headers and elements
const href = `${crossOrigin ? REMOTE_ORIGIN : ''}/preload/resources/echo-referrer.py?uid=${id}`;
const {actualReferrer, unsafe} = await loaders[type](t, {preloadPolicy, resourcePolicy, id, href})
const origin = window.origin + '/';
// if (type === 'header')
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.

leftovers

Copy link
Copy Markdown
Contributor

@yoavweiss yoavweiss left a comment

Choose a reason for hiding this comment

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

LGTM

@noamr noamr merged commit bf1c961 into master Jun 2, 2022
@noamr noamr deleted the preload-referrer-policy branch June 2, 2022 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants