New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 679694 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Android MediaRouter only (left Chro...
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Data URI should be allowed in media session metadata artwork

Project Member Reported by fbeaufort@chromium.org, Jan 10 2017

Issue description

Chrome Canary (57.0.2974.0)
OS: Android 7.1.1

What steps will reproduce the problem?
(1) Go to https://beaufortfrancois.github.io/sandbox/media-session/data-blob.html
(2) Start audio file
(3) Click "Set Red Blob Artwork"
(4) Check notification has a red artwork
(5) Click "Set Green Data URI Artwork"

What is the expected result?
Notification should have a green artwork

What happens instead?
There is no notification artwork anymore.
 
Cc: zqzh...@chromium.org
Labels: -Pri-3 M-57 Pri-2
Status: Available (was: Untriaged)
Owner: zqzh...@chromium.org
Status: Started (was: Available)
This is due to a recent change where we only allow HTTP status codes between [200, 300).
However ImageDownloader returns 0 as HTTP status code for data URL, which should be 200.
Project Member

Comment 3 by bugdroid1@chromium.org, Jan 11 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/56eb36cf3d8aea3d182695e7d518daa1a7a46a66

commit 56eb36cf3d8aea3d182695e7d518daa1a7a46a66
Author: zqzhang <zqzhang@chromium.org>
Date: Wed Jan 11 17:48:54 2017

[MediaNotification] Don't check HTTP status code for image fetch

ImageDownloader does not return valid HTTP status code for local
URLs. This CL removes the check for HTTP status code from
MediaImageManager, so that it only checks for the list of
downloaded to see if the image fetch succeeded or not.

This CL also adds tests for verifying ImageDownloader returns
correct results.

BUG= 679694 

Review-Url: https://codereview.chromium.org/2625703002
Cr-Commit-Position: refs/heads/master@{#442949}

[modify] https://crrev.com/56eb36cf3d8aea3d182695e7d518daa1a7a46a66/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaImageManager.java
[modify] https://crrev.com/56eb36cf3d8aea3d182695e7d518daa1a7a46a66/chrome/android/junit/src/org/chromium/chrome/browser/media/ui/MediaImageManagerTest.java
[modify] https://crrev.com/56eb36cf3d8aea3d182695e7d518daa1a7a46a66/content/browser/web_contents/web_contents_impl_browsertest.cc

Status: Fixed (was: Started)
Verfied in Chromium 57.0.2980.0. Thanks!

Sign in to add a comment