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

Unified Diff: content/browser/media/session/media_metadata_sanitizer.cc

Issue 2552283003: Allow Blob image src to be used as MediaNotification artwork (Closed)
Patch Set: Created 4 years 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 | third_party/WebKit/Source/modules/mediasession/MediaMetadataSanitizer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/session/media_metadata_sanitizer.cc
diff --git a/content/browser/media/session/media_metadata_sanitizer.cc b/content/browser/media/session/media_metadata_sanitizer.cc
index 0a53baae79b9da9c9786546f5f566ab5b5807bbc..a3b75ac48dadf7154865f6edec12f448d3c5c610 100644
--- a/content/browser/media/session/media_metadata_sanitizer.cc
+++ b/content/browser/media/session/media_metadata_sanitizer.cc
@@ -32,7 +32,9 @@ const size_t kMaxNumberOfMediaImageSizes = 10;
bool CheckMediaImageSrcSanity(const GURL& src) {
if (!src.is_valid())
return false;
- if (!src.SchemeIsHTTPOrHTTPS() && !src.SchemeIs(url::kDataScheme))
+ if (!src.SchemeIsHTTPOrHTTPS() &&
+ !src.SchemeIs(url::kDataScheme) &&
+ !src.SchemeIs(url::kBlobScheme))
return false;
if (src.spec().size() > url::kMaxURLChars)
return false;
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/mediasession/MediaMetadataSanitizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698