Re: [w3c/editing] Should we modify the clipboard API spec to match Safari's behavior for HTML-referenced media? (#285)

> What do you think about the other part of my question? Is Safari leaking blobs with its current approach?

That's what's happening right now for the lack of better options but there might be a number of ways to mitigate it. For example, if the script had never accessed the string, we know that those blob URLs are never observable so we can safely discard them. We could also `revokeObjectURL` on each blob if it was never referenced / used by the time event is finished dispatching. This will be observable so it needs to be spec'ed somewhere, and deciding when & how a given blob URL is never used is an interesting question but I'm sure we can come up with something sensible.



-- 
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/editing/issues/285#issuecomment-795104433

Received on Wednesday, 10 March 2021 08:52:33 UTC