dont emit error messages when sheets canceled after doc disconnect
This commit is contained in:
Родитель
d074a095d6
Коммит
a5e9725c84
|
@ -748,15 +748,19 @@ CSSLoaderImpl::DidLoadStyle(nsIUnicharStreamLoader* aLoader,
|
|||
Cleanup(key, aLoadData);
|
||||
}
|
||||
}
|
||||
else { // load failed, cleanup
|
||||
else { // load failed or document now gone, cleanup
|
||||
if (mDocument) { // still have doc, must have failed
|
||||
// Dump error message to console.
|
||||
const char *url;
|
||||
if (nsnull != aLoadData->mURL)
|
||||
if (nsnull != aLoadData->mURL) {
|
||||
aLoadData->mURL->GetSpec(&url);
|
||||
else
|
||||
}
|
||||
else {
|
||||
url = "";
|
||||
}
|
||||
cerr << "CSSLoaderImpl::DidLoadStyle: Load of URL '" << url
|
||||
<< "' failed. Error code: " << NS_ERROR_GET_CODE(aStatus) << "\n";
|
||||
}
|
||||
|
||||
URLKey key(aLoadData->mURL);
|
||||
Cleanup(key, aLoadData);
|
||||
|
|
|
@ -748,15 +748,19 @@ CSSLoaderImpl::DidLoadStyle(nsIUnicharStreamLoader* aLoader,
|
|||
Cleanup(key, aLoadData);
|
||||
}
|
||||
}
|
||||
else { // load failed, cleanup
|
||||
else { // load failed or document now gone, cleanup
|
||||
if (mDocument) { // still have doc, must have failed
|
||||
// Dump error message to console.
|
||||
const char *url;
|
||||
if (nsnull != aLoadData->mURL)
|
||||
if (nsnull != aLoadData->mURL) {
|
||||
aLoadData->mURL->GetSpec(&url);
|
||||
else
|
||||
}
|
||||
else {
|
||||
url = "";
|
||||
}
|
||||
cerr << "CSSLoaderImpl::DidLoadStyle: Load of URL '" << url
|
||||
<< "' failed. Error code: " << NS_ERROR_GET_CODE(aStatus) << "\n";
|
||||
}
|
||||
|
||||
URLKey key(aLoadData->mURL);
|
||||
Cleanup(key, aLoadData);
|
||||
|
|
|
@ -748,15 +748,19 @@ CSSLoaderImpl::DidLoadStyle(nsIUnicharStreamLoader* aLoader,
|
|||
Cleanup(key, aLoadData);
|
||||
}
|
||||
}
|
||||
else { // load failed, cleanup
|
||||
else { // load failed or document now gone, cleanup
|
||||
if (mDocument) { // still have doc, must have failed
|
||||
// Dump error message to console.
|
||||
const char *url;
|
||||
if (nsnull != aLoadData->mURL)
|
||||
if (nsnull != aLoadData->mURL) {
|
||||
aLoadData->mURL->GetSpec(&url);
|
||||
else
|
||||
}
|
||||
else {
|
||||
url = "";
|
||||
}
|
||||
cerr << "CSSLoaderImpl::DidLoadStyle: Load of URL '" << url
|
||||
<< "' failed. Error code: " << NS_ERROR_GET_CODE(aStatus) << "\n";
|
||||
}
|
||||
|
||||
URLKey key(aLoadData->mURL);
|
||||
Cleanup(key, aLoadData);
|
||||
|
|
Загрузка…
Ссылка в новой задаче