Commit Graph

187 Commits

Author SHA1 Message Date
peterv%propagandism.org
274228f7e8 Fix for bug 307049 (XMLHttpRequest seems to try to parse the empty (!) body of the response to an HTTP HEAD request). r=biesi, sr=bz.
git-svn-id: svn://10.0.0.236/trunk@194933 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:44 +00:00
cbiesinger%web.de
285f116f52 bug 305243 set an XML content-type hint on XMLHttpRequest channels, to always
parse local files as XML.
Also, make TestXMLExtras convert non-ASCII bytes to UTF-16 correctly.
r=jst sr=bz


git-svn-id: svn://10.0.0.236/trunk@194932 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:43 +00:00
cbiesinger%web.de
275fe5c65e Bug 293046 XMLHttpRequest.overrideMimeType() makes loading abort for non-XML
patch by Wladimir Palant <trev@gtchat.de> r=jst sr=darin


git-svn-id: svn://10.0.0.236/trunk@194930 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:41 +00:00
darin%meer.net
16dc08c3e4 fixes bug 302809 "AJAX regression: POST setRequestHeader causes NS_ERROR_ILLEGAL_VALUE for invalid headers" r+sr=dveditz a=cbeard
git-svn-id: svn://10.0.0.236/trunk@194928 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:39 +00:00
darin%meer.net
9ff69260a9 fixes bug 302489 "XMLHTTP TRACE method can reveal proxy passwords to web sites" r=jst sr=dveditz a=asa
git-svn-id: svn://10.0.0.236/trunk@194927 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:38 +00:00
darin%meer.net
238bb42ddf fixes bug 295074 "POST responses remain in the memory cache when using XMLHttpRequest => huge memory leak" r+biesi sr=jst a=asa
git-svn-id: svn://10.0.0.236/trunk@194926 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:37 +00:00
darin%meer.net
594321cec8 fixes bug 302263 "prevent certain headers from being set on a XMLHttpRequest" r=dveditz sr=jst a=dveditz
git-svn-id: svn://10.0.0.236/trunk@194925 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:36 +00:00
bryner%brianryner.com
847cb0ed4d Fix assorted issues with fastback, including adding progress listener notifications and introducing the PageHide and PageShow events. See bug 292971 for all of the details. r=darin, sr=bzbarsky, a=shaver.
git-svn-id: svn://10.0.0.236/trunk@194924 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:35 +00:00
bzbarsky%mit.edu
5f3a0bed9f Save the user-set notification callbacks when we set ourselves on the channel,
and forward various notifications to them.  Bug 292391, r=biesi, sr=darin, a=asa


git-svn-id: svn://10.0.0.236/trunk@194923 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:34 +00:00
bryner%brianryner.com
6cff828c38 Add support for caching content viewers in session history to speed up back/forward (bug 274784). This initial landing has the feature disabled by default; set browser.sessionhistory.max_viewers to the maximum number of pages to cache to enable the feature. r=bzbarsky, sr/a=brendan.
git-svn-id: svn://10.0.0.236/trunk@194922 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:33 +00:00
bzbarsky%mit.edu
b80f339af4 Don't crash if responseText is gotten when we have no channel. Bug 289156,
r+sr=jst, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@194921 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:32 +00:00
jst%mozilla.jstenback.com
5e63d9e911 Fixing bug 289940. Make chrome event handlers only receive trusted events by default. r=jonas@sicking.cc, sr=peterv@propagandism.org, a=chofmann@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@194920 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:31 +00:00
timeless%mozdev.org
164510a266 Bug 286090 nsXMLHttpRequest.cpp should probably avoid text/xml
patch by bug@annevankesteren.nl r=doron sr=peterv


git-svn-id: svn://10.0.0.236/trunk@194919 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:30 +00:00
cbiesinger%web.de
05bc5b5652 181938 allow any protocol to support redirection, using a new
nsIChannelEventSink interface.
r=darin sr=bz


git-svn-id: svn://10.0.0.236/trunk@194918 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:29 +00:00
bzbarsky%mit.edu
e6f4240124 Fixing build bustage
git-svn-id: svn://10.0.0.236/trunk@194917 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:28 +00:00
bzbarsky%mit.edu
9ec23fb369 Make nsIXMLHttpRequest.getResponseHeader follow the documented api. Bug
276705, r=doron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@194916 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:27 +00:00
cbiesinger%web.de
439f386f8c bug 264599 make unfrozen necko interfaces use 64-bit integers.
r=darin sr=bz a=asa


git-svn-id: svn://10.0.0.236/trunk@194915 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:26 +00:00
jst%mozilla.jstenback.com
448d44a278 Fixing bug 268844. Don't force the cache to be bypassed for non-multipart requests. r=bzbarsky@mit.edu, sr=darin@meer.net
git-svn-id: svn://10.0.0.236/trunk@194914 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:25 +00:00
bzbarsky%mit.edu
4004f3c0ba Don't try to parse the response on necko-level errors (dns failures, timeouts,
etc).  Bug 268472, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@194913 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:24 +00:00
bzbarsky%mit.edu
36389769de Make it possible to re-call an XMLHttpRequest object from its onreadystate
handler by clearing listeners before calling onreadystate, not after.  Bug
258768, r=doron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@194912 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:23 +00:00
bzbarsky%mit.edu
c8a67164e4 Don't add 4 to the length, so we don't send 4 extra bytes of garbage POST
data.  Bug 246651 followup, r+sr=darin, a=asa


git-svn-id: svn://10.0.0.236/trunk@194910 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:21 +00:00
bzbarsky%mit.edu
1c53a0f73e Just let the HTTP impl compute the content-length for our POST data. It does a
better job of it.  Bug 246651, r=darin, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@194909 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:20 +00:00
pkw%us.ibm.com
ffd3cbe404 Bug 252345 - Memory leak in nsXMLHttpRequest.cpp (seen when using GMail).
r=peterv@propagandism.org, sr=darin@meer.net


git-svn-id: svn://10.0.0.236/trunk@194908 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:19 +00:00
scott%scott-macgregor.org
f2448dd3c9 Bug #251418 --> Expose progress notification events through nsIXMLHttpRequest. Allow consumers of nsIXMLHttpRequest to
set a progress event listener. Listen for the http channel's nsIProgressEventSink notification and fire our new progress event
to the consumer.
r/sr=jst


git-svn-id: svn://10.0.0.236/trunk@194907 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:18 +00:00
scott%scott-macgregor.org
2a82f35bb1 Backing myself out. I thought I was checking into the aviary 1.0 branch
git-svn-id: svn://10.0.0.236/trunk@194906 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:17 +00:00
scott%scott-macgregor.org
7ef0ed38dc Bug #251418 --> Expose progress notification events through nsIXMLHttpRequest. Allow consumers of nsIXMLHttpRequest to
set a progress event listener. Listen for the http channel's nsIProgressEventSink notification and fire our new progress event
to the consumer.

r/sr=jst


git-svn-id: svn://10.0.0.236/trunk@194905 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:16 +00:00
cbiesinger%web.de
45859d3796 bug 248810 nsIStreamConverter[Service] uses wide strings for mime types
r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@194904 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:15 +00:00
roc+%cs.cmu.edu
6a4c2ba541 Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@194903 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:14 +00:00
timeless%mozdev.org
7317af345e Bug 243579 Change nsIOnReadystatechangeHandler to nsIOnReadyStateChangeHandler
r=jst sr=jst


git-svn-id: svn://10.0.0.236/trunk@194902 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:13 +00:00
roc+%cs.cmu.edu
a4e307704d Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin
git-svn-id: svn://10.0.0.236/trunk@194900 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:11 +00:00
jst%mozilla.jstenback.com
5871ad52ca Whitespace only change.
git-svn-id: svn://10.0.0.236/trunk@194899 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:10 +00:00
jst%mozilla.jstenback.com
6555aa4884 Removing stray whitespace. No code change.
git-svn-id: svn://10.0.0.236/trunk@194898 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:39:09 +00:00
gerv%gerv.net
31f46ef5ad Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@194886 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:57 +00:00
sicking%bigfoot.com
23092700ce Still bug 239572, but this time with the fix not commented out!
r/sr=jst a=chofmann


git-svn-id: svn://10.0.0.236/trunk@194885 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:56 +00:00
sicking%bigfoot.com
284800a302 Bug 239572: nullcheck before calling CallQueryInterface
r/sr=jst a=chofmann


git-svn-id: svn://10.0.0.236/trunk@194884 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:55 +00:00
darin%meer.net
7b3df7149f fixes bug 237845 "WSDL bindings fail on Mozilla 1.7 beta" patch by keeda@hotpop.com r+sr=bz,jst a=asa
git-svn-id: svn://10.0.0.236/trunk@194883 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:54 +00:00
jst%mozilla.jstenback.com
bf74cf042a Fixing bug 237319. Adding support for server push of XML documents to an XMLHttpRequest using "multipart/x-mixed-replace". r=darin@meer.net, sr=hjtoi-bugzilla@comcast.net, a=chofmann@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@194881 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:52 +00:00
jst%mozilla.jstenback.com
009bc8414f Fixing bug 232493. Paving the way for DOM Level 3 LS. This is mostly cleanup that will make life easier (and safer) when implementing DOM LS. r=caillon@aillon.org, sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@194880 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:51 +00:00
jst%mozilla.jstenback.com
2d56929484 Fixing bug 232493. Paving the way for DOM Level 3 LS. This is mostly cleanup that will make life easier (and safer) when implementing DOM LS. r=caillon@aillon.org, sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@194879 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:50 +00:00
hjtoi%comcast.net
38b0da4610 Bug 236436, need to null check URL so we won't crash, r+sr=jst.
git-svn-id: svn://10.0.0.236/trunk@194878 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:49 +00:00
bzbarsky%mit.edu
9f78859808 Make XMLHttpRequest dispatch an error event when it fails. Bug 218236, patch
by Wladimir Palant <trev@gtchat.de>, r=jst, sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@194877 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:48 +00:00
jst%mozilla.jstenback.com
ec2aa0533d Fixing bug 68215. Adding support for the onbeforeunload event. r=peterv@propagandism.org, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@194876 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:47 +00:00
jst%mozilla.jstenback.com
0fa6f0e5c3 Fixing bug 233307. deCOMtaminating nsIScript* and related interfaces. r+sr=bryner@brianryner.com.
git-svn-id: svn://10.0.0.236/trunk@194874 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:45 +00:00
jst%mozilla.jstenback.com
a646032f89 Fixing bug 232503. Start using Empty[C]String() to save a bit on code-size. r+sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@194873 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:44 +00:00
bryner%brianryner.com
d7b2b72c60 Improve the way in which nsEvent and its subclasses are initialized. Commonly-used members can now be initialized via an inline constructor, and all other members are initialized to zero. eventStructType is set automatically. This also fixes some cases where an eventStructType was doubling as a message -- NS_TEXT_EVENT is now only used as an eventStructType, with a message of NS_TEXT_TEXT. NS_COMPOSITION_* events get an eventStructType of NS_COMPOSITION_EVENT, and ditto for NS_RECONVERSION_*. NS_DRAGDROP_EVENT is no longer an eventStructType since it is not a unique type of struct. There is also some miscellaneous cleanup to nsDOMEvent. Bug 220228, r=jst, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@194872 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:43 +00:00
jst%mozilla.jstenback.com
fcc9efb565 General deCOMtamination of nsIDocument, nsIContent, and nsIFormSubmission. Eliminating nsIAttributeContent, and doing some URL->URI changes. r+sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@194871 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:42 +00:00
bryner%brianryner.com
6849297bf8 deCOMtaminate nsIDocument by changing methods to use return value instead of out-params, eliminating unused nsresult return values, moving some members to nsIDocument and inlining the getters/setters. Bug 222134, r=bzbarsky, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@194870 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:41 +00:00
hpradhan%hotpop.com
f15d5217a3 Bug 206947: Synchronous XMLHttpRequest leaks and can cause crashes r=heikki sr=jst
git-svn-id: svn://10.0.0.236/trunk@194866 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:37 +00:00
timeless%mozdev.org
a5a89633f9 Bug 214398 - Refactor some copied code into a function in nsXMLHttpRequest
patch by riceman+bmo@mail.rit.edu r=jst sr=jst


git-svn-id: svn://10.0.0.236/trunk@194865 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:36 +00:00
jaggernaut%netscape.com
f89c080005 Bug 213602: Switch some users of NS_GetWeakReference over to do_GetWeakReference. r=bzbarsky, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@194864 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:35 +00:00