Re: [w3c/FileAPI] What should happen when you load a blob URL in an iframe? (#82)

OK, so it looks like at least some browsers give an empty string `type`, and thus per spec an empty-string `Content-Type`. That lands us in step 7 of https://html.spec.whatwg.org/#process-a-navigate-response:

> Otherwise, the document's type is such that the resource will not affect browsingContext, e.g., because the resource is to be handed to an external application or because it is an unknown type that will be processed as a download. Process the resource appropriately.

So it seems the spec is kind of assuming that empty-string content-type files should be downloaded. I'm not sure that's accurate in all browsers, but that at least seems to align with your Safari test results; maybe someone should also set up a standalone page that serves itself with a `Content-Type: ` header and see what happens.

-- 
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/82#issuecomment-305868307

Received on Friday, 2 June 2017 18:06:51 UTC