Instead of panicking on broken url, break from the loop and return.

This commit is contained in:
Adenilson Cavalcanti 2015-03-27 17:05:15 -07:00 committed by Ms2ger
parent d74e6330a4
commit 4e9bb15ba7
3 changed files with 11 additions and 3 deletions

View file

@ -274,7 +274,9 @@ pub fn parse_html(document: JSRef<Document>,
parser.parse_chunk(data);
}
ProgressMsg::Done(Err(err)) => {
panic!("Failed to load page URL {}, error: {}", url.serialize(), err);
debug!("Failed to load page URL {}, error: {}", url.serialize(), err);
// TODO(Savago): we should send a notification to callers #5463.
break;
}
ProgressMsg::Done(Ok(())) => break,
}

View file

@ -1,3 +1,6 @@
[security_location_0.sub.htm]
type: testharness
expected: CRASH
expected: TIMEOUT
[Accessing location object from different origins doesn\'t raise SECURITY_ERR exception]
expected: NOTRUN

View file

@ -1,3 +1,6 @@
[window-security.sub.html]
type: testharness
expected: CRASH
expected: TIMEOUT
[Window Security testing]
expected: NOTRUN