Closed
Bug 871188
Opened 11 years ago
Closed 11 years ago
[webvtt] HTMLTrackElement readyState attribute assigning random values
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: msaad, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
text/plain
|
Details |
HTMLTrackElement is assigning random numbers to readyState. Acceptable values are between 0 and 3 included.
Reporter | ||
Comment 1•11 years ago
|
||
Reporter | ||
Comment 2•11 years ago
|
||
We should come to a common sense of which value to set by default. I personally think that 0 is the best value, so that it can be updated as needed.
//Possible values for readyState
enum {
NONE = 0U,
LOADING = 1U,
LOADED = 2U,
ERROR = 3U
};
Updated•11 years ago
|
Comment 3•11 years ago
|
||
I haven't been able to reproduce this with rev 134626:86413e921d5d
The test is passing consistently. Was this fixed somewhere else?
Comment 4•11 years ago
|
||
I think it was fixed while bug 833385 was being reviewed. I'm in the middle of updating 833386 to include tests for this as well so I think we should be covered on it.
Comment 5•11 years ago
|
||
```
HTMLTrackElement::HTMLTrackElement(already_AddRefed<nsINodeInfo> aNodeInfo)
: nsGenericHTMLElement(aNodeInfo)
, mReadyState(NONE)
```
mReadyState is being initiallized now, as of some point. So it should never be random, anyways. WFM, resolved
Updated•11 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•