Re: [w3c/FileAPI] Support `Response` in `URL.createObjectURL` (#97)

After some talks with @domenic and @wanderview it seems like this might need to also have some flags setup to make 2 conditions available:

* revoke the URL on use

This is intended to allow garbage collecting the response body on use.

Microsoft has an options back with [`oneTimeUse`](https://msdn.microsoft.com/zh-cn/data/hh772302(v=vs.100)) which seems sane to keep in sync with.

* limit the scope of the URL to a single realm/document

I could not find any prior implementation that is doing this. I do not have a personal use for this, but the concern seems to lie in having other documents able to load URLs.

Chat Log Reference: https://freenode.logbot.info/whatwg/20180212#c1432816

We could split these flags into separate PRs is my general thinking, and if that seems fine I can do so. There also seems to be a request for which environments are seeking to add this functionality. I am coming from Node so I don't know if that counts?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/FileAPI/issues/97#issuecomment-364972488

Received on Monday, 12 February 2018 16:14:09 UTC