mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
checking for metadata in htmlmediaelement::response_complete
updated test expectations reverting changes to webgl test
This commit is contained in:
parent
2474393d15
commit
3e3349599e
26 changed files with 149 additions and 35 deletions
|
@ -105,8 +105,13 @@ impl AsyncResponseListener for HTMLMediaElementContext {
|
|||
fn response_complete(&mut self, status: Result<(), NetworkError>) {
|
||||
let elem = self.elem.root();
|
||||
|
||||
// => "If the media data can be fetched but is found by inspection to be in an unsupported
|
||||
// format, or can otherwise not be rendered at all"
|
||||
if !self.have_metadata {
|
||||
elem.queue_dedicated_media_source_failure_steps();
|
||||
}
|
||||
// => "Once the entire media resource has been fetched..."
|
||||
if status.is_ok() {
|
||||
else if status.is_ok() {
|
||||
elem.change_ready_state(HAVE_ENOUGH_DATA);
|
||||
|
||||
elem.fire_simple_event("progress");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue