176 Commits

Author SHA1 Message Date
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
bzbarsky%mit.edu
5e10441f6c Update the string stream interface a bit and simplify the implementation a
lot. Bug 212109, r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@194863 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:34 +00:00
jst%netscape.com
77490e5c67 Fixing bug 209884. Writing an inline helper to safely get an nsIScriptContext from a JSContext and making direct callers of JS_GetContextPrivate() use the helper. r=caillon@aillon.org, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@194862 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:33 +00:00
alecf%flett.org
bd02ddb8c9 fix for bug 209220 - now that i18n APIs take ASCII charset names, update consumers to avoid excess conversions.. which usually means storing charset names as ASCII and updating a few other APIs
r=jkeiser, sr=jst and some great comments from jshin@mailaps.org


git-svn-id: svn://10.0.0.236/trunk@194861 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:32 +00:00
caillon%returnzero.com
ea6f77723e Bug 209087
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@194858 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:29 +00:00
alecf%flett.org
2a7347891a fix for bug 206379:
- combine nsICharsetConverterManager2 and nsICharsetConverterManager
- get rid of nsIAtom in most of the methods
- provide versions of getUnicodeDecoder/Encoder which don't do alias resolution
- change all charset types to ASCII strings
- clean up some other i18n APIs which could be simplified
- fix all consumers of all changed i18n interfaces
r=jshin, smontagu
rs=sfraser


git-svn-id: svn://10.0.0.236/trunk@194857 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:28 +00:00
varga%netscape.com
1cc4a49250 Fix for bug 208912. DOMParser produces documents with about:blank uri.
r=heikki, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@194856 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:27 +00:00
heikki%netscape.com
b3d380f8a2 Bug 204545, remove event listeners when needed, which fixes practically all known memory leaks and gets us a step closer to IE compatibility. r=harishd, sr=jst, a=asa.
git-svn-id: svn://10.0.0.236/trunk@194855 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:26 +00:00
heikki%netscape.com
3f1be41397 Bug 177533, fix most XMLHttpRequest memory leaks and other minor issues, r=darin, sr=jst, a=asa.
git-svn-id: svn://10.0.0.236/trunk@194853 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:24 +00:00
heikki%netscape.com
9b01a5cf99 Bug 197141, XMLHttpRequest behavior did not match IE when host was not found, r=harishd, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@194852 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:23 +00:00
sfraser%netscape.com
6aaef8140e Fix bug 195160: remove static NS_DEFINE_IID from header files. r=cls, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@194851 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:22 +00:00
heikki%netscape.com
dda348063f Bug 190180, fix UMR, r=harishd, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@194850 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-20 03:38:21 +00:00