Fix bug 301678. r+sr=jst

This commit is contained in:
bzbarsky%mit.edu 2005-11-16 02:18:47 +00:00
parent c0f9d272c7
commit c1ec462882

View File

@ -619,11 +619,19 @@ nsDOMParser::ParseFromStream(nsIInputStream *stream,
return rv;
}
// Have to pass PR_FALSE for reset here, else the reset will remove
// our event listener. Should that listener addition move to later
// than this call?
rv = document->StartDocumentLoad(kLoadAsData, channel,
nsnull, nsnull,
getter_AddRefs(listener),
PR_FALSE);
if (principal) {
// Make sure to give this document the right principal
document->SetPrincipal(principal);
}
if (NS_FAILED(rv) || !listener) {
if (modalEventQueue) {
mEventQService->PopThreadEventQueue(modalEventQueue);