-
Notifications
You must be signed in to change notification settings - Fork 344
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
fetch assumes a url's object is always a Blob #457
Comments
That is a good question. The problem is that implementations do different things here, but we should indeed work on figuring this out. See also w3c/mediacapture-main#404. |
Another reason media streams and sources should not be urls. |
That would be ideal. @jan-ivar do you think we can eventually remove support? I suppose I could start by just adding a warning to Fetch about non-blob: usage (I don't think we can get ever rid of those). |
For this issue specifically, I suppose one could simply treat it as an error and fail the request? What do implementations actually do? If no implementers wants to move on w3c/mediacapture-main#404 then I suppose one alternative would be to go back to a separate protocol for the non-Blob |
So stream = new MediaStream();
streamURL = URL.createObjectURL(stream);
fetch(streamURL); does indeed result in a |
Aaah, okay, so the way this works is that https://html.spec.whatwg.org/#concept-media-load-resource handles |
The reason this works is that https://html.spec.whatwg.org/#concept-media-load-resource (HTML's media element fetching algorithm) special cases MediaSource and MediaStream and handles them way before Fetch is hit. Tests: ... Fixes #457.
The reason this works is that https://html.spec.whatwg.org/#concept-media-load-resource (HTML's media element fetching algorithm) special cases MediaSource and handles it way before Fetch is hit. Tests: web-platform-tests/wpt#10509 and web-platform-tests/wpt#10515. Follow-up: whatwg/url#380. Fixes #457.
When it could be a MediaSource or a MediaStream. whatwg/url@1099bb2 So the following doesn't make sense:
What happens if someone tries to fetch one of the other kinds of
blob:
URIs?The text was updated successfully, but these errors were encountered: