Re: [whatwg/url] Use definitions in FileAPI spec to resolve blob URLs and their origins. (#371)

mkruisselbrink commented on this pull request.



> @@ -2437,11 +2432,16 @@ background information. [[!HTML]]
 <dl class=switch>
  <dt>"<code>blob</code>"
  <dd>
+  If <a for=/>URL</a>'s <a for=url>blob entry</a> is not null, return <a for=/>URL</a>'s
+  <a for=url>blob entry</a>'s <a for="blob URL entry">environment</a>'s
+  <a for="environment settings object">origin</a>.

The FileAPI spec at least has to store the environment for an entry (to be able to revoke/remove entries when the environment that created them is destroyed). Although of course I could change how the bookkeeping is spec'ed; this just seemed to simplest way from the FileAPI side of things at the time.

I could also change the type/tuple that is returned by resolving a blob URL to something other than what is stored in the blob URL store, but not sure I see benefits to adding that complication (other than separating internal state from what is exposed to other specs).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/371#discussion_r246178715

Received on Tuesday, 8 January 2019 22:37:41 UTC