mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Instead of panicking on broken url, break from the loop and return.
This commit is contained in:
parent
d74e6330a4
commit
4e9bb15ba7
3 changed files with 11 additions and 3 deletions
|
@ -274,7 +274,9 @@ pub fn parse_html(document: JSRef<Document>,
|
||||||
parser.parse_chunk(data);
|
parser.parse_chunk(data);
|
||||||
}
|
}
|
||||||
ProgressMsg::Done(Err(err)) => {
|
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,
|
ProgressMsg::Done(Ok(())) => break,
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
[security_location_0.sub.htm]
|
[security_location_0.sub.htm]
|
||||||
type: testharness
|
type: testharness
|
||||||
expected: CRASH
|
expected: TIMEOUT
|
||||||
|
[Accessing location object from different origins doesn\'t raise SECURITY_ERR exception]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
[window-security.sub.html]
|
[window-security.sub.html]
|
||||||
type: testharness
|
type: testharness
|
||||||
expected: CRASH
|
expected: TIMEOUT
|
||||||
|
[Window Security testing]
|
||||||
|
expected: NOTRUN
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue