| Index: Source/platform/network/NetworkHints.cpp
|
| diff --git a/Source/platform/network/NetworkHints.cpp b/Source/platform/network/NetworkHints.cpp
|
| index db8118038a6115675945da4fbd3332bb5332963f..1d3232cd028b00f7539c35a862e17eee1a98560b 100644
|
| --- a/Source/platform/network/NetworkHints.cpp
|
| +++ b/Source/platform/network/NetworkHints.cpp
|
| @@ -41,11 +41,12 @@ void prefetchDNS(const String& hostname)
|
| void preconnect(const KURL& url, const CrossOriginAttributeValue crossOrigin)
|
| {
|
| if (WebPrescientNetworking* prescientNetworking = Platform::current()->prescientNetworking()) {
|
| + bool allowCredentials = (crossOrigin != CrossOriginAttributeAnonymous);
|
| // TODO(yoav): Call only the crossorigin interface once everything is hooked up.
|
| if (crossOrigin == CrossOriginAttributeNotSet)
|
| prescientNetworking->preconnect(url);
|
| else
|
| - prescientNetworking->preconnect(url, crossOrigin);
|
| + prescientNetworking->preconnect(url, allowCredentials);
|
| }
|
| }
|
|
|
|
|