Skip to content

Conversation

@annevk
Copy link
Member

@annevk annevk commented Apr 6, 2017

No description provided.

@wpt-pr-bot wpt-pr-bot added the html label Apr 6, 2017
@annevk annevk requested a review from bzbarsky April 6, 2017 12:44
@annevk
Copy link
Member Author

annevk commented Apr 6, 2017

These are tests for whatwg/html#2480 per scenarios at w3c/webappsec-referrer-policy#77 (comment).

@annevk
Copy link
Member Author

annevk commented Apr 6, 2017

Apologies for the readability by the way. It was somewhat hard to balance that with not copying-and-pasting too much.

annevk added a commit to whatwg/html that referenced this pull request Apr 19, 2017
Also rewrite the algorithm to avoid loops and use variables correctly.

Tests: web-platform-tests/wpt#5402.

Fixes #1918.
@bzbarsky
Copy link
Contributor

There are no tests for non-ASCII stuff in here. There probably should be some, given whatwg/html#2480 (comment)

@annevk annevk force-pushed the annevk/html-ancestororigins branch from e057758 to adfd687 Compare April 21, 2017 09:31
@annevk
Copy link
Member Author

annevk commented Apr 21, 2017

I addressed the substantive feedback other than a ToUnicode test as it's unclear to me what we should do there per whatwg/html#2568. I haven't addressed style feedback as I'm not inconsistent and there's no style guide for this project. And getting PRs through sometimes and sometimes not for that reason doesn't scale and would be frustrating for contributors.

@annevk annevk force-pushed the annevk/html-ancestororigins branch from afa70a9 to 453e886 Compare April 21, 2017 10:43
@bzbarsky
Copy link
Contributor

Depending on ASI is not "style". It's a bug, because it leads to extremely fragile code....

As in, I cannot vouch for the correctness of any code you ask me to review that depends on ASI. Maybe it does what you think, maybe not.

@annevk annevk mentioned this pull request May 4, 2017
@annevk annevk force-pushed the annevk/html-ancestororigins branch from 453e886 to f0d3e4c Compare May 16, 2017 16:43
@wpt-pr-bot wpt-pr-bot requested review from jdm, jgraham, zcorpan and zqzhang May 16, 2017 16:43
@annevk
Copy link
Member Author

annevk commented May 16, 2017

@jugglinmike hitting Edge issues again it seems like.

@annevk annevk changed the title Annevk/html ancestororigins ancestorOrigins May 16, 2017
annevk added a commit to whatwg/html that referenced this pull request Feb 4, 2018
Also rewrite the algorithm to avoid loops and use variables correctly.

Tests: web-platform-tests/wpt#5402.

Fixes #1918.
annevk added a commit to whatwg/html that referenced this pull request Feb 5, 2018
Also rewrite the algorithm to avoid loops and use variables correctly.

Tests: web-platform-tests/wpt#5402.

Fixes #1918.
@annevk annevk force-pushed the annevk/html-ancestororigins branch from 4095044 to 0e5179b Compare February 5, 2018 15:37
@web-platform-tests web-platform-tests deleted a comment Feb 5, 2018
@web-platform-tests web-platform-tests deleted a comment Feb 5, 2018
@web-platform-tests web-platform-tests deleted a comment Feb 5, 2018
@web-platform-tests web-platform-tests deleted a comment Feb 5, 2018
@web-platform-tests web-platform-tests deleted a comment from wpt-pr-bot Feb 5, 2018
@annevk
Copy link
Member Author

annevk commented Feb 5, 2018

I think I addressed all feedback now.

@web-platform-tests web-platform-tests deleted a comment Mar 22, 2019
@web-platform-tests web-platform-tests deleted a comment from codecov-io Mar 22, 2019
@gsnedders gsnedders closed this Jan 24, 2020
@gsnedders gsnedders deleted the annevk/html-ancestororigins branch January 24, 2020 18:01
@gsnedders gsnedders restored the annevk/html-ancestororigins branch January 24, 2020 18:49
@Hexcles Hexcles reopened this Jan 24, 2020
@zcorpan zcorpan force-pushed the annevk/html-ancestororigins branch from 48a297b to 9c803ad Compare September 2, 2025 09:20
@wpt-pr-bot wpt-pr-bot requested review from domenic and foolip September 2, 2025 09:21
@zcorpan
Copy link
Member

zcorpan commented Sep 2, 2025

I've rebased this (without making changes).

The new spec PR is whatwg/html#11560

I think most (if not all) of these tests should have the same expected result with the new algorithm. I'll take a closer look and maybe add a few more tests that would produce different results.

@zcorpan zcorpan dismissed bzbarsky’s stale review November 5, 2025 13:12

Comments are addressed

@zcorpan
Copy link
Member

zcorpan commented Dec 4, 2025

This is superseded by the tests in https://phabricator.services.mozilla.com/D273393 (all cases tested in this PR should be covered, and then some).

@zcorpan zcorpan closed this Dec 4, 2025
@annevk annevk deleted the annevk/html-ancestororigins branch December 4, 2025 11:21
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.

7 participants