This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22526 - URL Parsing must obtain a synchronous reference to blob: and/or mediastream: resources
Summary: URL Parsing must obtain a synchronous reference to blob: and/or mediastream: ...
Status: RESOLVED DUPLICATE of bug 17765
Alias: None
Product: WHATWG
Classification: Unclassified
Component: URL (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+urlspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-01 16:36 UTC by Arun
Modified: 2013-07-09 20:36 UTC (History)
2 users (show)

See Also:


Attachments

Description Arun 2013-07-01 16:36:57 UTC
(This bug may need to be reassigned to individual APIs, including XHR).

Before Fetch is initiated, URL parsing needs to take a reference to the underlying resource referred to a blob: or a mediastream: URL.  

This reference is necessary to ensure that unpredictable behavior doesn't occur when revoking Blob URLs (amongst other things).  Discussion of this matter took place over: http://lists.w3.org/Archives/Public/public-webapps/2013AprJun/0461.html

Happy to reassign or duplicate against other APIs, but:

1. XHR is a prime use case.
2. The problem with using fetch seems to be what happens if there's the
potential for fetching multiple sources. E.g. with <img srcset> or
<video><source><source></video>. The solution has to be more about
using URL parsing that stores a reference on the URL object
you get out of that. And then you pass the URL object to fetch and in
case of blob/mediastream it'll look on that object for a reference and
act appropriately.
Comment 1 Arun 2013-07-03 16:44:50 UTC
In fact, this should live in HTML.

1. APIs such as <img> that take URLs should check if the scheme is mediastream: or blob: and
2. Then take a reference to the underlying object.

This could move to the URL spec. eventually, but a wrapper around the URL spec. defined by HTML is what this bug is about.  When 'fetch' happens, the object could be fetched directly, as opposed to the URL.
Comment 2 Ian 'Hixie' Hickson 2013-07-09 20:02:30 UTC
How does this differ from bug 17765?
Comment 3 Arun 2013-07-09 20:09:54 UTC
So actually, after conversations with Anne about this, I think this bug needs to be reassigned so that it can be taken care of in URL parse and fetch, modulo a change in File.

None of these is ideal.
Comment 4 Arun 2013-07-09 20:36:12 UTC

*** This bug has been marked as a duplicate of bug 17765 ***