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

Issue 652737 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

"error" event not triggered when a 404 followed a 302 response on a video tag

Reported by baiy...@gmail.com, Oct 4 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0

Steps to reproduce the problem:
1.Create a video tag e.g.: <video src="https://a.com/GetVideo" ...></video>
2.Let the src url ("https://a.com/GetVideo") return a 302 response, e.g.: "https://b.com/foo.mp4"
3.Let the redirect url ("https://b.com/foo.mp4") return a 404 response.

What is the expected behavior?
The "error" event or "onerror" callback triggered.

What went wrong?
Older verions (at least ver 33 and ver 51) for chrome, IE, Firefox and Safari all trigger the event correctly, But the newest chrome don't. 

Did this work before? N/A 

Chrome version: 53.0.2785.143  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: 23.0.0.162
 
Components: -Blink Blink>Image Blink>Loader
Components: -Blink>Image Internals>Media>Video Internals>Network
Could you please set up a server that we can test this with? Our test team needs some way to find the change that is causing this issue.

Comment 3 by baiy...@gmail.com, Oct 4 2016

You can test it using this page:

https://zhiyejing.com/DRes/Plugin/BMOD - Topic/fend/pages/detailtopicvideo.html?vid=95612160180231922

But we plan to remove this page in few days, please test it quickly.
Cc: jmukthavaram@chromium.org
Labels: Needs-Feedback
Unable to reproduce the issue in Windows 10-Chrome stable version-53.0.2785.143 & 51.0.2704.79 with the below steps:

1. Opened new chrome browser
2. Press Function key+F12
3. Open URL "https://zhiyejing.com/DRes/Plugin/BMOD%20-%20Topic/fend/pages/detailtopicvideo.html?vid=95612160180231922"
4. Observed "401 error"

Please find the attached screencasts of Latest (53), 51 versions and please let us know if anything missed to reproduce the issue.



4. 

652737-win stable 143.mp4
1.3 MB View Download
652737-Win 51 version.mp4
3.0 MB View Download

Comment 6 by baiy...@gmail.com, Oct 5 2016

401 is ok, because you are anonymous, please ignore it.

And as I have been said, older version include version 51 and version 33's behavior is correctly. As well as all other browsers like IE, Firefox and Safari. So 652737-Win 51 version.mp4's behavior is right.

I can only reproduce is bug on chrome version 53.0.2785.143. In bad.wmv, 404 not triggered a "error" event, so the java script could not handle it. In right.wmv, java script caught the event correctly, so we can try another "GetVideo" (which cause another 302 and 404 too).

Using the "error" handler, we iterate through multiple resolutions, e.g.: from 720p, 480p, 360p to 180p.

If the "error" event not triggered, than we freezed on the first request and could never try another resolution.
bad.wmv
475 KB Download
right.wmv
536 KB Download

Comment 7 by baiy...@gmail.com, Oct 5 2016

PS: you 652737-win stable 143.mp4 already reproduced the problem exactly: the last line is a get error (I guess it's a 404), and this error not fired as the video tag's "error" event.
Components: -Internals>Media>Video Blink>Media>Video
I think this onError event of <video> tag should go to blink team. Please feel free to add Internals>media>video back if need.

Comment 9 by mef@chromium.org, Oct 11 2016

Components: -Internals>Network
Cc: hubbe@chromium.org
Components: -Blink>Loader Internals>Media>Video
Status: Untriaged (was: Unconfirmed)
+Fredrik in case there were some changes to fetching media that could've caused this in M53.

Seems like the bug has been confirmed.
Owner: hubbe@chromium.org
Status: Assigned (was: Untriaged)
Seems a multibuffer issue if it started in m51.

Comment 12 by hubbe@chromium.org, Oct 27 2016

Status: Started (was: Assigned)
Created a new test page which demonstrates the problem:

http://fredrik.hubbe.net/test17.html

Should say "ERROR", but doesn't.

Project Member

Comment 13 by bugdroid1@chromium.org, Oct 28 2016

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

commit e547f4e0b3e0796fb44b508d20ea313f3cb735f1
Author: hubbe <hubbe@chromium.org>
Date: Fri Oct 28 02:21:10 2016

Media: fail properly on 404 after redirect

Because the readers were still hooked up to the pre-redirect URL,
calling Fail() did not propagate properly.

Also fix some debug statements I needed to find the problem.

BUG= 652737 

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

[modify] https://crrev.com/e547f4e0b3e0796fb44b508d20ea313f3cb735f1/media/blink/multibuffer_data_source_unittest.cc
[modify] https://crrev.com/e547f4e0b3e0796fb44b508d20ea313f3cb735f1/media/blink/resource_multibuffer_data_provider.cc

Comment 14 by hubbe@chromium.org, Oct 28 2016

Status: Fixed (was: Started)
Worth merging?

Sign in to add a comment