[Webkit-unassigned] [Bug 172873] New: Implement content sniffing for blob URLs
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 2 14:33:48 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=172873
Bug ID: 172873
Summary: Implement content sniffing for blob URLs
Product: WebKit
Version: WebKit Local Build
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: Page Loading
Assignee: webkit-unassigned at lists.webkit.org
Reporter: dbates at webkit.org
CC: achristensen at apple.com, ap at webkit.org,
beidson at apple.com, cgarcia at igalia.com, sam at webkit.org,
svillar at igalia.com
Following up from a conversation in <https://github.com/w3c/FileAPI/issues/82>, we should apply the MIME type sniffing algorithm when navigating to a blob URL. Currently we do not implement support for content sniffing for blob URLs. When navigating to a blob URL that does not have a type (content-type) we start a download because we do not apply the MIME type sniffing algorithm as part of step 4 of the "process a navigate response" algorithm in the HTML standard: <https://html.spec.whatwg.org/#process-a-navigate-response> (2 June 2017). Instead we should apply the MIME type sniffing algorithm.
Note WebKit defers to the underlying network stack (CFNetwork) to implement content sniffing. Unless we move such content sniffing into WebCore, we may need new API/SPI to access the content sniffing algorithm in the underlying network stack.
Example:
Open a page with the following markup:
<!DOCTYPE html>
<html>
<body>
<script>
var frame = document.createElement("iframe");
frame.src = URL.createObjectURL(new Blob(["<h1>Hello</h1>"]));
document.body.appendChild(frame)
</script>
</body>
</html>
Then you should see "Hello" (rendered as HTML) in the frame. But in Safari Version 10.1 (12603.1.24) we initiate a download.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170602/55cfd592/attachment.html>
More information about the webkit-unassigned
mailing list