Setting window.status should not flush. Bug 258819, r+sr=jst

This commit is contained in:
bzbarsky%mit.edu 2004-09-12 02:42:02 +00:00
Родитель c266ff1e12
Коммит 143d798b09
1 изменённых файлов: 0 добавлений и 20 удалений

Просмотреть файл

@ -373,26 +373,6 @@ NS_IMETHODIMP nsContentTreeOwner::SetStatus(PRUint32 aStatusType, const PRUnicha
}
}
//
// Force pending notifications to be processed immediately... This
// causes the status message to be displayed synchronously.
//
// XXX: This is nasty because we have to drill down to the nsIDocument to
// force the flushing...
//
// XXXbz no, this is nasty because we're flushing at all!
nsCOMPtr<nsIDOMWindowInternal> domWindow;
nsCOMPtr<nsIDOMDocument> domDoc;
nsCOMPtr<nsIDocument> doc;
mXULWindow->GetWindowDOMWindow(getter_AddRefs(domWindow));
domWindow->GetDocument(getter_AddRefs(domDoc));
doc = do_QueryInterface(domDoc);
if (doc) {
doc->FlushPendingNotifications(Flush_Layout);
}
return NS_OK;
}