Replace any errors caused by content-provided URLs by warnings.

This commit is contained in:
Alan Jeffrey 2016-07-15 09:50:40 -05:00
parent 0e5893dc0d
commit d1e5bafef0
2 changed files with 3 additions and 3 deletions

View file

@ -1403,7 +1403,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
warn!("Sending load url to constellation failed ({}).", e); warn!("Sending load url to constellation failed ({}).", e);
} }
}, },
Err(e) => error!("Parsing URL {} failed ({}).", url_string, e), Err(e) => warn!("Parsing URL {} failed ({}).", url_string, e),
} }
} }

View file

@ -328,7 +328,7 @@ impl HTMLScriptElement {
// Step 18.4-18.5. // Step 18.4-18.5.
let url = match base_url.join(&src) { let url = match base_url.join(&src) {
Err(_) => { Err(_) => {
error!("error parsing URL for script {}", &**src); warn!("error parsing URL for script {}", &**src);
self.queue_error_event(); self.queue_error_event();
return NextParserState::Continue; return NextParserState::Continue;
} }
@ -414,7 +414,7 @@ impl HTMLScriptElement {
let (source, external, url) = match load { let (source, external, url) = match load {
// Step 2.a. // Step 2.a.
ScriptOrigin::External(Err(e)) => { ScriptOrigin::External(Err(e)) => {
error!("error loading script {:?}", e); warn!("error loading script {:?}", e);
self.dispatch_error_event(); self.dispatch_error_event();
return; return;
} }