~ubuntu-branches/ubuntu/karmic/seamonkey/karmic

« back to all changes in this revision

Viewing changes to extensions/xforms/nsXFormsSubmissionElement.h

  • Committer: Bazaar Package Importer
  • Author(s): Fabien Tassin
  • Date: 2008-03-27 00:31:02 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080327003102-u1cumb16etfzcavm
Tags: 1.1.9+nobinonly-0ubuntu1
* New security upstream release: 1.1.9 (LP: #207461)
* Security fixes:
  - MFSA 2008-19 XUL popup spoofing variant (cross-tab popups)
  - MFSA 2008-18 Java socket connection to any local port via LiveConnect
  - MFSA 2008-17 Privacy issue with SSL Client Authentication
  - MFSA 2008-16 HTTP Referrer spoofing with malformed URLs
  - MFSA 2008-15 Crashes with evidence of memory corruption
  - MFSA 2008-14 JavaScript privilege escalation and arbitrary code execution
* Drop patches applied upstream:
  - drop debian/patches/11_bz399589_fix_missing_symbol_with_new_nss.patch
  - update debian/patches/series
* Add missing Ubuntu-specific menu items (LP: #190845)
  - add debian/patches/85_ubuntu_menu.patch
  - update debian/patches/series
  Contributed by Andrea Colangelo <warp10@libero.it>

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 *
22
22
 * Contributor(s):
23
23
 *  Darin Fisher <darin@meer.net>
 
24
 *  Merle Sterling <msterlin@us.ibm.com>
24
25
 *
25
26
 * Alternatively, the contents of this file may be used under the terms of
26
27
 * either the GNU General Public License Version 2 or later (the "GPL"), or
50
51
#include "nsIInterfaceRequestor.h"
51
52
#include "nsHashSets.h"
52
53
#include "nsIDocument.h"
 
54
#include "nsIHttpHeaderVisitor.h"
 
55
#include "nsIXFormsContextInfo.h"
 
56
#include "nsDataHashtable.h"
53
57
 
54
58
 
55
59
class nsIMultiplexInputStream;
71
75
                                  public nsIRequestObserver,
72
76
                                  public nsIXFormsSubmissionElement,
73
77
                                  public nsIChannelEventSink,
74
 
                                  public nsIInterfaceRequestor
 
78
                                  public nsIInterfaceRequestor,
 
79
                                  public nsIHttpHeaderVisitor
75
80
{
76
81
public:
77
82
  NS_DECL_ISUPPORTS_INHERITED
79
84
  NS_DECL_NSIXFORMSSUBMISSIONELEMENT
80
85
  NS_DECL_NSICHANNELEVENTSINK
81
86
  NS_DECL_NSIINTERFACEREQUESTOR
 
87
  NS_DECL_NSIHTTPHEADERVISITOR
82
88
 
83
89
  nsXFormsSubmissionElement()
84
90
    : mElement(nsnull),
85
91
      mSubmissionActive(PR_FALSE),
86
92
      mIsReplaceInstance(PR_FALSE),
87
93
      mIsSOAPRequest(PR_FALSE),
88
 
      mFormat(0)
 
94
      mFormat(0),
 
95
      mSubmissionBody(nsnull)
89
96
  {}
90
97
 
91
98
  // nsIXTFGenericElement overrides
157
164
  // input end of pipe, which contains response data.
158
165
  nsCOMPtr<nsIInputStream>         mPipeIn;
159
166
 
 
167
  // Context Info for events.
 
168
  nsCOMArray<nsIXFormsContextInfo> mContextInfo;
 
169
  // Document for http header context info.
 
170
  nsCOMPtr<nsIDOMDocument>         mHttpHeaderDoc;
 
171
  // Submission body from xforms-submit-serialize.
 
172
  nsCOMPtr<nsIDOMNode>              mSubmissionBody;
 
173
  // Type of submit error.
 
174
  nsString                         mSubmitError;
 
175
 
160
176
  /**
161
177
   * @return true if aTestURI has the same origin as aBaseURI or if
162
178
   * there is no need for a same origin check.
197
213
   */
198
214
  nsresult CreateAttachments(nsIModelElementPrivate *aModel, nsIDOMNode *aDoc,
199
215
                             SubmissionAttachmentArray *aAttachments);
 
216
 
 
217
  /**
 
218
   * Set context info.
 
219
   */
 
220
  nsresult SetContextInfo();
 
221
 
 
222
  /**
 
223
   * Set Http context info.
 
224
   *
 
225
   * @param aResponse         Protocol response code
 
226
   * @param aResponseText     Protocol response reason phrase
 
227
   */
 
228
  nsresult SetHttpContextInfo(PRUint32 aResponse, const nsAString &aResponseText);
 
229
 
 
230
  nsresult ParseErrorResponse(nsIChannel *aChannel);
200
231
};
201
232
 
202
233
NS_HIDDEN_(nsresult)