Index: media/blink/buffered_data_source.cc |
diff --git a/media/blink/buffered_data_source.cc b/media/blink/buffered_data_source.cc |
index eb4c984995ace670230b3ab660fdc6881ab0789d..0fc16175ff4ec782c1766ab206ec2b52416b62a2 100644 |
--- a/media/blink/buffered_data_source.cc |
+++ b/media/blink/buffered_data_source.cc |
@@ -431,9 +431,10 @@ bool BufferedDataSource::CheckPartialResponseURL( |
// generated bytes and the target response. See http://crbug.com/489060#c32 |
// for details. |
// If the origin of the new response is different from the first response we |
- // deny the redirected response. |
- return response_original_url_.GetOrigin() == |
- partial_response_original_url.GetOrigin(); |
+ // deny the redirected response unless the crossorigin attribute has been set. |
+ return (response_original_url_.GetOrigin() == |
+ partial_response_original_url.GetOrigin()) || |
+ DidPassCORSAccessCheck(); |
} |
void BufferedDataSource::ReadCallback( |