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

Unified Diff: webkit/glue/media/simple_data_source.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
Index: webkit/glue/media/simple_data_source.cc
diff --git a/webkit/glue/media/simple_data_source.cc b/webkit/glue/media/simple_data_source.cc
index fee89fe072e86bbb5cb5e476c6daa6d0b6f6e12f..48da4310038b6aa19ff48fea457eb51af3a53cef 100644
--- a/webkit/glue/media/simple_data_source.cc
+++ b/webkit/glue/media/simple_data_source.cc
@@ -119,15 +119,6 @@ void SimpleDataSource::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_) {
- DoneInitialization_Locked(false);
- return;
- }
-
url_ = newRequest.url();
}
« no previous file with comments | « webkit/glue/media/buffered_resource_loader_unittest.cc ('k') | webkit/glue/media/simple_data_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698