[XForms] nsXFormsSubmissionElement::LoadReplaceAll uses wrong document. Bug 303625, r=bz

This commit is contained in:
allan%beaufour.dk 2006-05-30 15:19:12 +00:00
parent a99b40f939
commit 5bf547e0b4

View File

@ -595,10 +595,9 @@ nsXFormsSubmissionElement::LoadReplaceAll(nsIChannel *channel)
// XXX do we need to transfer nsIChannel::securityInfo ???
nsCOMPtr<nsIDOMDocument> domDoc;
mElement->GetOwnerDocument(getter_AddRefs(domDoc));
nsCOMPtr<nsIDocument> doc = do_QueryInterface(domDoc);
nsCOMPtr<nsIContent> content(do_QueryInterface(mElement));
NS_ASSERTION(content, "mElement not implementing nsIContent?!");
nsIDocument* doc = content->GetCurrentDoc();
NS_ENSURE_STATE(doc);
// the container is the docshell, and we use it as our provider of