Closed Bug 1479270 Opened 6 years ago Closed 6 years ago

No "error" event when audio element load() hits a 404

Categories

(Firefox for Android Graveyard :: Audio/Video, defect)

Firefox 61
defect
Not set
normal

Tracking

(firefox61 wontfix, firefox62 wontfix, firefox63 verified)

VERIFIED FIXED
Firefox 63
Tracking Status
firefox61 --- wontfix
firefox62 --- wontfix
firefox63 --- verified

People

(Reporter: rudolfenberg, Assigned: alwu)

References

Details

Attachments

(3 files)

Attached file audio-error-test.html
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36

Steps to reproduce:

I'm attempting to play audio from a variable URL that may or may not return a 404 status code. I need to use an event listener to detect these failures. You can look at the simple test case I attached. 


Actual results:

No error event is fired.


Expected results:

An error event should be fired when the request hits a 404. This is the case with Google Chrome on the desktop and android, as well as Firefox on the desktop.
Thanks for the report!

Tested with Nokia 6(Android 7.1.1) and Xiaomi Mi4i (Android 5.0.2) and the issue is reproducible on all branches. Tested on Chrome as well. Marking the bug as NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Regressed in Firefox 55.0a1
 8:21.84 INFO: Got as far as we can go bisecting nightlies...
 8:21.84 INFO: Last good revision: 272ce6c2572164f5f6a9fba2a980ba9ccf50770c (2017-03-29)
 8:21.84 INFO: First bad revision: 60d7a0496a3673450ddbc37ec387525148c32604 (2017-03-30)
 8:21.84 INFO: Pushlog:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=272ce6c2572164f5f6a9fba2a980ba9ccf50770c&tochange=60d7a0496a3673450ddbc37ec387525148c32604
changeset:   350214:f9066223064f
user:        Alastor Wu <alwu@mozilla.com>
date:        Wed Mar 29 11:55:50 2017 +0800
summary:     Bug 1247433 - don't set error for unsupported type media. r=JamesCheng,jwwang,kaku

Alastor can you have a look at this testcase. Looks like bug 1247433 regressed it.
Blocks: 1247433
Flags: needinfo?(alwu)
Will check it later, thank you.
Assignee: nobody → alwu
Flags: needinfo?(alwu)
Since we have native HLS support in 59 [1], we don't need those code anymore.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1345752
Since we have native HLS support in 59 [1], we can remove those codes which is used to play HLS.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1345752
Comment on attachment 9003633 [details]
Bug 1479270 - part1 : remove external player support in media element.

Jean-Yves Avenard [:jya] has approved the revision.
Attachment #9003633 - Flags: review+
Comment on attachment 9003634 [details]
Bug 1479270 - part2 : remove HLS video player.

James Willcox (:snorp) (jwillcox@mozilla.com) has approved the revision.
Attachment #9003634 - Flags: review+
Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/643ef11ea720
part1 : remove external player support in media element. r=jya
Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1676f895a710
part2 : remove HLS video player. r=snorp
Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d14df5075725
part1 : remove external player support in media element. r=jya
Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/75b11f12bf4b
part2 : remove HLS video player. r=snorp
https://hg.mozilla.org/mozilla-central/rev/d14df5075725
https://hg.mozilla.org/mozilla-central/rev/75b11f12bf4b
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Too late for 61/62. Fx63 will be on Beta with this fix included next week.
Verified as fixed on latest Nightly 63.0a1 (2018-09-04) with Nokia 6 (Android 7.1.1) and OnePlus 5T (Android 8.1.0).
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: