Josh Matthews
c8547fdb22
Bug 1198544 - Prevent FetchDriver from creating multiple responses if OnStopRequest yields a failing status code. r=nsm
2015-09-14 11:05:35 -04:00
Ehsan Akhgari
fc158160b9
Bug 1199049 - Part 8: Use Necko-level CORS preflights in fetch; r=jdm
2015-09-12 19:21:05 -04:00
Wes Kocher
af584d1f41
Backed out changeset 132aa442af95 (bug 1198544) for browser_ManifestObtainer_obtain.js failures CLOSED TREE
2015-09-11 11:53:52 -07:00
Josh Matthews
ab0d8d343d
Bug 1198544 - Prevent FetchDriver from creating multiple responses if OnStopRequest yields a failing status code. r=nsm
2015-09-11 13:23:29 -04:00
Ehsan Akhgari
839fb1d8a6
Bug 815299 - Part 2: Accept empty HTTP headers in fetch; r=jdm
2015-09-09 07:53:50 -04:00
Nigel Babu
68b9335890
Backed out changeset 3555d4b1ab1e (bug 815299) for M4 bustage.
2015-09-09 09:12:31 +05:30
Ehsan Akhgari
8b19dc7930
Bug 815299 - Part 2: Accept empty HTTP headers in fetch; r=jdm
2015-09-08 20:08:31 -04:00
Ben Kelly
b4b289d0e5
Bug 1184607 P6 Set RequestRedirect and fix various redirect bugs in FetchDriver. r=nsm
...
* * *
Bug 1184607 P6 interdiff 001
2015-08-31 14:26:29 -07:00
Kyle Huey
6a666d18ff
Bug 1196592: Make retargeting Fetch to another thread actually work. r=nsm
2015-08-28 13:49:07 -07:00
Nikhil Marathe
96027ed364
Bug 1193128 - Fix base64 decoding when fetching data URIs. r=baku
2015-08-13 13:08:43 -07:00
Ryan VanderMeulen
3bae12ba59
Backed out 7 changesets (bug 1189678, bug 1193128, bug 1189661, bug 1189644, bug 1189675) for various serviceworker mochitest and wpt failures.
...
Backed out changeset 696463139720 (bug 1189661)
Backed out changeset 7babb5b9d74a (bug 1189644)
Backed out changeset d4fa5cfc4b86 (bug 1189678)
Backed out changeset a7c27770b861 (bug 1189675)
Backed out changeset 471a45b97ce2 (bug 1189644)
Backed out changeset 4d96f2d48077 (bug 1193128)
Backed out changeset a9d5366288ff (bug 1189661)
CLOSED TREE
2015-08-24 18:09:47 -04:00
Nikhil Marathe
d35f0de75e
Bug 1193128 - Fix base64 decoding when fetching data URIs. r=baku
2015-08-13 13:08:43 -07:00
Ehsan Akhgari
4951bb0278
Bug 1196524 - Add assertions to enforce that we don't attempt to perform a CORS preflight for fetches of no-cors requests; r=nsm
2015-08-20 13:40:32 -04:00
Antonio de Luna Lopez
39879ccc63
Bug 1110476 - Stripped url fragment from Request::GetUrl() by calling either nsIURI::SetRef() or workers::URL::SetHash() in Request's url getter utility methods. Stripped url fragment from Response::GetUrl() by adding the method InternalRequest::StripFragmentAndSetUrl() which calls nsIURI::SetRef(). Added a test in dom/tests/mochitest/fetch/test_request.js for Request::GetUrl(). Removed manual url stripping from dom/cache/TypeUtils.cpp. r=bkelly
2015-08-13 08:22:19 -07:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07: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
Nikhil Marathe
171fda05df
Bug 1169044 - Patch 3 - Store and set principal with script URI on ServiceWorkers. r=ehsan
...
The ServiceWorkerRegistrationInfo's principal is the principal of the document
that called register(). If we create WorkerPrivate instances based off of
this, they have a valid principal in terms of security and same-origin-ness,
but the URI path is wrong. When fetching the script from the network, the
channel's principal is used to update the worker principal. We need to do the
same when the script is loaded from Cache. This patch adds support to store the
channel principal in the cache.
2015-06-04 21:39:34 -07: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
Fernando Jimenez
44dce782d8
Bug 1174078 - Calling "fetch" inside Service Worker's "onfetch" handler in b2g causes "onfetch" again that leads to an infinite loop. r=nsm
2015-06-17 11:50:07 +02:00
Ehsan Akhgari
238ad96509
Bug 1170937 - Set the URL on the Response object created from a fetch() properly if the underlying channel gets redirected; r=baku
2015-06-09 20:07:48 -04:00
Wes Kocher
f2052737fc
Backed out changeset ec31f39d4df8 (bug 1170937) for mochitest-e10s-4 permafail CLOSED TREE
2015-06-09 15:16:42 -07:00
Ehsan Akhgari
ce60f4cc10
Bug 1170937 - Set the URL on the Response object created from a fetch() properly if the underlying channel gets redirected; r=baku
2015-06-09 17:17:52 -04:00
Fernando Jimenez
8aa76590fc
Bug 1169613 - Use content type of synthesized response for JAR channel requests if available. Part 2: Set Content-Type for JAR Channel requests on Fetch API responses. r=nsm
2015-06-05 12:53:58 +02:00
Ehsan Akhgari
e8c86479b9
Bug 1168208 - Refactor the existing logic for syncing the security info between Response and channel objects into a new helper class; r=nsm,jdm,bkelly
2015-05-27 14:22:53 -04:00
Carsten "Tomcat" Book
c58dbca945
Backed out changeset ae9c77fa58d1 (bug 1168208) for bustage on a CLOSED TREE
2015-05-27 14:50:43 +02:00
Ehsan Akhgari
f770eb78bf
Bug 1168208 - Refactor the existing logic for syncing the security info between Response and channel objects into a new helper class; r=nsm,jdm,bkelly
2015-05-27 08:25:03 -04:00
Andrea Marchesini
b45d15ecff
Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan
2015-05-19 15:36:37 +01:00
Andrea Marchesini
41c29ad762
Bug 1163387 - Rename FileImpl to BlobImpl, r=ehsan
2015-05-12 13:11:03 +01:00
Wes Kocher
81e9cbedba
Backed out changeset 56e4c68dc3da (bug 1163387) for build bustage CLOSED TREE
2015-05-11 13:17:58 -07:00
Andrea Marchesini
bd76fd013b
Bug 1163387 - Rename FileImpl to BlobImpl, r=ehsan
2015-05-11 18:50:54 +01:00
Fernando Jimenez
1783db1cb6
Bug 1161288 - Support app:// origins on Fetch API. r=baku,nsm
2015-05-07 20:42:07 +02:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -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
Boris Zbarsky
2067ba5765
Bug 1157754 part 2. Convert consumers of ErrorResult::ClearMessage() to the new better APIs we have for suppressing exceptions on ErrorResult. r=bkelly
2015-04-26 22:38:17 -04:00
Ben Kelly
e74a47201e
Bug 1153484 - Fetch should ignore invalid headers, but still process later headers. r=nsm
2015-04-23 10:45:00 -04: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
Andrew Overholt
d41fd71a28
Bug 1127552 - Add Telemetry to Fetch. r=nsm
...
Note when the Fetch is coming from the main thread or a worker. Also
count Requests just passed through a Service Worker.
2015-03-27 06:47:00 -04:00
Ben Kelly
aad90c772b
Bug 1110814 P0 Fully initialize Response before resolve Fetch promise. r=nsm
2015-03-22 02:52:12 -04: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
Nikhil Marathe
4812df018f
Bug 1144249 - fix fetch no-cors mode. r=bkelly
...
A no-cors mode request should not go through a nsCORSProxyListener, which can only handle same-origin and cors mode.
The test for no-cors was passing allowOrigin, which was converting it into a CORS request, which is why it was passing.
I also realized that it is port 8888 and not 8000, so fixed that in some of the redirect tests.
2015-03-17 08:47:04 -07:00
Nikhil Marathe
84f41a7c95
Bug 1143155 - Filtered response stores internal response and allows access to headers. r=bkelly
2015-03-17 08:47:01 -07:00
Ehsan Akhgari
dc34dcdc19
Bug 1133763 - Part 1: Remember the security info associated with HTTP fetches and record it inside InternalResponse; r=nsm
2015-03-13 14:37:14 -04:00
Nikhil Marathe
34ce9c48ae
Bug 1133861 - Bustage fix. a=bustage CLOSED TREE
2015-03-05 12:16:18 -08:00
Nikhil Marathe
1374634ba7
Bug 1139665 - Check content load policy in FetchDriver. r=baku
2014-10-14 16:36:58 -07:00
Honza Bambas
59fc1863c1
Bug 1130803 - Use non-blocking input for Fetch synthetization pipe, r=bkelly,ehsan
2015-03-03 10:16:00 +01:00
Nikhil Marathe
cc8f35d3c6
Bug 1126815 - Implement Response.finalURL. r=bkelly,baku
2015-02-17 10:23:34 -08:00
Nikhil Marathe
d7a8ab4b10
Bug 1119037 - Add context attribute to Request. r=baku
2015-01-27 15:43:09 -08:00
Nikhil Marathe
66c1fd1731
Bug 1122258 - Fetch API: Set anonymous flag on channel if no credentials are to be passed.
2015-01-15 14:28:14 -08:00
Nikhil Marathe
b3142e434f
Bug 1119026 - Respect skip serviceworker flag. r=baku,bkelly
2014-12-24 02:08:41 -08:00
Nikhil Marathe
56ee4c22b8
Bug 1112922 - Implement request referrer correctly in Fetch API. r=bkelly
2014-12-23 07:56:19 -08:00