[Webkit-unassigned] [Bug 169274] [link preload] Double downloads of preloaded CSS

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 7 07:44:44 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=169274

--- Comment #3 from Antti Koivisto <koivisto at iki.fi> ---
Comment on attachment 303647
  --> https://bugs.webkit.org/attachment.cgi?id=303647
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=303647&action=review

> Source/WebCore/loader/cache/CachedResourceLoader.cpp:929
> +    if (textDecoder && !textDecoder->hasEqualEncodingForCharset(cachedResourceRequest.charset())) {
> +        if (!existingResource->isLinkPreload())
> +            return Reload;
> +        existingResource->setEncoding(cachedResourceRequest.charset());
> +    }

What happens if there are multiple requests for the same link-preloaded resource with different charsets?

<link rel="preload" href="foo.js" as="script">
...
<script src="foo.js" charset=utf-8></script>
<script src="foo.js" charset=latin1></script>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170307/83075e5b/attachment.html>


More information about the webkit-unassigned mailing list