Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp

Issue 1578993002: Fix double resource request for script resources with integrity attr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@2564
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/PreloadRequest.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/html/parser/PreloadRequest.h" 6 #include "core/html/parser/PreloadRequest.h"
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/fetch/FetchInitiatorInfo.h" 9 #include "core/fetch/FetchInitiatorInfo.h"
10 10
(...skipping 29 matching lines...) Expand all
40 sameOrigin ? AllowStoredCredentials : DoNotAllowStoredCredentials, 40 sameOrigin ? AllowStoredCredentials : DoNotAllowStoredCredentials,
41 ClientDidNotRequestCredentials); 41 ClientDidNotRequestCredentials);
42 } 42 }
43 43
44 if (m_isCORSEnabled) 44 if (m_isCORSEnabled)
45 request.setCrossOriginAccessControl(document->securityOrigin(), m_allowC redentials); 45 request.setCrossOriginAccessControl(document->securityOrigin(), m_allowC redentials);
46 46
47 request.setDefer(m_defer); 47 request.setDefer(m_defer);
48 request.setResourceWidth(m_resourceWidth); 48 request.setResourceWidth(m_resourceWidth);
49 request.clientHintsPreferences().updateFrom(m_clientHintsPreferences); 49 request.clientHintsPreferences().updateFrom(m_clientHintsPreferences);
50 request.setIntegrityMetadata(m_integrityMetadata);
50 51
51 return request; 52 return request;
52 } 53 }
53 54
54 } 55 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/PreloadRequest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698