mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
[XForms] nsXFormsSubmissionElement::LoadReplaceAll uses wrong document. Bug 303625, r=bz
This commit is contained in:
parent
a99b40f939
commit
5bf547e0b4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user