Commit Graph

66 Commits

Author SHA1 Message Date
Michael Layzell
f93a8e2029 Bug 1207233 - Don't provide a default content-type header if user calls XHR.setRequestHeader('Content-Type', ''), r=jduell 2015-09-24 16:54:11 -04:00
Michael Layzell
ed0c72a084 Bug 918742 - Correct handling of author-supplied charsets in XMLHttpRequest, r=bz 2015-09-22 12:26:15 -04:00
Patrick McManus
e2f929f7a8 bug 1187239 - ontransportstatus SENDING_TO should not use request stream re-entrantly r=hurley r=bz 2015-09-15 18:12:37 -04:00
Ehsan Akhgari
3c97b19f05 Bug 1199049 - Part 9: Use Necko-level CORS preflights in XHR; r=jdm 2015-09-12 19:21:07 -04:00
Jon Droniak
ec130499a1 Bug 1199796 - Refactor Request and XHR request method validation. r=nsm 2015-09-11 11:26:33 -07:00
Ehsan Akhgari
96c22aa054 Bug 815299 - Part 3: Accept empty HTTP headers in XHR; r=jdm 2015-09-09 07:54:33 -04:00
Nigel Babu
723df0b91a Backed out changeset 0a2a9972b4c7 (bug 815299) for M4 bustage. 2015-09-09 09:12:28 +05:30
Ehsan Akhgari
9ead1adb32 Bug 815299 - Part 3: Accept empty HTTP headers in XHR; r=jdm 2015-09-08 20:08:32 -04:00
Nikhil Marathe
30f1f9bd74 Bug 1176988 - Patch 2 - Remove XHR cache bypass in cast of POST request. r=jdm 2015-08-18 11:31:27 -07:00
Aryeh Gregor
6e1dae88e0 Bug 874842 - Return Event instead of nsIDOMEvent 2015-08-12 14:39:31 +03:00
Christoph Kerschbaumer
f4af4abdb2 Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource (r=sicking,ehsan) 2015-08-06 11:17:24 -07:00
Carsten "Tomcat" Book
24bab71afa Backed out 2 changesets (bug 1191107, bug 1180273) for causing xpcshell and m-oth testfailures on a CLOSED TREEi IGNORE IDL
Backed out changeset c5f710ed8718 (bug 1191107)
Backed out changeset d98d82f9981b (bug 1180273)
2015-08-06 08:39:05 +02:00
Christoph Kerschbaumer
a7a204019a Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource - IGNORE IDL (r=sicking,ehsan) 2015-08-05 12:58:05 -07:00
Birunthan Mohanathas
a0f7c73250 Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Shian-Yow Wu
bf9ec579f4 Bug 1069081 - Part 1: Always cache fd in JAR cache except Windows. r=mwu 2015-07-30 16:05:57 +08:00
Emanuel Hoogeveen
b30abdc582 Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Juan Gomez
89035d527e Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Ryan VanderMeulen
7aba9d7002 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez
7323e89a40 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-06-24 14:11:00 -04:00
Nikhil Marathe
a22827384e Bug 1169044 - Patch 1 - Refactor setting referrer and referrer policy between fetch and XHR. r=khuey 2015-06-04 14:05:00 -07:00
Andrea Marchesini
3ebe6b4be2 Bug 1170809 - Improve the buffer size check in nsXMLHttpRequest::AppendToResponseText. r=ehsan, r=bz 2015-06-23 10:47:38 -04:00
Ryan VanderMeulen
e23c88f02e Backed out changeset b6ac18409d64 (bug 1170809) for Werror bustage. 2015-06-21 08:31:02 -04:00
Andrea Marchesini
c08acd75bb Bug 1170809 - Improve the buffer size check in nsXMLHttpRequest::AppendToResponseText. r=ehsan, r=bz 2015-06-21 07:49:18 -04:00
Boris Zbarsky
1acf48ebd2 Bug 1168207. Be a bit more careful with overflow checking in XHR. r=baku 2015-05-29 15:46:12 -04:00
David Major
08f07741d4 Bug 1166349: Use a fallible allocation in nsXMLHttpRequest::StreamReaderFunc. r=smaug 2015-05-20 15:09:32 -04:00
Ryan VanderMeulen
954d269b48 Backed out changeset 9dfe96e082e6 (bug 1166349) for bustage. 2015-05-20 11:52:41 -04:00
David Major
3e1112714f Bug 1166349: Use a fallible allocation in nsXMLHttpRequest::StreamReaderFunc. r=smaug 2015-05-20 10:32:54 -04:00
Ryan VanderMeulen
4703fdee75 Backed out changeset af92d892c054 (bug 1166349) for Werror bustage.
CLOSED TREE
2015-05-19 20:38:17 -04:00
David Major
ad1db368b4 Bug 1166349: Use a fallible allocation in nsXMLHttpRequest::StreamReaderFunc. r=sicking,smaug. 2015-05-19 16:14:51 -04:00
Andrea Marchesini
b45d15ecff Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan 2015-05-19 15:36:37 +01:00
Boris Zbarsky
a83d55bf75 Bug 1163898 part 2. Allow creation of an anonymous XHR in non-window scopes if the right mozAnon bits are passed in. r=smaug 2015-05-12 15:56:41 -04:00
Andrea Marchesini
a8f15ce969 Bug 1159401 - Split Blob and File classes, r=bz 2015-05-12 13:09:51 +01:00
Wes Kocher
040b8fe0e4 Backed out 2 changesets (bug 1159401) for b2g build bustage
Backed out changeset adfee1efb1e1 (bug 1159401)
Backed out changeset 70c63c8546e3 (bug 1159401)
2015-05-11 14:54:02 -07:00
Andrea Marchesini
5d622f89aa Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 18:50:50 +01:00
Ryan VanderMeulen
95df0286b8 Backout revisions 4287533203fb and 96a3ebfe09d8 (bug 1159401) for bustage.
CLOSED TREE
2015-05-11 11:43:59 -04:00
Andrea Marchesini
2ffeefc77a Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 15:20:06 +01:00
Boris Zbarsky
b4efb4ac71 Bug 1157898 part 4. Add ErrorResult::ErrorCodeIs() and use it in various places to get rid of ErrorCode(). r=peterv 2015-04-27 09:18:52 -04:00
Boris Zbarsky
789a3bf96e Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
This patch was generated with the following command:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Sotaro Ikeda
4d071f24ee Bug 1154411 - Do not close same fd twice r=bent 2015-04-24 06:18:13 -07:00
Boris Zbarsky
df5e5b1a5d Bug 1157451. Make nsCORSListenerProxy::Init take an enum, not a boolean, to indicate what to do with data: URIs. And make it required, not defaulted to disallowing. r=smaug 2015-04-22 20:30:10 -04:00
Henry Chang
6279f016d9 Bug 1053650 - Part 1: Add attribute 'networkInterfaceId' to XMLHttpRequest. r=bz 2015-03-03 09:09:07 +08:00
Mike Hommey
338d086ead Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Ehsan Akhgari
ea41d8de48 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky
3a822d99b4 Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp.  The
rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Jed Davis
84ada2e9bd Bug 1043143: Step 3: Convert nsJARChannel from temporary files to temporary memory. r=honzab
This also requires changing XMLHttpRequest so that it doesn't crash if
memory-mapping would be applicable but the channel has no associated
nsIFile; a regression test for that case is added.

Bonus fix: nsJARChannel::AsyncOpen now checks whether the inner channel's
AsyncOpen failed.
2015-03-10 17:00:01 -07:00
Patrick McManus
c44ea7c650 bug 1127429 - XHR can set BYPASS_LOCAL_CACHE_IF_BUSY all the time r=bz 2015-01-29 12:45:33 -05:00
Dirkjan Ochtman
41803e1066 Bug 853162 - Remove XMLHttpRequest.sendAsBinary() interface. r=smaug
Should use send(Blob) instead. Thanks to Ms2ger for help fixing test failures.
2015-02-08 17:01:44 +01:00
Boris Zbarsky
52f78978ab Bug 1134149. Throw the exception the spec calls for when withCredentials is set on a sent XMLHttpRequest object. r=ms2ger 2015-02-18 20:56:21 -05:00
Nicholas Nethercote
0247de46d8 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00