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

Referrer Policy: Test image loads inside srcdoc frames. #3700

Merged
merged 3 commits into from Oct 14, 2016

Conversation

mikewest
Copy link
Member

This patch teaches the 'img-tag'-style tests to load an image both
in the top-level document, and inside a 'srcdoc' frame. The referrer
should be the same in both places.

Addresses #2851.

This patch teaches the 'img-tag'-style tests to load an image both
in the top-level document, and inside a 'srcdoc' frame. The referrer
should be the same in both places.

Addresses #2851.
@wpt-pr-bot
Copy link
Collaborator

Reviewers for this pull request are: @kristijanburnik.

@mikewest
Copy link
Member Author

@bzbarsky: Are you happy with this? If so, I'll merge it.

@bzbarsky
Copy link
Contributor

Yes, this seems reasonable in general.

For dynamic referrer policy changes (e.g. dynamic meta tag insertion?), it would be nice to test the situation in which the srcdoc iframe is created and loaded before the dynamic mutation happens. But we can push that off into a separate issue; it seems like a good bit of work to do.

@estark37
Copy link
Contributor

estark37 commented Oct 7, 2016

@mikewest ping -- is this ready to merge? It addresses w3c/webappsec-referrer-policy#57.

@mikewest
Copy link
Member Author

Thanks for the ping, Emily!

@mikewest mikewest deleted the referrer-policy branch October 14, 2016 07:25
estark37 added a commit to estark37/web-platform-tests that referenced this pull request Nov 18, 2016
…licies

This commit modifies the img-tag referrer policy tests to test a
srcdoc iframe with its own referrer policy set via <meta> tag, adding
on to the existing tests for srcdoc iframes that inherit the referrer
policy of their parent document.

The corresponding HTML change is
whatwg/html#1871.

This also corrects a bug in
web-platform-tests#3700, which was
comparing undefined to undefined (using the 'referrer' property of
image data, when it should be headers.referer).
mikewest pushed a commit that referenced this pull request Nov 19, 2016
This commit modifies the img-tag referrer policy tests to test a
srcdoc iframe with its own referrer policy set via <meta> tag, adding
on to the existing tests for srcdoc iframes that inherit the referrer
policy of their parent document.

The corresponding HTML change is
whatwg/html#1871.

This also corrects a bug in
#3700, which was
comparing undefined to undefined (using the 'referrer' property of
image data, when it should be headers.referer).
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.

None yet

4 participants