mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 17:24:29 +00:00
Ignore a non-existent CSS file instead of causing a parse error (YSOD). b=418391 r+sr=bzbarsky a1.9=mtschrep
This commit is contained in:
parent
56b7f1a174
commit
cc57b4fa93
@ -314,6 +314,10 @@ nsStyleLinkElement::DoUpdateStyleSheet(nsIDocument *aOldDocument,
|
||||
rv = doc->CSSLoader()->
|
||||
LoadStyleLink(thisContent, uri, title, media, isAlternate, aObserver,
|
||||
&isAlternate);
|
||||
if (rv == NS_ERROR_FILE_NOT_FOUND) {
|
||||
doneLoading = PR_TRUE;
|
||||
rv = NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
Loading…
x
Reference in New Issue
Block a user