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

Add blob URLs into urltestdata.json #4941

Merged
merged 1 commit into from
Feb 23, 2017

Conversation

watilde
Copy link
Contributor

@watilde watilde commented Feb 21, 2017

@wpt-pr-bot
Copy link
Collaborator

@annevk
Copy link
Member

annevk commented Feb 21, 2017

I guess I'm not against landing this, but whatwg/url#127 might change the outcome of these tests with regards to the origin field. @domenic?

@domenic
Copy link
Member

domenic commented Feb 21, 2017

I think what we're seeing here is confusion from implementers as to what the origin of completely-synthetic blob URLs should be. I.e., if I do new URL("blob:https://example.com:443/"), or set a.href = "blob:https://example.com:443/", what should the .origin property return? Similarly for if I do blob:d3958f5c-0777-0845-9dcf-2cb28783acaf (where that is just created out of thin air, not via URL.createObjectURL) or blob:asdf.

I'm not sure what the desired answer to that is according to whatwg/url#127. I guess that is what the comments from whatwg/url#127 (comment) onward say. If we really don't know the answer, I think a better approach here would be to remove the origin field from this PR and put a big red warning in the URL spec while we figure this out.

@annevk
Copy link
Member

annevk commented Feb 21, 2017

Per the current URL Standard it's pretty clear what it should be. That should just work. Per that issue it's something we might want to change at which point you'd get different results.

@annevk
Copy link
Member

annevk commented Feb 21, 2017

Well, you might get different results.

@domenic
Copy link
Member

domenic commented Feb 21, 2017

Sure, I'm just saying it sounds like this section of the spec isn't really settled, so it makes more sense to me to make it like file URLs (we don't test or spec the origin right now) than to treat it as settled and testable.

@annevk
Copy link
Member

annevk commented Feb 21, 2017

Fair enough. @watilde want to remove the origin lines for now?

@watilde
Copy link
Contributor Author

watilde commented Feb 21, 2017

@annevk Sure, I will do that now!

@watilde
Copy link
Contributor Author

watilde commented Feb 21, 2017

I've removed the origin lines, and CI liked it :)

@@ -5644,5 +5644,15 @@
"input": "non-special://[:80/",
"base": "about:blank",
"failure": true
},
{
"input": "blob:https://example.com:443/",
Copy link
Member

Choose a reason for hiding this comment

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

These tests are missing all the other fields, which causes them to fail in the WPT test runner. You need base, href, username, password, host, hostname, port, search, and hash.

@watilde watilde force-pushed the blob-urls branch 2 times, most recently from 87f615e to e4cb43f Compare February 22, 2017 22:03
@domenic
Copy link
Member

domenic commented Feb 22, 2017

@watilde sorry, I did not see that you pushed a new commit addressing my review. However, why did you allow failure for parsing blob URLs?

@watilde
Copy link
Contributor Author

watilde commented Feb 22, 2017

@domenic Oh sorry never mind it please 🙇 I wanted to make sure the failed ci was from my commit or not.

@domenic
Copy link
Member

domenic commented Feb 22, 2017

Oh I see :(. It looks like the CI's attempts to run Chrome are not working great the moment... I'll try to poke some people.

@domenic
Copy link
Member

domenic commented Feb 22, 2017

It might be worth trying to rebase just in case they've been making changes to the CI stuff

@watilde
Copy link
Contributor Author

watilde commented Feb 22, 2017

@domenic Hmm it seems to be still happening. I will do rebase again tomorrow or later then. Thanks anyway!

@jgraham
Copy link
Contributor

jgraham commented Feb 23, 2017

@annevk informs me the review issues were fixed, and the CI problem looks like a bug in Chrome, so merging.

@jgraham jgraham merged commit e32ff14 into web-platform-tests:master Feb 23, 2017
@watilde watilde deleted the blob-urls branch February 23, 2017 17:24
watilde added a commit to watilde/node that referenced this pull request Mar 3, 2017
In the getter of the origin in URL, the URL that has blob protocol
will be parsed in a function called "originFor".
Add test cases into the url-tests-additional fixture to test that.

Refs: web-platform-tests/wpt#4941
watilde added a commit to nodejs/node that referenced this pull request Mar 5, 2017
In the getter of the origin in URL, the URL that has blob protocol
will be parsed in a function called "originFor".
Add test cases into the url-tests-additional fixture to test that.

Refs: web-platform-tests/wpt#4941

PR-URL: #11426
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Timothy Gu <[email protected]>
Reviewed-By: James M Snell <[email protected]>
addaleax pushed a commit to nodejs/node that referenced this pull request Mar 5, 2017
In the getter of the origin in URL, the URL that has blob protocol
will be parsed in a function called "originFor".
Add test cases into the url-tests-additional fixture to test that.

Refs: web-platform-tests/wpt#4941

PR-URL: #11426
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Timothy Gu <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants