#11859 "Loading remote stylesheet in editor fails". LoadAgentSheet() loads the page asynchronously if an observer if provided.

git-svn-id: svn://10.0.0.236/trunk@63156 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pierre%netscape.com
2000-03-16 11:44:00 +00:00
parent 1e21eabd97
commit cfc46042f9
3 changed files with 24 additions and 6 deletions

View File

@@ -1355,8 +1355,14 @@ CSSLoaderImpl::LoadAgentSheet(nsIURI* aURL,
else {
NS_ADDREF(data);
URLKey key(aURL);
mLoadingSheets.Put(&key, data);
result = ParseSheet(uin, data, aCompleted, aSheet);
if (aObserver == nsnull) {
mLoadingSheets.Put(&key, data);
result = ParseSheet(uin, data, aCompleted, aSheet);
}
else {
result = LoadSheet(key, data); // this may steal pending alternates too
aCompleted = PR_FALSE;
}
}
NS_RELEASE(uin);
}