| Index: third_party/WebKit/Source/core/html/parser/PreloadRequest.h
|
| diff --git a/third_party/WebKit/Source/core/html/parser/PreloadRequest.h b/third_party/WebKit/Source/core/html/parser/PreloadRequest.h
|
| index 3b5722e5c01b10eb24cfb89c77f39959128f56a8..fd4f970b33ae8ee85a567a5553f7fafd678c90aa 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/PreloadRequest.h
|
| +++ b/third_party/WebKit/Source/core/html/parser/PreloadRequest.h
|
| @@ -42,6 +42,9 @@ class PreloadRequest {
|
| const ClientHintsPreferences& clientHintsPreferences =
|
| ClientHintsPreferences(),
|
| RequestType requestType = RequestTypePreload) {
|
| + // Never preload data or ref urls.
|
| + if (resourceURL.startsWith("#") || protocolIs(resourceURL, "data"))
|
| + return nullptr;
|
| return wrapUnique(new PreloadRequest(
|
| initiatorName, initiatorPosition, resourceURL, baseURL, resourceType,
|
| resourceWidth, clientHintsPreferences, requestType, referrerPolicy));
|
|
|