Index: Source/core/timing/Performance.cpp |
diff --git a/Source/core/timing/Performance.cpp b/Source/core/timing/Performance.cpp |
index 532710007a794007df18539f7338dddca93e6da0..07a20310c3916a41411108d324c78d5f18b84e08 100644 |
--- a/Source/core/timing/Performance.cpp |
+++ b/Source/core/timing/Performance.cpp |
@@ -167,7 +167,7 @@ static bool passesTimingAllowCheck(const ResourceResponse& response, Document* r |
if (resourceOrigin->isSameSchemeHostPort(requestingDocument->securityOrigin())) |
return true; |
- const String& timingAllowOriginString = response.httpHeaderField(timingAllowOrigin); |
+ const AtomicString& timingAllowOriginString = response.httpHeaderField(timingAllowOrigin); |
if (timingAllowOriginString.isEmpty() || equalIgnoringCase(timingAllowOriginString, "null")) |
return false; |
@@ -176,7 +176,7 @@ static bool passesTimingAllowCheck(const ResourceResponse& response, Document* r |
const String& securityOrigin = requestingDocument->securityOrigin()->toString(); |
Vector<String> timingAllowOrigins; |
- timingAllowOriginString.split(" ", timingAllowOrigins); |
+ timingAllowOriginString.string().split(" ", timingAllowOrigins); |
for (size_t i = 0; i < timingAllowOrigins.size(); ++i) { |
if (timingAllowOrigins[i] == securityOrigin) |
return true; |