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

Unified Diff: webkit/glue/media/buffered_resource_loader.cc

Issue 6596059: Revert code that prevents redirecting to different origins because it breaks Vimeo & YouTube. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/glue/media/buffered_resource_loader_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/media/buffered_resource_loader.cc
diff --git a/webkit/glue/media/buffered_resource_loader.cc b/webkit/glue/media/buffered_resource_loader.cc
index e7354f6b0a3e1f15bde8636004b8f7de7d7b5af4..0570075222ef2c527bab00828758763dc654f167 100644
--- a/webkit/glue/media/buffered_resource_loader.cc
+++ b/webkit/glue/media/buffered_resource_loader.cc
@@ -252,11 +252,7 @@ void BufferedResourceLoader::willSendRequest(
if (single_origin_)
single_origin_ = url_.GetOrigin() == GURL(newRequest.url()).GetOrigin();
- // Enforce same-origin policy and cause redirects to other origins to
- // look like network errors.
- // http://dev.w3.org/html5/spec/Overview.html#concept-media-load-resource
- // http://dev.w3.org/html5/spec/Overview.html#fetch
- if (!single_origin_ || !IsProtocolSupportedForMedia(newRequest.url())) {
+ if (!IsProtocolSupportedForMedia(newRequest.url())) {
// Set the url in the request to an invalid value (empty url).
newRequest.setURL(WebKit::WebURL());
DoneStart(net::ERR_ADDRESS_INVALID);
« no previous file with comments | « no previous file | webkit/glue/media/buffered_resource_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698