Chromium Code Reviews| Index: third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp |
| diff --git a/third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp b/third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp |
| index 1bbdd6d2a832e63c3a072b6530f017a3d0d2bf93..3846fe0b4eb03b765f5eec171459edbd72c0dc90 100644 |
| --- a/third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp |
| +++ b/third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp |
| @@ -321,10 +321,13 @@ TEST_F(AssociatedURLLoaderTest, SameOriginRestriction) |
| TEST_F(AssociatedURLLoaderTest, CrossOriginSuccess) |
| { |
| // This is cross-origin since the frame was loaded from www.test.com. |
| - KURL url = toKURL("http://www.other.com/CrossOriginSuccess.html"); |
| + KURL url = toKURL("http://www.other.com/CrossOriginSuccess"); |
|
tyoshino (SeeGerritForStatus)
2016/05/16 07:12:42
What's this change for?
horo
2016/05/16 07:23:15
I think it is weird to send the Script context req
|
| WebURLRequest request; |
| request.initialize(); |
| request.setURL(url); |
| + // No-CORS requests (CrossOriginRequestPolicyAllow) aren't allowed for the |
| + // default context requests. So we set the context as Script here. |
|
tyoshino (SeeGerritForStatus)
2016/05/16 07:12:42
"request" is duplicated.
No-CORS is not allowed f
horo
2016/05/16 07:23:15
Done.
|
| + request.setRequestContext(WebURLRequest::RequestContextScript); |
| m_expectedResponse = WebURLResponse(); |
| m_expectedResponse.initialize(); |