[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user