Commit Graph
22 Commits
Author SHA1 Message Date
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
Nikhil Marathe 613b3cd5ab Bug 1119021 - Implement fetch() redirects correctly. r=bkelly 2015-01-07 13:47:18 -08:00
Nikhil Marathe 5e0668465c Bug 1119021 - CORS credentials tests. r=bkelly
Allow request to continue when useCredentials is set.
2015-01-05 15:43:54 -08:00
Nikhil Marathe 1e6026c30a Bug 1119021 - CORS support. r=baku,bkelly
Use nsCrossSiteListenerProxy.h helpers to implement CORS support.
Several CORS fixes and lots of CORS tests.

Fixes:
Use empty string stream if response has no stream.
Parse Access-Control-Expose-Headers correctly.
Copy over remaining InternalRequest constructor attributes and set unsafe request flag.
Call FailWithNetworkError() in more cases.
Add non-simple Request headers to unsafeHeaders list for CORS check.
Do not AsyncOpen channel directly when CORS preflight is required.
Fix check for simple request method (was checking the opposite condition).
2015-01-07 15:50:54 -08:00
Nikhil Marathe ae3687ddd0 Bug 1039846 - Patch 7: Create channel with a loadgroup. r=baku,bkelly 2015-01-08 08:55:05 -08:00
Nikhil Marathe 11f76ca5f3 Bug 1039846 - Patch 5.1: Set request upload stream and headers. r=baku,bkelly 2014-12-09 22:35:22 -08:00
Nikhil Marathe cc47db65bc Bug 1039846 - Patch 5: FetchDriver basic HTTP fetch support. r=baku,bkelly
This patch has the following big pieces:
HTTP support in FetchDriver, which requires the principal of the caller to be passed.
Managing worker lifetime when a fetch() call is in progress.
Managing worker lifetime when a Response body is being read.
Using nsIPipe to link network streams to Request/Response body streams.
Using nsIInputStreamPump to convert Request/Response body streams into respective types.

Folded:
Bug 1039846 - Fetch API: Use a pipe to immediately start writing HTTP body data to InternalResponse.
Bug 1039846 - Assert bodystream can be set only once
Bug 1039846 - Add feature when handling fetch responses on workers
Bug 1039846 - Try to retarget http fetch delivery off main thread.
Bug 1039846 - Safely consume body using nsIInputStreamPump on workers and main thread.
Bug 1039846 - Retarget body reading to stream transport service.
2014-12-10 00:51:59 -08:00
Nikhil Marathe 54096bc12c Bug 1039846 - Fix morebustage. r=bustage CLOSED TREE 2014-10-20 13:59:01 -07:00
Nikhil Marathe acfa9359fa Bug 1039846 - Fix bustage. r=bustage CLOSED TREE 2014-10-20 13:25:56 -07:00
Nikhil Marathe 056d2e760a Bug 1039846 - Patch 4: FetchDriver with about:, blob: and data: fetching. r=baku 2014-10-06 11:01:20 -07:00