Closed Bug 498804 Opened 15 years ago Closed 15 years ago

Setting the src of video/audio element to invalid url when already invalid breaks the element's controls

Categories

(Core :: Audio/Video, defect)

1.9.1 Branch
x86_64
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 490564

People

(Reporter: khsater, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b99) Gecko/20090605 Firefox/3.5b99 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b99) Gecko/20090605 Firefox/3.5b99 (.NET CLR 3.5.30729)

When the source of a  audio element is set to an invalid url or null via an HTML attribute, set via JavaScript to an invalid url or null and then to a valid url; the controls are missing when the element is then loaded and played (via JavaScript).  The controls attribute of the DOM object is still set to true.
This bug is particular to the audio element and does not affect video elements.

Reproducible: Always

Steps to Reproduce:
1.Create an audio element with src=''
2.Set the source of the audio element to '' via JavaScript (audioElement.src = '')
3.Set the source of the audio element to a valid url
4.Load the audio element via JavaScript (audioElement.load())
5.Play the audio element via JavaScript (audioElement.play())
Actual Results:  
The audio plays, but the controls are missing.

Expected Results:  
The audio should play and the controls should reappear.
After further testing I realized that step #2 is unnecessary as the controls do not appear when it is skipped.
My apologizes for the sloppy testing before I submitted.  It DOES in fact affect video elements.
Component: General → Video/Audio
Product: Firefox → Core
QA Contact: general → video.audio
Version: unspecified → 1.9.1 Branch
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.