Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should <iframe srcdoc>'s referrer policy reflect updates to parent's referrer policy changes after <iframe> creation? #5474

Closed
hiroshige-g opened this issue Apr 21, 2020 · 3 comments

Comments

@hiroshige-g
Copy link
Contributor

According to the spec, Yes:
https://html.spec.whatwg.org/multipage/window-object.html#set-up-a-window-environment-settings-object seems to capture parent's referrer policy dynamically.

Chromium and Safari: Yes
Firefox: No
WPT PR: web-platform-tests/wpt#22783

Similar issue in API base URL: #421

I prefer taking a snapshot at creation time, in the context of #4926

@domenic
Copy link
Member

domenic commented Jun 24, 2021

@antosart since referrer policy is now in the policy container, this should have a clear answer, right? Can you own (a) reporting back to this thread what that answer is per spec; (b) ensuring we have tests for it, either existing or by working with @hiroshige-g to merge web-platform-tests/wpt#22783 ?

@domfarolino
Copy link
Member

The answer is that they do not reflect changes to the parent policy after creation, and we have tests for this: https://chromium-review.googlesource.com/c/chromium/src/+/2919810

@domenic
Copy link
Member

domenic commented Jun 24, 2021

Ah, awesome, thanks @domfarolino! Let's close this then.

@domenic domenic closed this as completed Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants