[XForms] cannot submit with replace=instance more than one time part II. Bug 338451, patch by allan, r=doronr+bz, sr=sicking

git-svn-id: svn://10.0.0.236/trunk@200695 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronr%us.ibm.com
2006-06-23 17:10:43 +00:00
parent 6d69aa1d29
commit 54c3583990
4 changed files with 52 additions and 1 deletions

View File

@@ -49,6 +49,7 @@
#include "nsIChannelEventSink.h"
#include "nsIInterfaceRequestor.h"
class nsIDocument;
class nsIDOMElement;
/**
@@ -88,6 +89,18 @@ private:
NS_HIDDEN_(nsresult) CreateInstanceDocument(const nsAString &aQualifiedName);
NS_HIDDEN_(already_AddRefed<nsIModelElementPrivate>) GetModel();
/**
* Replace principal for document to be the same as for the owning document.
*
* WARNING: This could lead to a security breach, and should be used with
* extreme care!
*
* @see https://bugzilla.mozilla.org/show_bug.cgi?id=338451
*
* @param aDoc The document to replace principal for
*/
nsresult ReplacePrincipal(nsIDocument *aDoc);
nsCOMPtr<nsIDOMDocument> mDocument;
nsCOMPtr<nsIDOMDocument> mOriginalDocument;
nsIDOMElement *mElement;