Commit Graph

148 Commits

Author SHA1 Message Date
bjarne@runitsoft.com
3da6f6083b Fixing bug 380418. Prevent XMLHttpRequest from reading HTTPOnly cookies. r+sr=jonas@sicking.cc, a=b2 blocker 2008-11-13 18:18:01 -08:00
Peter Van der Beken
c39cb1e482 Fix for bug 457022 (Cache DOM wrappers in the DOM object). r/sr=jst. 2008-11-13 17:54:52 +01:00
Peter Van der Beken
2b8cf3c2d4 Backed out changeset ba895ab8cbe7 to fix orange 2008-11-03 16:28:50 +01:00
Peter Van der Beken
28ba94cca8 Fix for bug 457022 (Cache DOM wrappers in the DOM object). r/sr=jst. 2008-11-03 14:49:53 +01:00
Olli Pettay
a35c95e48d Bug 422856, Improve XHR cycle collection, r+sr=sicking 2008-10-28 20:30:10 +02:00
Olli Pettay
d5328ab301 Bug 460751 - Progress events should use long long, not long for .total and .loaded, r=chris.double, sr=sicking 2008-10-21 12:06:53 +03:00
Arpad Borsos
3585c944f1 Bug 456388 - "Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree" (followup for mozilla-central) [r+sr=brendan] 2008-10-21 01:50:05 -05:00
Olli Pettay
f4719aaf0a Bug 444546 - Don't dispatch progress event more often than every 350msec, r+sr=sicking 2008-10-20 00:26:37 +03:00
Jonas Sicking
f381c7312c backout due to test failure 2008-10-14 17:12:28 -07:00
Jonas Sicking
f0100d3fdf Fix XHR unit test 2008-10-14 15:26:09 -07:00
Jonas Sicking
21b9e9e8e4 Fix compile errors 2008-10-14 14:24:53 -07:00
Jonas Sicking
41226fb2a1 Move Access-Control implemenation fully in to nsCrossSiteListenerProxy.cpp from and make some additional cleanup. No behavioral changes. r/sr=mrbkap b=459770 2008-10-14 14:05:41 -07:00
Jonas Sicking
07f04921b1 Ensure that documentURI and baseURI is correct for XHR created documents. For cross-site loaded XHR documents make the two URIs that of the loading page, just to be on the safe side.
r/sr=bz b=459470
2008-10-11 23:30:14 -07:00
Olli Pettay
5e572d60cd Bug 457776 - 'ASSERTION: didn't call Disconnect', r+sr=jst 2008-10-09 09:38:04 +03:00
Olli Pettay
451926f603 Bug 458206 - Abort @ ~nsXMLHttpRequest, r+sr=sicking 2008-10-08 14:08:01 +03:00
Jonas Sicking
3dcc908655 Fix tests since network code or mochitest server can't deal with DELETE and PUT. r/sr=me 2008-09-30 17:54:04 -07:00
Jonas Sicking
cce6fbac9b Implement cookieless requests for Access-Control. b=389508 r=biesi sr=jst 2008-09-30 17:52:52 -07:00
Jonas Sicking
7a655650a9 Ensure that you can't use upload ProgressEvents to do server detection when using Access-Control. b=389508 r=smaug sr=jst 2008-09-30 17:51:53 -07:00
Jonas Sicking
6f2a7e0f6b Update Access-Control implementation to match changes in spec. b=389508 r/sr=jst 2008-09-30 17:50:42 -07:00
Jonas Sicking
83bda6d42d Reland old Access-Control implementation. b=389508 r/sr=jst 2008-09-30 17:49:30 -07:00
Ben Turner
21e1a3e936 Bug 450452 - 'Implement XHR (minus X) for worker threads. r+sr=jst' 2008-09-30 16:56:57 -07:00
Olli Pettay
254e405940 Bug 382871 - XMLHttpRequest JS wrapper not preserved by its event handlers, r+sr=jst 2008-09-25 17:40:30 +03:00
Ben Turner
8fdc38c40a Backed out changeset 5986b4269d9d 2008-09-24 21:07:05 -07:00
Ben Turner
85938eeb67 Bug 450452 - "Implement XHR ('minus X') for worker threads". r+sr=jst. 2008-09-24 19:48:07 -07:00
Olli Pettay
384c28fdaa Bug 445225 - Make progress events to work properly with multipart XHR, r+sr=jst 2008-09-11 13:44:15 +03:00
Boris Zbarsky
0b32650b29 imported patch bug431701 2008-08-28 08:56:45 -04:00
Vesselin
1d48427ab5 Bug 439214. Make sure to stop the sync XMLHttpRequest load if somehow Abort() is called during the syncloop. r+sr=jst 2008-08-25 13:21:28 -04:00
Olli Pettay
e19975c084 Bug 372964, Make XMLHttpRequest to work more like a normal event target, additional patch, r+sr=jst 2008-08-19 16:02:02 +03:00
Olli Pettay
4062b71fa6 Bug 435425 – Progress events for XHR, r=sicking, sr=jst 2008-08-14 14:07:46 +03:00
Olli Pettay
d5eda7d66b Bug 372964 – Make XMLHttpRequest to work more like a normal event target, r=sicking, sr=jst 2008-08-14 14:04:43 +03:00
Boris Zbarsky
1dafcd35c7 Bug 431701. Fix our inputEncoding handling to comply with the DOM spec, and fix XHR of a in-memory-only document to follow the XHR spec and send it as UTF-8. r+sr=sicking 2008-08-06 16:59:37 -04:00
Adam Barth
0e60a09743 Bug 429781 - "Update XMLHttpRequest blocked header list" [r+sr=sicking] 2008-07-12 18:06:36 -05:00
jonas@sicking.cc
2558cdb12f Followup patch to bug 425201. Make sure to throw if xhr.open is called with an illegal uri. Also restore the nsIScriptSecurityManager.CheckConnect API as soap still uses it 2008-04-18 10:35:55 -07:00
jonas@sicking.cc
9b874a6992 Allow XMLHttpRequest and document.load load files from subdirectories. r/sr=dveditz 2008-04-08 17:38:12 -07:00
jonas@sicking.cc
d6ba11877b Bug 425078: Not showing authentication dialog box when request is made throught XMLHttpRequest in chrome window. r/sr=jst 2008-04-08 17:27:50 -07:00
timeless@mozdev.org
2901e3ff19 Bug 394114 Interfaces missing from various QI implementations. r=jag sr=jag a=dsicore 2008-04-07 23:18:35 -07:00
reed@reedloden.com
a663ac401d Bug 426308 - "Cross site XHR backout broke redirect handling for privileged code" [p=manish@flock.com (Manish Singh) r+sr=sicking a=blocking1.9+] 2008-04-04 02:01:22 -07:00
bzbarsky@mit.edu
2db2275e45 Fix bug 421228. r+sr=sicking 2008-03-27 20:46:15 -07:00
jonas@sicking.cc
ae0bc39fab Bug 424923: Remove support for cross-site XHR. r/sr=jst for code changes 2008-03-25 19:46:08 -07:00
bzbarsky@mit.edu
cf19af74ad Fix bug 424212, r+sr=sicking, a=beltzner 2008-03-21 22:09:41 -07:00
dbaron@dbaron.org
f31447da64 Fixing asymmetry between what timeless landed for bug 394114 and what he backed out. 2008-03-19 15:05:04 -07:00
timeless@mozdev.org
f33eb4a3b4 reverting, wrong patch, missing AMBIGUOUS 2008-03-19 14:55:22 -07:00
mattwillis@gmail.com
3f494f6da0 Bug 383430 - Add features to XHR for convenience of background requests. Patch by Manish Singh <manish@flock.com> r/sr=sicking, a1.9=shaver 2008-03-18 17:14:38 -07:00
cbiesinger@gmail.com
c3caf5427c bug 422537 use a storage stream instead of a pipe as the upload stream when send()ing a document, to follow the expectations of nsIUploadChannel which wants a seekable stream. r+sr=bz a=beltzner 2008-03-18 12:49:20 -07:00
gavin@gavinsharp.com
d5b93cf6b0 Bug 422808: remove forwarding of nsIAuthPrompt for XHR and document.load so that users fall back to the more useful docshell prompts, r=sicking, sr=biesi (r=dolske on tests) 2008-03-18 11:18:29 -07:00
mattwillis@gmail.com
c785fb74c7 Bug 421622 - nsXMLHttpRequest#send() shouldn't reset all request headers when called from chrome. Patch by Manish Singh <manish@flock.com> r/sr=sicking, a1.9=beltzner 2008-03-13 04:43:06 -07:00
bzbarsky@mit.edu
1201485052 Add the charset right after the type, before all other params, if there is no existing charset in the type. Bug 413974, r=biesi, sr=sicking, a=beltzner 2008-02-28 20:24:32 -08:00
jonas@sicking.cc
65f4571f58 Bug 416534: Clean up cross-site xmlhttprequest security checks. With fixes to tests this time. r/sr=peterv 2008-02-26 19:45:29 -08:00
myk@mozilla.org
b5e898ddd7 backing out fix for bug 416534 as potential cause of mochitest failure 2008-02-26 19:23:36 -08:00
jonas@sicking.cc
84548acb75 Bug 416534: Clean up cross-site xmlhttprequest security checks. r/sr=peterv 2008-02-26 18:17:49 -08:00
bent.mozilla@gmail.com
f22ebbeebe Bug 392322 - "XMLHttpRequest crashes on local file retrieval [@ nsCrossSiteListenerProxy::OnStartRequest]". r+sr=sicking, a=blocking1.9+. 2008-02-19 15:12:23 -08:00
reed@reedloden.com
1552b80717 Bug 416958 - "Update header names" [p=suryaismail@gmail.com (Surya Ismail) r+sr=sicking a=blocking1.9+] 2008-02-16 19:26:13 -08:00
bent.mozilla@gmail.com
8f787b8cbf Backing out bug 392322 due to test failure. 2008-02-12 23:23:05 -08:00
bent.mozilla@gmail.com
14b2a9c165 Bug 392322 - "XMLHttpRequest crashes on local file retrieval [@ nsCrossSiteListenerProxy::OnStartRequest]". r+sr=sicking, a=blocking1.9+. 2008-02-12 20:54:08 -08:00
reed@reedloden.com
24fbf5fb3f Bug 398433 - "PRBool misuse bugs in content/" [p=tglek@mozilla.com (Taras Glek) r+sr=sicking a1.9=schrep a=blocking1.9+] 2008-02-09 22:16:30 -08:00
bent.mozilla@gmail.com
750267196c Bug 379824 - "xmlhttprequest abort method changes readystate to 4". r+sr=sicking, a=blocking1.9. 2008-02-06 21:03:01 -08:00
jonas@sicking.cc
ba446696ec Bug 397878: Send Referer-Root header when doing cross-site access requests. Also update domain pattern matching to spec. Patch by <suryaismail@gmail.com>. r=bent sr=sicking b3a=beltzner 2008-01-31 00:16:54 -08:00
jonas@sicking.cc
d632749a61 Bug 413071: Fix bug in cross site XHR. r/sr=jst 2008-01-29 22:43:47 -08:00
bent.mozilla@gmail.com
4b367746e7 Bug 411530 - Don't use the HTTP cache for non-GET access checks. r+sr=sicking, a=blocking1.9. 2008-01-29 22:35:33 -08:00
benjamin@smedbergs.us
dfc4cee45d Bug 411327 - nsIXPCNativeCallContext should not inherit from nsISupports, r=mrbkap, a=schrep 2008-01-15 07:50:57 -08:00
Olli.Pettay@helsinki.fi
12aa4ddec4 Bug 403168, r=jonas, sr=jst, a=blocking1.9 2007-12-12 00:33:32 -08:00
bzbarsky@mit.edu
d94f29ae56 Add a way to extract the charset and the position of the charset parameter from a content-type header. Use this in XMLHttpRequest to not clobber the non-charset parameters and not clobber the charset if it's already what we'll set, up to case. Apparently some broken servers are case-sensitive when looking at charsets! Bug 393968 (wherein the patch lies) and bug 397234, r+sr=biesi 2007-12-03 13:34:44 -08:00
reed@reedloden.com
af7bdee745 Bug 406001 - "Remove extraneous semicolons in nsXMLHttpRequest.cpp" [p=benjamin@smedbergs.us (Benjamin Smedberg [bsmedberg]) a1.9=damons] 2007-11-30 23:16:15 -08:00
bzbarsky@mit.edu
c7b34baf7b When calling open() on an in-progress XMLHttpRequest, abort the request but still allow the open() to reinitialize it. Bug 322317, r+sr=sicking, a=vlad 2007-11-15 14:18:36 -08:00
jonas@sicking.cc
903acf3ee6 bug 394390: Don't report bogus warnings to the error console when using cross-site xmlhttprequest. Patch by Surya Ismail <suryaismail@gmail.com>, r/sr=sicking 2007-10-26 18:46:09 -07:00
Olli.Pettay@helsinki.fi
a78cbac9b4 Landing (again) Bug 373462, bug 385322, Better scheduling of cycle collection/gc, r+sr=sicking,jst 2007-10-22 14:42:25 -07:00
Olli.Pettay@helsinki.fi
69d3a1fc7a backout Bug 373462, bug 385322. Still regress tp/talos 2007-10-21 09:46:54 -07:00
Olli.Pettay@helsinki.fi
cad8f0b8c4 Test-landing (again) Bug 373462, bug 385322, Better scheduling of cycle collection/gc, r+sr=sicking,jst 2007-10-21 07:09:29 -07:00
Olli.Pettay@helsinki.fi
85880d8ce4 Bug 393762, Bug 393761 and Bug 382636, r=jst, sr=peterv 2007-10-01 03:02:32 -07:00
Olli.Pettay@helsinki.fi
2fb8ea7b56 back out Bug 373462 / bug 385322 (again :( ) 2007-09-29 10:33:22 -07:00
Olli.Pettay@helsinki.fi
a6aedd78ae Bug 373462 / bug 385322, Better scheduling of cycle collection/gc, r+sr=jst 2007-09-29 08:02:57 -07:00
Olli.Pettay@helsinki.fi
f9c785fb8b backout the test patch for Bug 373462 and 385322 2007-09-23 09:10:12 -07:00
Olli.Pettay@helsinki.fi
1d42d7ad32 Testland a patch for Bug 373462 and 385322, 'Better scheduling of cycle collection/gc' 2007-09-23 07:05:27 -07:00
Olli.Pettay@helsinki.fi
3d3dee855b backout patch for Bug 373462, Bug 385322 2007-09-21 03:00:47 -07:00
Olli.Pettay@helsinki.fi
08d334c65d Bug 373462, Bug 385322, Better scheduling of cycle collection/gc, r=jst, sr=sicking, a=sicking 2007-09-21 01:54:36 -07:00
jonas@sicking.cc
e1ca6cd31b Bug 390219: Ignore OnStartRequest/OnStopRequest calls for other channels, i.e. ones already aborted. Also set owner on the right channel for multipart responses. r/sr/a=jst 2007-09-05 20:51:56 -07:00
cbiesinger@gmx.at
f626a42e8c bug 392117 pass lowercase strings to LowerCaseEqualsLiteral r+sr=sicking 2007-08-20 10:27:47 -07:00
bzbarsky@mit.edu
96ec7b6a69 Make NS_CheckContent(Load|Process)Policy only take a principal, not a principal and a uri. Get the URI from the principal. Bug 391438, r+sr+a=sicking 2007-08-09 22:35:08 -07:00
bzbarsky@mit.edu
73073f4f3b Use the principal doing the load to decide on the URI to pass to content policies. This will help do the right thing for data:/javascript:/about:blank, as well as allow us to skip content policies altogether if the caller is system. Bug 388597, r+sr=sicking 2007-08-07 18:16:09 -07:00
jonas@sicking.cc
da0e93de39 Bug 389508: Fix regressions and bugs in the new Cross Site XMLHttpRequest support. r/sr=jst a=roc 2007-07-30 17:42:16 -07:00
jonas@sicking.cc
24c4c1d539 Bug 389508: Cross site XMLHttpRequest. r=jst/biesi sr/dveditz/biesi 2007-07-26 19:49:18 -07:00
jonas@sicking.cc
13974dde1b backout due to orange 2007-07-26 16:34:22 -07:00
jonas@sicking.cc
29f28d46a0 Bug 389508: Implement Cross site XMLHttpRequest. r=jst sr=dveditz,biesi 2007-07-26 15:20:29 -07:00
dcamp@mozilla.com
bb10d2d59f add a sendAsBinary() method to XMLHttpRequest (for sending data from an <input type=file> element, among other things). b=371432, r+sr=jonas 2007-07-24 21:53:21 -07:00
philringnalda@gmail.com
abb9b1380f Bug 382947 - XMLHttpRequest should only set the charset in the Content-Type request header if we know the charset, patch by Ryan Jones <sciguyryan@gmail.com>, r=bzbarsky, sr=peterv 2007-07-08 19:33:07 -07:00
jwalden@mit.edu
e3c4baccae Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros. 2007-07-08 00:08:04 -07:00
peterv@propagandism.org
ee83281d9c Fix for bug 386656 (Security Error: Content at moz-nullprincipal:{8c0f4edc-0aac-45cc-8471-895f07bb1bb2} may not load or link to resource://gre/res/hiddenWindow.html during install of latest NTT Build). r/sr=jst. 2007-07-04 00:27:36 -07:00
peterv@propagandism.org
c1f26cd35e Fix for bug 326337 (XMLHttpRequest.responseXML permission denied if document.domain set). r=jst, sr=bz. 2007-07-02 06:20:01 -07:00
dveditz@cruzio.com
56a9050dc7 bug 381264 nix 'track' method; r=biesi, sr=sicking 2007-06-26 02:28:38 -07:00
kherron@fmailbox.com
fd55a81c64 Bug 375314 - discriminate ping and xmlhttprequests in content policy check. Patch by Wladimir Palant <trev.moz@adblockplus.org>, r=jst, sr=peterv. 2007-06-17 06:50:50 -07:00
benjamin@smedbergs.us
7a23b59d17 Bug 319934 - Prevent shutdown crashes by having XMLHttpRequest objects hold the layout module alive, r+sr=dbaron 2007-05-16 10:05:47 -07:00
Olli.Pettay@helsinki.fi
7ec10e025c Bug 363089, Remove nsIDOMEventReceiver (this time passes mochitest), r+sr=jst 2007-05-14 02:11:38 -07:00
asqueella@gmail.com
53f5456ba7 Bug 362043 - XMLHttpRequest should set a charset in the Content-Type request headerp=Ryan Jones <sciguyryan@gmail.com>r+sr=peterv 2007-05-13 09:41:46 -07:00
Olli.Pettay@helsinki.fi
f29b4e2b1b backout Bug 363089 2007-05-11 06:34:05 -07:00
Olli.Pettay@helsinki.fi
91a5c67cd1 Bug 363089, Remove nsIDOMEventReceiver, r+sr=jst 2007-05-11 04:15:11 -07:00
peterv@propagandism.org
f61971e016 Fix for bug 378595 (Improve cycle collection QI performance). r/sr=sicking. 2007-04-25 09:35:27 -07:00
asqueella@gmail.com
782392a877 Bug 371123 - XMLHttpRequest should trigger content policies
p=Wladimir Palant <trev@gtchat.de>r=jst, sr=sicking
2007-03-24 22:35:39 -07:00
hg@mozilla.com
465265d0d4 Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT, 2007-03-22 10:30:00 -07:00