mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Fix bug 301678. r+sr=jst
This commit is contained in:
parent
c0f9d272c7
commit
c1ec462882
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user