| 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..ff6deb367d11f592ff1a15cfc65861d15bf93e5f 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");
|
| WebURLRequest request;
|
| request.initialize();
|
| request.setURL(url);
|
| + // No-CORS requests (CrossOriginRequestPolicyAllow) aren't allowed for the
|
| + // default context. So we set the context as Script here.
|
| + request.setRequestContext(WebURLRequest::RequestContextScript);
|
|
|
| m_expectedResponse = WebURLResponse();
|
| m_expectedResponse.initialize();
|
|
|