Re: [whatwg/url] Origin of blob URLs doesn't match what implementations do (#127)

You can already determine synchronously whether a URL is in the blob URL store:
```js
const blob = new Blob(["test"]),
      url = URL.createObjectURL(blob),
      client = new XMLHttpRequest
URL.revokeObjectURL(url)
client.open("GET", url, false)
client.send()
```
I suppose you could make an argument that we only look up the origin in the blob URL store when it turns out to be opaque from parsing the blob URL. As that would give slightly better performance probably. I would be okay with such an approach, though it still seems a little worse than simply always looking it up or never looking it up (which is not an option as that would break opaque origin use cases).

-- 
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/issues/127#issuecomment-279398191

Received on Monday, 13 February 2017 13:54:45 UTC